msm-pcm-routing-v2.c 1.2 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523
  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/asound.h>
  21. #include <sound/pcm_params.h>
  22. #include <sound/hwdep.h>
  23. #include <sound/audio_effects.h>
  24. #include <dsp/msm-dts-srs-tm-config.h>
  25. #include <dsp/q6voice.h>
  26. #include <dsp/q6adm-v2.h>
  27. #include <dsp/q6asm-v2.h>
  28. #include <dsp/q6afe-v2.h>
  29. #include <dsp/q6lsm.h>
  30. #include <dsp/q6core.h>
  31. #include <dsp/q6common.h>
  32. #include <dsp/audio_cal_utils.h>
  33. #include "msm-pcm-routing-v2.h"
  34. #include "msm-pcm-routing-devdep.h"
  35. #include "msm-qti-pp-config.h"
  36. #include "msm-dolby-dap-config.h"
  37. #include "msm-ds2-dap-config.h"
  38. #define DRV_NAME "msm-pcm-routing-v2"
  39. #ifndef CONFIG_DOLBY_DAP
  40. #undef DOLBY_ADM_COPP_TOPOLOGY_ID
  41. #define DOLBY_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFE
  42. #endif
  43. #ifndef CONFIG_DOLBY_DS2
  44. #undef DS2_ADM_COPP_TOPOLOGY_ID
  45. #define DS2_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFF
  46. #endif
  47. static struct mutex routing_lock;
  48. static struct cal_type_data *cal_data[MAX_ROUTING_CAL_TYPES];
  49. static int fm_switch_enable;
  50. static int hfp_switch_enable;
  51. static int a2dp_switch_enable;
  52. static int sco_switch_enable;
  53. static int int0_mi2s_switch_enable;
  54. static int int4_mi2s_switch_enable;
  55. static int pri_mi2s_switch_enable;
  56. static int sec_mi2s_switch_enable;
  57. static int tert_mi2s_switch_enable;
  58. static int quat_mi2s_switch_enable;
  59. static int quin_mi2s_switch_enable;
  60. static int sen_mi2s_switch_enable;
  61. static int fm_pcmrx_switch_enable;
  62. static int usb_switch_enable;
  63. static int lsm_port_index[MAX_LSM_SESSIONS];
  64. static int slim0_rx_aanc_fb_port;
  65. static int msm_route_ec_ref_rx;
  66. static int msm_ec_ref_ch = 4;
  67. static int msm_ec_ref_ch_downmixed = 4;
  68. static int msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  69. static int msm_ec_ref_sampling_rate = 48000;
  70. static uint32_t voc_session_id = ALL_SESSION_VSID;
  71. static int msm_route_ext_ec_ref;
  72. static bool is_custom_stereo_on;
  73. static bool is_ds2_on;
  74. static bool ffecns_freeze_event;
  75. static bool swap_ch;
  76. static bool hifi_filter_enabled;
  77. static int aanc_level;
  78. static int num_app_cfg_types;
  79. static int msm_ec_ref_port_id;
  80. static int afe_loopback_tx_port_index;
  81. static int afe_loopback_tx_port_id = -1;
  82. #define WEIGHT_0_DB 0x4000
  83. /* all the FEs which can support channel mixer */
  84. static struct msm_pcm_channel_mixer channel_mixer[MSM_FRONTEND_DAI_MM_SIZE];
  85. /* all the FES which can support channel mixer for bidirection */
  86. static struct msm_pcm_channel_mixer
  87. channel_mixer_v2[MSM_FRONTEND_DAI_MM_SIZE][2];
  88. /* input BE for each FE */
  89. static int channel_input[MSM_FRONTEND_DAI_MM_SIZE][ADM_MAX_CHANNELS];
  90. enum {
  91. MADNONE,
  92. MADAUDIO,
  93. MADBEACON,
  94. MADULTRASOUND,
  95. MADSWAUDIO,
  96. };
  97. #define ADM_LSM_PORT_INDEX 9
  98. #define SLIMBUS_0_TX_TEXT "SLIMBUS_0_TX"
  99. #define SLIMBUS_1_TX_TEXT "SLIMBUS_1_TX"
  100. #define SLIMBUS_2_TX_TEXT "SLIMBUS_2_TX"
  101. #define SLIMBUS_3_TX_TEXT "SLIMBUS_3_TX"
  102. #define SLIMBUS_4_TX_TEXT "SLIMBUS_4_TX"
  103. #define SLIMBUS_5_TX_TEXT "SLIMBUS_5_TX"
  104. #define TERT_MI2S_TX_TEXT "TERT_MI2S_TX"
  105. #define QUAT_MI2S_TX_TEXT "QUAT_MI2S_TX"
  106. #define ADM_LSM_TX_TEXT "ADM_LSM_TX"
  107. #define INT3_MI2S_TX_TEXT "INT3_MI2S_TX"
  108. #define VA_CDC_DMA_TX_0_TEXT "VA_CDC_DMA_TX_0"
  109. #define VA_CDC_DMA_TX_1_TEXT "VA_CDC_DMA_TX_1"
  110. #define VA_CDC_DMA_TX_2_TEXT "VA_CDC_DMA_TX_2"
  111. #define TX_CDC_DMA_TX_3_TEXT "TX_CDC_DMA_TX_3"
  112. #define QUIN_TDM_TX_TEXT "QUIN_TDM_TX_0"
  113. #define TERT_TDM_TX_TEXT "TERT_TDM_TX_0"
  114. #define LSM_FUNCTION_TEXT "LSM Function"
  115. static const char * const lsm_port_text[] = {
  116. "None",
  117. SLIMBUS_0_TX_TEXT, SLIMBUS_1_TX_TEXT, SLIMBUS_2_TX_TEXT,
  118. SLIMBUS_3_TX_TEXT, SLIMBUS_4_TX_TEXT, SLIMBUS_5_TX_TEXT,
  119. TERT_MI2S_TX_TEXT, QUAT_MI2S_TX_TEXT, ADM_LSM_TX_TEXT,
  120. INT3_MI2S_TX_TEXT, VA_CDC_DMA_TX_0_TEXT, VA_CDC_DMA_TX_1_TEXT,
  121. VA_CDC_DMA_TX_2_TEXT, TX_CDC_DMA_TX_3_TEXT, QUIN_TDM_TX_TEXT,
  122. TERT_TDM_TX_TEXT
  123. };
  124. struct msm_pcm_route_bdai_pp_params {
  125. u16 port_id; /* AFE port ID */
  126. unsigned long pp_params_config;
  127. bool mute_on;
  128. int latency;
  129. };
  130. static struct msm_pcm_route_bdai_pp_params
  131. msm_bedais_pp_params[MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX] = {
  132. {HDMI_RX, 0, 0, 0},
  133. {DISPLAY_PORT_RX, 0, 0, 0},
  134. };
  135. /*
  136. * The be_dai_name_table is passed to HAL so that it can specify the
  137. * BE ID for the BE it wants to enable based on the name. Thus there
  138. * is a matching table and structure in HAL that need to be updated
  139. * if any changes to these are made.
  140. */
  141. struct msm_pcm_route_bdai_name {
  142. unsigned int be_id;
  143. char be_name[LPASS_BE_NAME_MAX_LENGTH];
  144. };
  145. static struct msm_pcm_route_bdai_name be_dai_name_table[MSM_BACKEND_DAI_MAX];
  146. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  147. int fe_id);
  148. static void msm_routing_load_topology(size_t data_size, void *data);
  149. static void msm_routing_unload_topology(uint32_t topology_id);
  150. static int msm_routing_get_bit_width(unsigned int format)
  151. {
  152. int bit_width;
  153. switch (format) {
  154. case SNDRV_PCM_FORMAT_S32_LE:
  155. bit_width = 32;
  156. break;
  157. case SNDRV_PCM_FORMAT_S24_LE:
  158. case SNDRV_PCM_FORMAT_S24_3LE:
  159. bit_width = 24;
  160. break;
  161. case SNDRV_PCM_FORMAT_S16_LE:
  162. default:
  163. bit_width = 16;
  164. }
  165. return bit_width;
  166. }
  167. static bool msm_is_resample_needed(int input_sr, int output_sr)
  168. {
  169. bool rc = false;
  170. if (input_sr != output_sr)
  171. rc = true;
  172. pr_debug("perform resampling (%s) for copp rate (%d)afe rate (%d)",
  173. (rc ? "oh yes" : "not really"),
  174. input_sr, output_sr);
  175. return rc;
  176. }
  177. static void msm_pcm_routing_cfg_pp(int port_id, int copp_idx, int topology,
  178. int channels)
  179. {
  180. int rc = 0;
  181. switch (topology) {
  182. case SRS_TRUMEDIA_TOPOLOGY_ID:
  183. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  184. msm_dts_srs_tm_init(port_id, copp_idx);
  185. break;
  186. case DS2_ADM_COPP_TOPOLOGY_ID:
  187. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY %d\n",
  188. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  189. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  190. is_custom_stereo_on);
  191. if (rc < 0)
  192. pr_err("%s: DS2 topo_id 0x%x, port %d, CS %d rc %d\n",
  193. __func__, topology, port_id,
  194. is_custom_stereo_on, rc);
  195. break;
  196. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  197. if (is_ds2_on) {
  198. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY\n", __func__);
  199. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  200. is_custom_stereo_on);
  201. if (rc < 0)
  202. pr_err("%s:DS2 topo_id 0x%x, port %d, rc %d\n",
  203. __func__, topology, port_id, rc);
  204. } else {
  205. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  206. rc = msm_dolby_dap_init(port_id, copp_idx, channels,
  207. is_custom_stereo_on);
  208. if (rc < 0)
  209. pr_err("%s: DS1 topo_id 0x%x, port %d, rc %d\n",
  210. __func__, topology, port_id, rc);
  211. }
  212. break;
  213. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  214. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  215. rc = msm_qti_pp_asphere_init(port_id, copp_idx);
  216. if (rc < 0)
  217. pr_err("%s: topo_id 0x%x, port %d, copp %d, rc %d\n",
  218. __func__, topology, port_id, copp_idx, rc);
  219. break;
  220. default:
  221. /* custom topology specific feature param handlers */
  222. break;
  223. }
  224. }
  225. static void msm_pcm_routing_deinit_pp(int port_id, int topology)
  226. {
  227. switch (topology) {
  228. case SRS_TRUMEDIA_TOPOLOGY_ID:
  229. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  230. msm_dts_srs_tm_deinit(port_id);
  231. break;
  232. case DS2_ADM_COPP_TOPOLOGY_ID:
  233. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID %d\n",
  234. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  235. msm_ds2_dap_deinit(port_id);
  236. break;
  237. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  238. if (is_ds2_on) {
  239. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID\n", __func__);
  240. msm_ds2_dap_deinit(port_id);
  241. } else {
  242. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  243. msm_dolby_dap_deinit(port_id);
  244. }
  245. break;
  246. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  247. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  248. msm_qti_pp_asphere_deinit(port_id);
  249. break;
  250. default:
  251. /* custom topology specific feature deinit handlers */
  252. break;
  253. }
  254. }
  255. static void msm_pcm_routng_cfg_matrix_map_pp(struct route_payload payload,
  256. int path_type, int perf_mode)
  257. {
  258. int itr = 0, rc = 0;
  259. if ((path_type == ADM_PATH_PLAYBACK) &&
  260. (perf_mode == LEGACY_PCM_MODE) &&
  261. is_custom_stereo_on) {
  262. for (itr = 0; itr < payload.num_copps; itr++) {
  263. if ((payload.port_id[itr] != SLIMBUS_0_RX) &&
  264. (payload.port_id[itr] != RT_PROXY_PORT_001_RX)) {
  265. continue;
  266. }
  267. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd(
  268. payload.port_id[itr],
  269. payload.copp_idx[itr],
  270. payload.session_id,
  271. Q14_GAIN_ZERO_POINT_FIVE,
  272. Q14_GAIN_ZERO_POINT_FIVE,
  273. Q14_GAIN_ZERO_POINT_FIVE,
  274. Q14_GAIN_ZERO_POINT_FIVE);
  275. if (rc < 0)
  276. pr_err("%s: err setting custom stereo\n",
  277. __func__);
  278. }
  279. }
  280. }
  281. #define SLIMBUS_EXTPROC_RX AFE_PORT_INVALID
  282. struct msm_pcm_routing_bdai_data msm_bedais[MSM_BACKEND_DAI_MAX] = {
  283. { PRIMARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_RX},
  284. { PRIMARY_I2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_TX},
  285. { SLIMBUS_0_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_RX},
  286. { SLIMBUS_0_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_TX},
  287. { HDMI_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_HDMI},
  288. { INT_BT_SCO_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_RX},
  289. { INT_BT_SCO_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_TX},
  290. { INT_FM_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_RX},
  291. { INT_FM_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_TX},
  292. { RT_PROXY_PORT_001_RX, 0, {0}, {0}, 0, 0, 0, 0,
  293. LPASS_BE_AFE_PCM_RX},
  294. { RT_PROXY_PORT_001_TX, 0, {0}, {0}, 0, 0, 0, 0,
  295. LPASS_BE_AFE_PCM_TX},
  296. { AFE_PORT_ID_PRIMARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  297. LPASS_BE_AUXPCM_RX},
  298. { AFE_PORT_ID_PRIMARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  299. LPASS_BE_AUXPCM_TX},
  300. { VOICE_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  301. LPASS_BE_VOICE_PLAYBACK_TX},
  302. { VOICE2_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  303. LPASS_BE_VOICE2_PLAYBACK_TX},
  304. { VOICE_RECORD_RX, 0, {0}, {0}, 0, 0, 0, 0,
  305. LPASS_BE_INCALL_RECORD_RX},
  306. { VOICE_RECORD_TX, 0, {0}, {0}, 0, 0, 0, 0,
  307. LPASS_BE_INCALL_RECORD_TX},
  308. { MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_RX},
  309. { MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_TX},
  310. { SECONDARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SEC_I2S_RX},
  311. { SLIMBUS_1_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_RX},
  312. { SLIMBUS_1_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_TX},
  313. { SLIMBUS_2_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_RX},
  314. { SLIMBUS_2_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_TX},
  315. { SLIMBUS_3_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_RX},
  316. { SLIMBUS_3_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_TX},
  317. { SLIMBUS_4_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_RX},
  318. { SLIMBUS_4_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_TX},
  319. { SLIMBUS_5_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_RX},
  320. { SLIMBUS_5_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_TX},
  321. { SLIMBUS_6_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_RX},
  322. { SLIMBUS_6_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_TX},
  323. { SLIMBUS_7_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_RX},
  324. { SLIMBUS_7_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_TX},
  325. { SLIMBUS_8_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_RX},
  326. { SLIMBUS_8_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_TX},
  327. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_RX},
  328. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_TX},
  329. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_1_TX},
  330. { AFE_PORT_ID_QUATERNARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  331. LPASS_BE_QUAT_MI2S_RX},
  332. { AFE_PORT_ID_QUATERNARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  333. LPASS_BE_QUAT_MI2S_TX},
  334. { AFE_PORT_ID_SECONDARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  335. LPASS_BE_SEC_MI2S_RX},
  336. { AFE_PORT_ID_SECONDARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  337. LPASS_BE_SEC_MI2S_TX},
  338. { AFE_PORT_ID_PRIMARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  339. LPASS_BE_PRI_MI2S_RX},
  340. { AFE_PORT_ID_PRIMARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  341. LPASS_BE_PRI_MI2S_TX},
  342. { AFE_PORT_ID_TERTIARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  343. LPASS_BE_TERT_MI2S_RX},
  344. { AFE_PORT_ID_TERTIARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  345. LPASS_BE_TERT_MI2S_TX},
  346. { AUDIO_PORT_ID_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  347. LPASS_BE_AUDIO_I2S_RX},
  348. { AFE_PORT_ID_SECONDARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  349. LPASS_BE_SEC_AUXPCM_RX},
  350. { AFE_PORT_ID_SECONDARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  351. LPASS_BE_SEC_AUXPCM_TX},
  352. { AFE_PORT_ID_PRIMARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  353. LPASS_BE_PRI_SPDIF_RX},
  354. { AFE_PORT_ID_SECONDARY_MI2S_RX_SD1, 0, {0}, {0}, 0, 0, 0, 0,
  355. LPASS_BE_SEC_MI2S_RX_SD1},
  356. { AFE_PORT_ID_QUINARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  357. LPASS_BE_QUIN_MI2S_RX},
  358. { AFE_PORT_ID_QUINARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  359. LPASS_BE_QUIN_MI2S_TX},
  360. { AFE_PORT_ID_SENARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  361. LPASS_BE_SENARY_MI2S_TX},
  362. { AFE_PORT_ID_PRIMARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  363. LPASS_BE_PRI_TDM_RX_0},
  364. { AFE_PORT_ID_PRIMARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  365. LPASS_BE_PRI_TDM_TX_0},
  366. { AFE_PORT_ID_PRIMARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  367. LPASS_BE_PRI_TDM_RX_1},
  368. { AFE_PORT_ID_PRIMARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  369. LPASS_BE_PRI_TDM_TX_1},
  370. { AFE_PORT_ID_PRIMARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  371. LPASS_BE_PRI_TDM_RX_2},
  372. { AFE_PORT_ID_PRIMARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  373. LPASS_BE_PRI_TDM_TX_2},
  374. { AFE_PORT_ID_PRIMARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  375. LPASS_BE_PRI_TDM_RX_3},
  376. { AFE_PORT_ID_PRIMARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  377. LPASS_BE_PRI_TDM_TX_3},
  378. { AFE_PORT_ID_PRIMARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  379. LPASS_BE_PRI_TDM_RX_4},
  380. { AFE_PORT_ID_PRIMARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  381. LPASS_BE_PRI_TDM_TX_4},
  382. { AFE_PORT_ID_PRIMARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  383. LPASS_BE_PRI_TDM_RX_5},
  384. { AFE_PORT_ID_PRIMARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  385. LPASS_BE_PRI_TDM_TX_5},
  386. { AFE_PORT_ID_PRIMARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  387. LPASS_BE_PRI_TDM_RX_6},
  388. { AFE_PORT_ID_PRIMARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  389. LPASS_BE_PRI_TDM_TX_6},
  390. { AFE_PORT_ID_PRIMARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  391. LPASS_BE_PRI_TDM_RX_7},
  392. { AFE_PORT_ID_PRIMARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  393. LPASS_BE_PRI_TDM_TX_7},
  394. { AFE_PORT_ID_SECONDARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  395. LPASS_BE_SEC_TDM_RX_0},
  396. { AFE_PORT_ID_SECONDARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  397. LPASS_BE_SEC_TDM_TX_0},
  398. { AFE_PORT_ID_SECONDARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  399. LPASS_BE_SEC_TDM_RX_1},
  400. { AFE_PORT_ID_SECONDARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  401. LPASS_BE_SEC_TDM_TX_1},
  402. { AFE_PORT_ID_SECONDARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  403. LPASS_BE_SEC_TDM_RX_2},
  404. { AFE_PORT_ID_SECONDARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  405. LPASS_BE_SEC_TDM_TX_2},
  406. { AFE_PORT_ID_SECONDARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  407. LPASS_BE_SEC_TDM_RX_3},
  408. { AFE_PORT_ID_SECONDARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  409. LPASS_BE_SEC_TDM_TX_3},
  410. { AFE_PORT_ID_SECONDARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  411. LPASS_BE_SEC_TDM_RX_4},
  412. { AFE_PORT_ID_SECONDARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  413. LPASS_BE_SEC_TDM_TX_4},
  414. { AFE_PORT_ID_SECONDARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  415. LPASS_BE_SEC_TDM_RX_5},
  416. { AFE_PORT_ID_SECONDARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  417. LPASS_BE_SEC_TDM_TX_5},
  418. { AFE_PORT_ID_SECONDARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  419. LPASS_BE_SEC_TDM_RX_6},
  420. { AFE_PORT_ID_SECONDARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  421. LPASS_BE_SEC_TDM_TX_6},
  422. { AFE_PORT_ID_SECONDARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  423. LPASS_BE_SEC_TDM_RX_7},
  424. { AFE_PORT_ID_SECONDARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  425. LPASS_BE_SEC_TDM_TX_7},
  426. { AFE_PORT_ID_TERTIARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  427. LPASS_BE_TERT_TDM_RX_0},
  428. { AFE_PORT_ID_TERTIARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  429. LPASS_BE_TERT_TDM_TX_0},
  430. { AFE_PORT_ID_TERTIARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  431. LPASS_BE_TERT_TDM_RX_1},
  432. { AFE_PORT_ID_TERTIARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  433. LPASS_BE_TERT_TDM_TX_1},
  434. { AFE_PORT_ID_TERTIARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  435. LPASS_BE_TERT_TDM_RX_2},
  436. { AFE_PORT_ID_TERTIARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  437. LPASS_BE_TERT_TDM_TX_2},
  438. { AFE_PORT_ID_TERTIARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  439. LPASS_BE_TERT_TDM_RX_3},
  440. { AFE_PORT_ID_TERTIARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  441. LPASS_BE_TERT_TDM_TX_3},
  442. { AFE_PORT_ID_TERTIARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  443. LPASS_BE_TERT_TDM_RX_4},
  444. { AFE_PORT_ID_TERTIARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  445. LPASS_BE_TERT_TDM_TX_4},
  446. { AFE_PORT_ID_TERTIARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  447. LPASS_BE_TERT_TDM_RX_5},
  448. { AFE_PORT_ID_TERTIARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  449. LPASS_BE_TERT_TDM_TX_5},
  450. { AFE_PORT_ID_TERTIARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  451. LPASS_BE_TERT_TDM_RX_6},
  452. { AFE_PORT_ID_TERTIARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  453. LPASS_BE_TERT_TDM_TX_6},
  454. { AFE_PORT_ID_TERTIARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  455. LPASS_BE_TERT_TDM_RX_7},
  456. { AFE_PORT_ID_TERTIARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  457. LPASS_BE_TERT_TDM_TX_7},
  458. { AFE_PORT_ID_QUATERNARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  459. LPASS_BE_QUAT_TDM_RX_0},
  460. { AFE_PORT_ID_QUATERNARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  461. LPASS_BE_QUAT_TDM_TX_0},
  462. { AFE_PORT_ID_QUATERNARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  463. LPASS_BE_QUAT_TDM_RX_1},
  464. { AFE_PORT_ID_QUATERNARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  465. LPASS_BE_QUAT_TDM_TX_1},
  466. { AFE_PORT_ID_QUATERNARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  467. LPASS_BE_QUAT_TDM_RX_2},
  468. { AFE_PORT_ID_QUATERNARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  469. LPASS_BE_QUAT_TDM_TX_2},
  470. { AFE_PORT_ID_QUATERNARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  471. LPASS_BE_QUAT_TDM_RX_3},
  472. { AFE_PORT_ID_QUATERNARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  473. LPASS_BE_QUAT_TDM_TX_3},
  474. { AFE_PORT_ID_QUATERNARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  475. LPASS_BE_QUAT_TDM_RX_4},
  476. { AFE_PORT_ID_QUATERNARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  477. LPASS_BE_QUAT_TDM_TX_4},
  478. { AFE_PORT_ID_QUATERNARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  479. LPASS_BE_QUAT_TDM_RX_5},
  480. { AFE_PORT_ID_QUATERNARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  481. LPASS_BE_QUAT_TDM_TX_5},
  482. { AFE_PORT_ID_QUATERNARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  483. LPASS_BE_QUAT_TDM_RX_6},
  484. { AFE_PORT_ID_QUATERNARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  485. LPASS_BE_QUAT_TDM_TX_6},
  486. { AFE_PORT_ID_QUATERNARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  487. LPASS_BE_QUAT_TDM_RX_7},
  488. { AFE_PORT_ID_QUATERNARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  489. LPASS_BE_QUAT_TDM_TX_7},
  490. { AFE_PORT_ID_QUINARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  491. LPASS_BE_QUIN_TDM_RX_0},
  492. { AFE_PORT_ID_QUINARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  493. LPASS_BE_QUIN_TDM_TX_0},
  494. { AFE_PORT_ID_QUINARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  495. LPASS_BE_QUIN_TDM_RX_1},
  496. { AFE_PORT_ID_QUINARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  497. LPASS_BE_QUIN_TDM_TX_1},
  498. { AFE_PORT_ID_QUINARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  499. LPASS_BE_QUIN_TDM_RX_2},
  500. { AFE_PORT_ID_QUINARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  501. LPASS_BE_QUIN_TDM_TX_2},
  502. { AFE_PORT_ID_QUINARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  503. LPASS_BE_QUIN_TDM_RX_3},
  504. { AFE_PORT_ID_QUINARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  505. LPASS_BE_QUIN_TDM_TX_3},
  506. { AFE_PORT_ID_QUINARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  507. LPASS_BE_QUIN_TDM_RX_4},
  508. { AFE_PORT_ID_QUINARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  509. LPASS_BE_QUIN_TDM_TX_4},
  510. { AFE_PORT_ID_QUINARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  511. LPASS_BE_QUIN_TDM_RX_5},
  512. { AFE_PORT_ID_QUINARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  513. LPASS_BE_QUIN_TDM_TX_5},
  514. { AFE_PORT_ID_QUINARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  515. LPASS_BE_QUIN_TDM_RX_6},
  516. { AFE_PORT_ID_QUINARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  517. LPASS_BE_QUIN_TDM_TX_6},
  518. { AFE_PORT_ID_QUINARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  519. LPASS_BE_QUIN_TDM_RX_7},
  520. { AFE_PORT_ID_QUINARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  521. LPASS_BE_QUIN_TDM_TX_7},
  522. { AFE_PORT_ID_SENARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  523. LPASS_BE_SEN_TDM_RX_0},
  524. { AFE_PORT_ID_SENARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  525. LPASS_BE_SEN_TDM_TX_0},
  526. { AFE_PORT_ID_SENARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  527. LPASS_BE_SEN_TDM_RX_1},
  528. { AFE_PORT_ID_SENARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  529. LPASS_BE_SEN_TDM_TX_1},
  530. { AFE_PORT_ID_SENARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  531. LPASS_BE_SEN_TDM_RX_2},
  532. { AFE_PORT_ID_SENARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  533. LPASS_BE_SEN_TDM_TX_2},
  534. { AFE_PORT_ID_SENARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  535. LPASS_BE_SEN_TDM_RX_3},
  536. { AFE_PORT_ID_SENARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  537. LPASS_BE_SEN_TDM_TX_3},
  538. { AFE_PORT_ID_SENARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  539. LPASS_BE_SEN_TDM_RX_4},
  540. { AFE_PORT_ID_SENARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  541. LPASS_BE_SEN_TDM_TX_4},
  542. { AFE_PORT_ID_SENARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  543. LPASS_BE_SEN_TDM_RX_5},
  544. { AFE_PORT_ID_SENARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  545. LPASS_BE_SEN_TDM_TX_5},
  546. { AFE_PORT_ID_SENARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  547. LPASS_BE_SEN_TDM_RX_6},
  548. { AFE_PORT_ID_SENARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  549. LPASS_BE_SEN_TDM_TX_6},
  550. { AFE_PORT_ID_SENARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  551. LPASS_BE_SEN_TDM_RX_7},
  552. { AFE_PORT_ID_SENARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  553. LPASS_BE_SEN_TDM_TX_7},
  554. { INT_BT_A2DP_RX, 0, {0}, {0}, 0, 0, 0, 0,
  555. LPASS_BE_INT_BT_A2DP_RX},
  556. { AFE_PORT_ID_USB_RX, 0, {0}, {0}, 0, 0, 0, 0,
  557. LPASS_BE_USB_AUDIO_RX},
  558. { AFE_PORT_ID_USB_TX, 0, {0}, {0}, 0, 0, 0, 0,
  559. LPASS_BE_USB_AUDIO_TX},
  560. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  561. LPASS_BE_DISPLAY_PORT},
  562. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  563. LPASS_BE_DISPLAY_PORT1},
  564. { AFE_PORT_ID_TERTIARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  565. LPASS_BE_TERT_AUXPCM_RX},
  566. { AFE_PORT_ID_TERTIARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  567. LPASS_BE_TERT_AUXPCM_TX},
  568. { AFE_PORT_ID_QUATERNARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  569. LPASS_BE_QUAT_AUXPCM_RX},
  570. { AFE_PORT_ID_QUATERNARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  571. LPASS_BE_QUAT_AUXPCM_TX},
  572. { AFE_PORT_ID_QUINARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  573. LPASS_BE_QUIN_AUXPCM_RX},
  574. { AFE_PORT_ID_QUINARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  575. LPASS_BE_QUIN_AUXPCM_TX},
  576. { AFE_PORT_ID_INT0_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  577. LPASS_BE_INT0_MI2S_RX},
  578. { AFE_PORT_ID_INT0_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  579. LPASS_BE_INT0_MI2S_TX},
  580. { AFE_PORT_ID_INT1_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  581. LPASS_BE_INT1_MI2S_RX},
  582. { AFE_PORT_ID_INT1_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  583. LPASS_BE_INT1_MI2S_TX},
  584. { AFE_PORT_ID_INT2_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  585. LPASS_BE_INT2_MI2S_RX},
  586. { AFE_PORT_ID_INT2_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  587. LPASS_BE_INT2_MI2S_TX},
  588. { AFE_PORT_ID_INT3_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  589. LPASS_BE_INT3_MI2S_RX},
  590. { AFE_PORT_ID_INT3_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  591. LPASS_BE_INT3_MI2S_TX},
  592. { AFE_PORT_ID_INT4_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  593. LPASS_BE_INT4_MI2S_RX},
  594. { AFE_PORT_ID_INT4_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  595. LPASS_BE_INT4_MI2S_TX},
  596. { AFE_PORT_ID_INT5_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  597. LPASS_BE_INT5_MI2S_RX},
  598. { AFE_PORT_ID_INT5_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  599. LPASS_BE_INT5_MI2S_TX},
  600. { AFE_PORT_ID_INT6_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  601. LPASS_BE_INT6_MI2S_RX},
  602. { AFE_PORT_ID_INT6_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  603. LPASS_BE_INT6_MI2S_TX},
  604. { AFE_PORT_ID_SENARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  605. LPASS_BE_SEN_AUXPCM_RX},
  606. { AFE_PORT_ID_SENARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  607. LPASS_BE_SEN_AUXPCM_TX},
  608. { AFE_PORT_ID_SENARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  609. LPASS_BE_SENARY_MI2S_RX},
  610. { AFE_PORT_ID_WSA_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  611. LPASS_BE_WSA_CDC_DMA_RX_0},
  612. { AFE_PORT_ID_WSA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  613. LPASS_BE_WSA_CDC_DMA_TX_0},
  614. { AFE_PORT_ID_WSA_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  615. LPASS_BE_WSA_CDC_DMA_RX_1},
  616. { AFE_PORT_ID_WSA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  617. LPASS_BE_WSA_CDC_DMA_TX_1},
  618. { AFE_PORT_ID_WSA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  619. LPASS_BE_WSA_CDC_DMA_TX_2},
  620. { AFE_PORT_ID_VA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  621. LPASS_BE_VA_CDC_DMA_TX_0},
  622. { AFE_PORT_ID_VA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  623. LPASS_BE_VA_CDC_DMA_TX_1},
  624. { AFE_PORT_ID_VA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  625. LPASS_BE_VA_CDC_DMA_TX_2},
  626. { AFE_PORT_ID_RX_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  627. LPASS_BE_RX_CDC_DMA_RX_0},
  628. { AFE_PORT_ID_TX_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  629. LPASS_BE_TX_CDC_DMA_TX_0},
  630. { AFE_PORT_ID_RX_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  631. LPASS_BE_RX_CDC_DMA_RX_1},
  632. { AFE_PORT_ID_TX_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  633. LPASS_BE_TX_CDC_DMA_TX_1},
  634. { AFE_PORT_ID_RX_CODEC_DMA_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  635. LPASS_BE_RX_CDC_DMA_RX_2},
  636. { AFE_PORT_ID_TX_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  637. LPASS_BE_TX_CDC_DMA_TX_2},
  638. { AFE_PORT_ID_RX_CODEC_DMA_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  639. LPASS_BE_RX_CDC_DMA_RX_3},
  640. { AFE_PORT_ID_TX_CODEC_DMA_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  641. LPASS_BE_TX_CDC_DMA_TX_3},
  642. { AFE_PORT_ID_RX_CODEC_DMA_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  643. LPASS_BE_RX_CDC_DMA_RX_4},
  644. { AFE_PORT_ID_TX_CODEC_DMA_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  645. LPASS_BE_TX_CDC_DMA_TX_4},
  646. { AFE_PORT_ID_RX_CODEC_DMA_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  647. LPASS_BE_RX_CDC_DMA_RX_5},
  648. { AFE_PORT_ID_TX_CODEC_DMA_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  649. LPASS_BE_TX_CDC_DMA_TX_5},
  650. { AFE_PORT_ID_RX_CODEC_DMA_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  651. LPASS_BE_RX_CDC_DMA_RX_6},
  652. { AFE_PORT_ID_RX_CODEC_DMA_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  653. LPASS_BE_RX_CDC_DMA_RX_7},
  654. { AFE_PORT_ID_PRIMARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  655. LPASS_BE_PRI_SPDIF_TX},
  656. { AFE_PORT_ID_SECONDARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  657. LPASS_BE_SEC_SPDIF_RX},
  658. { AFE_PORT_ID_SECONDARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  659. LPASS_BE_SEC_SPDIF_TX},
  660. { SLIMBUS_9_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_RX},
  661. { SLIMBUS_9_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_TX},
  662. { AFE_LOOPBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_AFE_LOOPBACK_TX},
  663. { AFE_PORT_ID_PRIMARY_META_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  664. LPASS_BE_PRI_META_MI2S_RX},
  665. { AFE_PORT_ID_SECONDARY_META_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  666. LPASS_BE_SEC_META_MI2S_RX},
  667. };
  668. /* Track ASM playback & capture sessions of DAI
  669. * Track LSM listen sessions
  670. */
  671. static struct msm_pcm_routing_fdai_data
  672. fe_dai_map[MSM_FRONTEND_DAI_MAX][2] = {
  673. /* MULTIMEDIA1 */
  674. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  675. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  676. /* MULTIMEDIA2 */
  677. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  678. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  679. /* MULTIMEDIA3 */
  680. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  681. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  682. /* MULTIMEDIA4 */
  683. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  684. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  685. /* MULTIMEDIA5 */
  686. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  687. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  688. /* MULTIMEDIA6 */
  689. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  690. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  691. /* MULTIMEDIA7*/
  692. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  693. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  694. /* MULTIMEDIA8 */
  695. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  696. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  697. /* MULTIMEDIA9 */
  698. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  699. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  700. /* MULTIMEDIA10 */
  701. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  702. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  703. /* MULTIMEDIA11 */
  704. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  705. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  706. /* MULTIMEDIA12 */
  707. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  708. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  709. /* MULTIMEDIA13 */
  710. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  711. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  712. /* MULTIMEDIA14 */
  713. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  714. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  715. /* MULTIMEDIA15 */
  716. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  717. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  718. /* MULTIMEDIA16 */
  719. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  720. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  721. /* MULTIMEDIA17 */
  722. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  723. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  724. /* MULTIMEDIA18 */
  725. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  726. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  727. /* MULTIMEDIA19 */
  728. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  729. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  730. /* MULTIMEDIA20 */
  731. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  732. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  733. /* MULTIMEDIA21 */
  734. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  735. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  736. /* MULTIMEDIA22 */
  737. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  738. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  739. /* MULTIMEDIA23 */
  740. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  741. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  742. /* MULTIMEDIA24 */
  743. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  744. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  745. /* MULTIMEDIA25 */
  746. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  747. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  748. /* MULTIMEDIA26 */
  749. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  750. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  751. /* MULTIMEDIA27 */
  752. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  753. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  754. /* MULTIMEDIA28 */
  755. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  756. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  757. /* MULTIMEDIA29 */
  758. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  759. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  760. /* MULTIMEDIA30 */
  761. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  762. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  763. /* VOIP */
  764. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  765. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  766. /* AFE_RX */
  767. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  768. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  769. /* AFE_TX */
  770. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  771. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  772. /* VOICE_STUB */
  773. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  774. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  775. /* DTMF_RX */
  776. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  777. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  778. /* QCHAT */
  779. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  780. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  781. /* VOLTE_STUB */
  782. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  783. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  784. /* LSM1 */
  785. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  786. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  787. /* LSM2 */
  788. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  789. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  790. /* LSM3 */
  791. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  792. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  793. /* LSM4 */
  794. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  795. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  796. /* LSM5 */
  797. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  798. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  799. /* LSM6 */
  800. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  801. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  802. /* LSM7 */
  803. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  804. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  805. /* LSM8 */
  806. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  807. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  808. /* VOICE2_STUB */
  809. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  810. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  811. /* VOICEMMODE1 */
  812. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  813. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  814. /* VOICEMMODE2 */
  815. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  816. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  817. };
  818. static unsigned long session_copp_map[MSM_FRONTEND_DAI_MAX][2]
  819. [MSM_BACKEND_DAI_MAX];
  820. static struct msm_pcm_routing_app_type_data app_type_cfg[MAX_APP_TYPES];
  821. static struct msm_pcm_routing_app_type_data lsm_app_type_cfg[MAX_APP_TYPES];
  822. static struct msm_pcm_stream_app_type_cfg
  823. fe_dai_app_type_cfg[MSM_FRONTEND_DAI_MAX][2][MSM_BACKEND_DAI_MAX];
  824. static int last_be_id_configured[MSM_FRONTEND_DAI_MAX][MAX_SESSION_TYPES];
  825. /* The caller of this should acquire routing lock */
  826. void msm_pcm_routing_get_bedai_info(int be_idx,
  827. struct msm_pcm_routing_bdai_data *be_dai)
  828. {
  829. if (be_idx >= 0 && be_idx < MSM_BACKEND_DAI_MAX)
  830. memcpy(be_dai, &msm_bedais[be_idx],
  831. sizeof(struct msm_pcm_routing_bdai_data));
  832. }
  833. /* The caller of this should acquire routing lock */
  834. void msm_pcm_routing_get_fedai_info(int fe_idx, int sess_type,
  835. struct msm_pcm_routing_fdai_data *fe_dai)
  836. {
  837. if ((sess_type == SESSION_TYPE_TX) || (sess_type == SESSION_TYPE_RX))
  838. memcpy(fe_dai, &fe_dai_map[fe_idx][sess_type],
  839. sizeof(struct msm_pcm_routing_fdai_data));
  840. }
  841. void msm_pcm_routing_acquire_lock(void)
  842. {
  843. mutex_lock(&routing_lock);
  844. }
  845. void msm_pcm_routing_release_lock(void)
  846. {
  847. mutex_unlock(&routing_lock);
  848. }
  849. static int msm_pcm_routing_get_app_type_idx(int app_type)
  850. {
  851. int idx;
  852. pr_debug("%s: app_type: %d\n", __func__, app_type);
  853. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  854. if (app_type_cfg[idx].app_type == app_type)
  855. return idx;
  856. }
  857. pr_info("%s: App type not available, fallback to default\n", __func__);
  858. return 0;
  859. }
  860. static int msm_pcm_routing_get_lsm_app_type_idx(int app_type)
  861. {
  862. int idx;
  863. pr_debug("%s: app_type: %d\n", __func__, app_type);
  864. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  865. if (lsm_app_type_cfg[idx].app_type == app_type)
  866. return idx;
  867. }
  868. pr_debug("%s: App type not available, fallback to default\n", __func__);
  869. return 0;
  870. }
  871. static int get_port_id(int port_id)
  872. {
  873. int ret = port_id;
  874. if (port_id == AFE_LOOPBACK_TX) {
  875. /*
  876. * Return afe_loopback_tx_port_id if set. Else return
  877. * msm_ec_ref_port_id to maintain backward compatibility.
  878. */
  879. if (afe_loopback_tx_port_id != -1)
  880. ret = afe_loopback_tx_port_id;
  881. else
  882. ret = msm_ec_ref_port_id;
  883. }
  884. return ret;
  885. }
  886. static bool is_mm_lsm_fe_id(int fe_id)
  887. {
  888. bool rc = true;
  889. if (fe_id > MSM_FRONTEND_DAI_MM_MAX_ID &&
  890. ((fe_id < MSM_FRONTEND_DAI_LSM1) ||
  891. (fe_id > MSM_FRONTEND_DAI_LSM8))) {
  892. rc = false;
  893. }
  894. return rc;
  895. }
  896. /*
  897. * msm_pcm_routing_send_chmix_cfg:
  898. * send the channel mixer command to mix the input channels
  899. * into output channels.
  900. *
  901. * @fe_id: front end id
  902. * @ip_channel_cnt: input channel count
  903. * @op_channel_cnt: output channel count
  904. * @ch_wght_coeff: channel weight co-efficients for channel mixing
  905. * @session_type: indicates session is of type TX or RX
  906. * @stream_type: indicates either Audio or Listen stream type
  907. */
  908. int msm_pcm_routing_send_chmix_cfg(int fe_id, int ip_channel_cnt,
  909. int op_channel_cnt, int *ch_wght_coeff,
  910. int session_type, int stream_type)
  911. {
  912. int rc = 0, idx = 0;
  913. int be_index = 0, port_id;
  914. unsigned int session_id = 0;
  915. pr_debug("%s:fe_id[%d] ip_ch[%d] op_ch[%d] sess_type [%d], stream_type[%d]",
  916. __func__, fe_id, ip_channel_cnt, op_channel_cnt, session_type,
  917. stream_type);
  918. if (!is_mm_lsm_fe_id(fe_id)) {
  919. /* bad ID assigned in machine driver */
  920. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  921. return -EINVAL;
  922. }
  923. if (ch_wght_coeff == NULL) {
  924. pr_err("%s: Null channel weightage coefficients passed\n",
  925. __func__);
  926. return -EINVAL;
  927. }
  928. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  929. port_id = msm_bedais[be_index].port_id;
  930. if (!msm_bedais[be_index].active ||
  931. !test_bit(fe_id, &msm_bedais[be_index].fe_sessions[0]))
  932. continue;
  933. session_id = fe_dai_map[fe_id][session_type].strm_id;
  934. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  935. unsigned long copp =
  936. session_copp_map[fe_id][session_type][be_index];
  937. if (!test_bit(idx, &copp))
  938. continue;
  939. msm_qti_pp_send_chmix_cfg_cmd(port_id, idx,
  940. session_id, ip_channel_cnt,
  941. op_channel_cnt, ch_wght_coeff,
  942. session_type, stream_type);
  943. if (rc < 0)
  944. pr_err("%s: err setting channel mix config\n",
  945. __func__);
  946. }
  947. }
  948. return 0;
  949. }
  950. EXPORT_SYMBOL(msm_pcm_routing_send_chmix_cfg);
  951. /**
  952. * msm_pcm_routing_set_channel_mixer_cfg - cache channel mixer
  953. * setting before use case start.
  954. *
  955. * @fe_id: frontend idx
  956. * @type: stream direction type
  957. * @params: parameters of channel mixer setting
  958. *
  959. * Return 0 for success
  960. */
  961. int msm_pcm_routing_set_channel_mixer_cfg(
  962. int fe_id, int type,
  963. struct msm_pcm_channel_mixer *params)
  964. {
  965. int i, j = 0;
  966. channel_mixer_v2[fe_id][type].enable = params->enable;
  967. channel_mixer_v2[fe_id][type].rule = params->rule;
  968. channel_mixer_v2[fe_id][type].input_channel =
  969. params->input_channel;
  970. channel_mixer_v2[fe_id][type].output_channel =
  971. params->output_channel;
  972. channel_mixer_v2[fe_id][type].port_idx = params->port_idx;
  973. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  974. channel_mixer_v2[fe_id][type].in_ch_map[i] =
  975. params->in_ch_map[i];
  976. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  977. channel_mixer_v2[fe_id][type].out_ch_map[i] =
  978. params->out_ch_map[i];
  979. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  980. for (j = 0; j < ADM_MAX_CHANNELS; j++)
  981. channel_mixer_v2[fe_id][type].channel_weight[i][j] =
  982. params->channel_weight[i][j];
  983. channel_mixer_v2[fe_id][type].override_in_ch_map =
  984. params->override_in_ch_map;
  985. channel_mixer_v2[fe_id][type].override_out_ch_map =
  986. params->override_out_ch_map;
  987. return 0;
  988. }
  989. EXPORT_SYMBOL(msm_pcm_routing_set_channel_mixer_cfg);
  990. int msm_pcm_routing_reg_stream_app_type_cfg(
  991. int fedai_id, int session_type, int be_id,
  992. struct msm_pcm_stream_app_type_cfg *cfg_data)
  993. {
  994. int ret = 0;
  995. if (cfg_data == NULL) {
  996. pr_err("%s: Received NULL pointer for cfg_data\n", __func__);
  997. ret = -EINVAL;
  998. goto done;
  999. }
  1000. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  1001. __func__, fedai_id, session_type, be_id,
  1002. cfg_data->app_type, cfg_data->acdb_dev_id,
  1003. cfg_data->sample_rate);
  1004. if (!is_mm_lsm_fe_id(fedai_id)) {
  1005. pr_err("%s: Invalid machine driver ID %d\n",
  1006. __func__, fedai_id);
  1007. ret = -EINVAL;
  1008. goto done;
  1009. }
  1010. if (session_type != SESSION_TYPE_RX &&
  1011. session_type != SESSION_TYPE_TX) {
  1012. pr_err("%s: Invalid session type %d\n",
  1013. __func__, session_type);
  1014. ret = -EINVAL;
  1015. goto done;
  1016. }
  1017. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1018. pr_err("%s: Received out of bounds be_id %d\n",
  1019. __func__, be_id);
  1020. ret = -EINVAL;
  1021. goto done;
  1022. }
  1023. fe_dai_app_type_cfg[fedai_id][session_type][be_id] = *cfg_data;
  1024. /*
  1025. * Store the BE ID of the configuration information set as the latest so
  1026. * the get mixer control knows what to return.
  1027. */
  1028. last_be_id_configured[fedai_id][session_type] = be_id;
  1029. done:
  1030. return ret;
  1031. }
  1032. EXPORT_SYMBOL(msm_pcm_routing_reg_stream_app_type_cfg);
  1033. /**
  1034. * msm_pcm_routing_get_stream_app_type_cfg
  1035. *
  1036. * Receives fedai_id, session_type, be_id, and populates app_type,
  1037. * acdb_dev_id, & sample rate. Returns 0 on success. On failure returns
  1038. * -EINVAL and does not alter passed values.
  1039. *
  1040. * fedai_id - Passed value, front end ID for which app type config is wanted
  1041. * session_type - Passed value, session type for which app type config
  1042. * is wanted
  1043. * be_id - Returned value, back end device id the app type config data is for
  1044. * cfg_data - Returned value, configuration data used by app type config
  1045. */
  1046. int msm_pcm_routing_get_stream_app_type_cfg(
  1047. int fedai_id, int session_type, int *bedai_id,
  1048. struct msm_pcm_stream_app_type_cfg *cfg_data)
  1049. {
  1050. int be_id;
  1051. int ret = 0;
  1052. if (bedai_id == NULL) {
  1053. pr_err("%s: Received NULL pointer for backend ID\n", __func__);
  1054. ret = -EINVAL;
  1055. goto done;
  1056. } else if (cfg_data == NULL) {
  1057. pr_err("%s: NULL pointer sent for cfg_data\n", __func__);
  1058. ret = -EINVAL;
  1059. goto done;
  1060. } else if (!is_mm_lsm_fe_id(fedai_id)) {
  1061. pr_err("%s: Invalid FE ID %d\n", __func__, fedai_id);
  1062. ret = -EINVAL;
  1063. goto done;
  1064. } else if (session_type != SESSION_TYPE_RX &&
  1065. session_type != SESSION_TYPE_TX) {
  1066. pr_err("%s: Invalid session type %d\n", __func__, session_type);
  1067. ret = -EINVAL;
  1068. goto done;
  1069. }
  1070. be_id = last_be_id_configured[fedai_id][session_type];
  1071. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1072. pr_err("%s: Invalid BE ID %d\n", __func__, be_id);
  1073. ret = -EINVAL;
  1074. goto done;
  1075. }
  1076. *bedai_id = be_id;
  1077. *cfg_data = fe_dai_app_type_cfg[fedai_id][session_type][be_id];
  1078. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  1079. __func__, fedai_id, session_type, *bedai_id,
  1080. cfg_data->app_type, cfg_data->acdb_dev_id,
  1081. cfg_data->sample_rate);
  1082. done:
  1083. return ret;
  1084. }
  1085. EXPORT_SYMBOL(msm_pcm_routing_get_stream_app_type_cfg);
  1086. static struct cal_block_data *msm_routing_find_topology_by_path(int path,
  1087. int cal_index)
  1088. {
  1089. struct list_head *ptr, *next;
  1090. struct cal_block_data *cal_block = NULL;
  1091. pr_debug("%s\n", __func__);
  1092. list_for_each_safe(ptr, next,
  1093. &cal_data[cal_index]->cal_blocks) {
  1094. cal_block = list_entry(ptr,
  1095. struct cal_block_data, list);
  1096. if (cal_utils_is_cal_stale(cal_block))
  1097. continue;
  1098. if (((struct audio_cal_info_adm_top *)cal_block
  1099. ->cal_info)->path == path) {
  1100. return cal_block;
  1101. }
  1102. }
  1103. pr_debug("%s: Can't find topology for path %d\n", __func__, path);
  1104. return NULL;
  1105. }
  1106. static struct cal_block_data *msm_routing_find_topology(int path,
  1107. int app_type,
  1108. int acdb_id,
  1109. int cal_index,
  1110. bool exact)
  1111. {
  1112. struct list_head *ptr, *next;
  1113. struct cal_block_data *cal_block = NULL;
  1114. struct audio_cal_info_adm_top *cal_info;
  1115. pr_debug("%s\n", __func__);
  1116. list_for_each_safe(ptr, next,
  1117. &cal_data[cal_index]->cal_blocks) {
  1118. cal_block = list_entry(ptr,
  1119. struct cal_block_data, list);
  1120. if (cal_utils_is_cal_stale(cal_block))
  1121. continue;
  1122. cal_info = (struct audio_cal_info_adm_top *)
  1123. cal_block->cal_info;
  1124. if ((cal_info->path == path) &&
  1125. (cal_info->app_type == app_type) &&
  1126. (cal_info->acdb_id == acdb_id)) {
  1127. return cal_block;
  1128. }
  1129. }
  1130. pr_debug("%s: Can't find topology for path %d, app %d, "
  1131. "acdb_id %d %s\n", __func__, path, app_type, acdb_id,
  1132. exact ? "fail" : "defaulting to search by path");
  1133. return exact ? NULL : msm_routing_find_topology_by_path(path,
  1134. cal_index);
  1135. }
  1136. static int msm_routing_find_topology_on_index(int session_type, int app_type,
  1137. int acdb_dev_id, int idx,
  1138. bool exact)
  1139. {
  1140. int topology = -EINVAL;
  1141. struct cal_block_data *cal_block = NULL;
  1142. mutex_lock(&cal_data[idx]->lock);
  1143. cal_block = msm_routing_find_topology(session_type, app_type,
  1144. acdb_dev_id, idx, exact);
  1145. if (cal_block != NULL) {
  1146. topology = ((struct audio_cal_info_adm_top *)
  1147. cal_block->cal_info)->topology;
  1148. }
  1149. mutex_unlock(&cal_data[idx]->lock);
  1150. return topology;
  1151. }
  1152. /*
  1153. * Retrieving cal_block will mark cal_block as stale.
  1154. * Hence it cannot be reused or resent unless the flag
  1155. * is reset.
  1156. */
  1157. static int msm_routing_get_adm_topology(int fedai_id, int session_type,
  1158. int be_id)
  1159. {
  1160. int topology = NULL_COPP_TOPOLOGY;
  1161. int app_type = 0, acdb_dev_id = 0;
  1162. pr_debug("%s: fedai_id %d, session_type %d, be_id %d\n",
  1163. __func__, fedai_id, session_type, be_id);
  1164. if (cal_data == NULL)
  1165. goto done;
  1166. app_type = fe_dai_app_type_cfg[fedai_id][session_type][be_id].app_type;
  1167. acdb_dev_id =
  1168. fe_dai_app_type_cfg[fedai_id][session_type][be_id].acdb_dev_id;
  1169. pr_debug("%s: Check for exact LSM topology\n", __func__);
  1170. topology = msm_routing_find_topology_on_index(session_type,
  1171. app_type,
  1172. acdb_dev_id,
  1173. ADM_LSM_TOPOLOGY_CAL_TYPE_IDX,
  1174. true /*exact*/);
  1175. if (topology < 0) {
  1176. pr_debug("%s: Check for compatible topology\n", __func__);
  1177. topology = msm_routing_find_topology_on_index(session_type,
  1178. app_type,
  1179. acdb_dev_id,
  1180. ADM_TOPOLOGY_CAL_TYPE_IDX,
  1181. false /*exact*/);
  1182. if (topology < 0)
  1183. topology = NULL_COPP_TOPOLOGY;
  1184. }
  1185. done:
  1186. pr_debug("%s: Using topology %d\n", __func__, topology);
  1187. return topology;
  1188. }
  1189. static uint8_t is_be_dai_extproc(int be_dai)
  1190. {
  1191. if (be_dai == MSM_BACKEND_DAI_EXTPROC_RX ||
  1192. be_dai == MSM_BACKEND_DAI_EXTPROC_TX ||
  1193. be_dai == MSM_BACKEND_DAI_EXTPROC_EC_TX)
  1194. return 1;
  1195. else
  1196. return 0;
  1197. }
  1198. static void msm_pcm_routing_build_matrix(int fedai_id, int sess_type,
  1199. int path_type, int perf_mode,
  1200. uint32_t passthr_mode)
  1201. {
  1202. int i, port_type, j, num_copps = 0;
  1203. struct route_payload payload;
  1204. port_type = ((path_type == ADM_PATH_PLAYBACK ||
  1205. path_type == ADM_PATH_COMPRESSED_RX) ?
  1206. MSM_AFE_PORT_TYPE_RX : MSM_AFE_PORT_TYPE_TX);
  1207. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1208. if (!is_be_dai_extproc(i) &&
  1209. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1210. (msm_bedais[i].active) &&
  1211. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1212. int port_id = get_port_id(msm_bedais[i].port_id);
  1213. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1214. unsigned long copp =
  1215. session_copp_map[fedai_id][sess_type][i];
  1216. if (test_bit(j, &copp)) {
  1217. payload.port_id[num_copps] = port_id;
  1218. payload.copp_idx[num_copps] = j;
  1219. payload.app_type[num_copps] =
  1220. fe_dai_app_type_cfg
  1221. [fedai_id][sess_type][i]
  1222. .app_type;
  1223. payload.acdb_dev_id[num_copps] =
  1224. fe_dai_app_type_cfg
  1225. [fedai_id][sess_type][i]
  1226. .acdb_dev_id;
  1227. payload.sample_rate[num_copps] =
  1228. fe_dai_app_type_cfg
  1229. [fedai_id][sess_type][i]
  1230. .sample_rate;
  1231. num_copps++;
  1232. }
  1233. }
  1234. }
  1235. }
  1236. if (num_copps) {
  1237. payload.num_copps = num_copps;
  1238. payload.session_id = fe_dai_map[fedai_id][sess_type].strm_id;
  1239. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1240. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1241. }
  1242. }
  1243. void msm_pcm_routing_reg_psthr_stream(int fedai_id, int dspst_id,
  1244. int stream_type)
  1245. {
  1246. int i, session_type, path_type, port_type;
  1247. u32 mode = 0;
  1248. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1249. /* bad ID assigned in machine driver */
  1250. pr_err("%s: bad MM ID\n", __func__);
  1251. return;
  1252. }
  1253. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1254. session_type = SESSION_TYPE_RX;
  1255. path_type = ADM_PATH_PLAYBACK;
  1256. port_type = MSM_AFE_PORT_TYPE_RX;
  1257. } else {
  1258. session_type = SESSION_TYPE_TX;
  1259. path_type = ADM_PATH_LIVE_REC;
  1260. port_type = MSM_AFE_PORT_TYPE_TX;
  1261. }
  1262. mutex_lock(&routing_lock);
  1263. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1264. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1265. if (!is_be_dai_extproc(i) &&
  1266. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1267. (msm_bedais[i].active) &&
  1268. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1269. mode = afe_get_port_type(msm_bedais[i].port_id);
  1270. adm_connect_afe_port(mode, dspst_id,
  1271. msm_bedais[i].port_id);
  1272. break;
  1273. }
  1274. }
  1275. mutex_unlock(&routing_lock);
  1276. }
  1277. static bool route_check_fe_id_adm_support(int fe_id)
  1278. {
  1279. bool rc = true;
  1280. if ((fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1281. (fe_id <= MSM_FRONTEND_DAI_LSM8)) {
  1282. /* fe id is listen while port is set to afe */
  1283. if (lsm_port_index[fe_id - MSM_FRONTEND_DAI_LSM1] !=
  1284. ADM_LSM_PORT_INDEX) {
  1285. pr_debug("%s: fe_id %d, lsm mux slim port %d\n",
  1286. __func__, fe_id,
  1287. lsm_port_index[fe_id - MSM_FRONTEND_DAI_LSM1]);
  1288. rc = false;
  1289. }
  1290. }
  1291. return rc;
  1292. }
  1293. /*
  1294. * msm_pcm_routing_get_pp_ch_cnt:
  1295. * Read the processed channel count
  1296. *
  1297. * @fe_id: Front end ID
  1298. * @session_type: Inidicates RX or TX session type
  1299. */
  1300. int msm_pcm_routing_get_pp_ch_cnt(int fe_id, int session_type)
  1301. {
  1302. struct msm_pcm_stream_app_type_cfg cfg_data;
  1303. int be_id = 0, app_type_idx = 0, app_type = 0;
  1304. int ret = -EINVAL;
  1305. memset(&cfg_data, 0, sizeof(cfg_data));
  1306. if (!is_mm_lsm_fe_id(fe_id)) {
  1307. pr_err("%s: bad MM ID\n", __func__);
  1308. return -EINVAL;
  1309. }
  1310. ret = msm_pcm_routing_get_stream_app_type_cfg(fe_id, session_type,
  1311. &be_id, &cfg_data);
  1312. if (ret) {
  1313. pr_err("%s: cannot get stream app type cfg\n", __func__);
  1314. return ret;
  1315. }
  1316. app_type = cfg_data.app_type;
  1317. app_type_idx = msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1318. return lsm_app_type_cfg[app_type_idx].num_out_channels;
  1319. }
  1320. EXPORT_SYMBOL(msm_pcm_routing_get_pp_ch_cnt);
  1321. int msm_pcm_routing_reg_phy_compr_stream(int fe_id, int perf_mode,
  1322. int dspst_id, int stream_type,
  1323. uint32_t passthr_mode)
  1324. {
  1325. int i, j, session_type, path_type, port_type, topology;
  1326. int num_copps = 0;
  1327. struct route_payload payload;
  1328. u32 channels, sample_rate;
  1329. u16 bit_width = 16, be_bit_width;
  1330. bool is_lsm;
  1331. pr_debug("%s:fe_id[%d] perf_mode[%d] id[%d] stream_type[%d] passt[%d]",
  1332. __func__, fe_id, perf_mode, dspst_id,
  1333. stream_type, passthr_mode);
  1334. if (!is_mm_lsm_fe_id(fe_id)) {
  1335. /* bad ID assigned in machine driver */
  1336. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  1337. return -EINVAL;
  1338. }
  1339. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1340. session_type = SESSION_TYPE_RX;
  1341. if (passthr_mode != LEGACY_PCM)
  1342. path_type = ADM_PATH_COMPRESSED_RX;
  1343. else
  1344. path_type = ADM_PATH_PLAYBACK;
  1345. port_type = MSM_AFE_PORT_TYPE_RX;
  1346. } else if (stream_type == SNDRV_PCM_STREAM_CAPTURE) {
  1347. session_type = SESSION_TYPE_TX;
  1348. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1349. path_type = ADM_PATH_COMPRESSED_TX;
  1350. else
  1351. path_type = ADM_PATH_LIVE_REC;
  1352. port_type = MSM_AFE_PORT_TYPE_TX;
  1353. } else {
  1354. pr_err("%s: invalid stream type %d\n", __func__, stream_type);
  1355. return -EINVAL;
  1356. }
  1357. is_lsm = (fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1358. (fe_id <= MSM_FRONTEND_DAI_LSM8);
  1359. mutex_lock(&routing_lock);
  1360. fe_dai_map[fe_id][session_type].strm_id = dspst_id;
  1361. fe_dai_map[fe_id][session_type].perf_mode = perf_mode;
  1362. fe_dai_map[fe_id][session_type].passthr_mode = passthr_mode;
  1363. if (!route_check_fe_id_adm_support(fe_id)) {
  1364. /* ignore adm open if not supported for fe_id */
  1365. pr_debug("%s: No ADM support for fe id %d\n", __func__, fe_id);
  1366. mutex_unlock(&routing_lock);
  1367. return 0;
  1368. }
  1369. payload.num_copps = 0; /* only RX needs to use payload */
  1370. /* re-enable EQ if active */
  1371. msm_qti_pp_send_eq_values(fe_id);
  1372. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1373. if (!is_be_dai_extproc(i) &&
  1374. (afe_get_port_type(msm_bedais[i].port_id) ==
  1375. port_type) &&
  1376. (msm_bedais[i].active) &&
  1377. (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))) {
  1378. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1379. int port_id = get_port_id(msm_bedais[i].port_id);
  1380. /*
  1381. * check if ADM needs to be configured with different
  1382. * channel mapping than backend
  1383. */
  1384. if (!msm_bedais[i].adm_override_ch)
  1385. channels = msm_bedais[i].channel;
  1386. else
  1387. channels = msm_bedais[i].adm_override_ch;
  1388. bit_width = msm_routing_get_bit_width(
  1389. msm_bedais[i].format);
  1390. app_type =
  1391. fe_dai_app_type_cfg[fe_id][session_type][i].app_type;
  1392. if (app_type && is_lsm) {
  1393. app_type_idx =
  1394. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1395. sample_rate =
  1396. fe_dai_app_type_cfg[fe_id][session_type][i]
  1397. .sample_rate;
  1398. bit_width =
  1399. lsm_app_type_cfg[app_type_idx].bit_width;
  1400. } else if (app_type) {
  1401. app_type_idx =
  1402. msm_pcm_routing_get_app_type_idx(
  1403. app_type);
  1404. sample_rate =
  1405. fe_dai_app_type_cfg[fe_id][session_type][i].sample_rate;
  1406. bit_width =
  1407. app_type_cfg[app_type_idx].bit_width;
  1408. } else {
  1409. sample_rate = msm_bedais[i].sample_rate;
  1410. }
  1411. acdb_dev_id =
  1412. fe_dai_app_type_cfg[fe_id][session_type][i].acdb_dev_id;
  1413. topology = msm_routing_get_adm_topology(fe_id,
  1414. session_type,
  1415. i);
  1416. if ((passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  1417. || (passthr_mode ==
  1418. COMPRESSED_PASSTHROUGH_GEN)
  1419. || (passthr_mode ==
  1420. COMPRESSED_PASSTHROUGH_IEC61937))
  1421. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  1422. pr_debug("%s: Before adm open topology %d\n", __func__,
  1423. topology);
  1424. be_bit_width = msm_routing_get_bit_width(
  1425. msm_bedais[i].format);
  1426. if (hifi_filter_enabled && (msm_bedais[i].sample_rate
  1427. == 384000 || msm_bedais[i].sample_rate ==
  1428. 352800) && be_bit_width == 32)
  1429. bit_width = msm_routing_get_bit_width(
  1430. SNDRV_PCM_FORMAT_S32_LE);
  1431. copp_idx =
  1432. adm_open(port_id, path_type, sample_rate,
  1433. channels, topology, perf_mode,
  1434. bit_width, app_type, acdb_dev_id,
  1435. session_type);
  1436. if ((copp_idx < 0) ||
  1437. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1438. pr_err("%s:adm open failed coppid:%d\n",
  1439. __func__, copp_idx);
  1440. mutex_unlock(&routing_lock);
  1441. return -EINVAL;
  1442. }
  1443. pr_debug("%s: set idx bit of fe:%d, type: %d, be:%d\n",
  1444. __func__, fe_id, session_type, i);
  1445. set_bit(copp_idx,
  1446. &session_copp_map[fe_id][session_type][i]);
  1447. if (msm_is_resample_needed(
  1448. sample_rate,
  1449. msm_bedais[i].sample_rate))
  1450. adm_copp_mfc_cfg(port_id, copp_idx,
  1451. msm_bedais[i].sample_rate);
  1452. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1453. unsigned long copp =
  1454. session_copp_map[fe_id][session_type][i];
  1455. if (test_bit(j, &copp)) {
  1456. payload.port_id[num_copps] = port_id;
  1457. payload.copp_idx[num_copps] = j;
  1458. payload.app_type[num_copps] =
  1459. fe_dai_app_type_cfg
  1460. [fe_id][session_type][i]
  1461. .app_type;
  1462. payload.acdb_dev_id[num_copps] =
  1463. fe_dai_app_type_cfg
  1464. [fe_id][session_type][i]
  1465. .acdb_dev_id;
  1466. payload.sample_rate[num_copps] =
  1467. fe_dai_app_type_cfg
  1468. [fe_id][session_type][i]
  1469. .sample_rate;
  1470. num_copps++;
  1471. }
  1472. }
  1473. if (passthr_mode != COMPRESSED_PASSTHROUGH_DSD
  1474. && passthr_mode != COMPRESSED_PASSTHROUGH_GEN
  1475. && passthr_mode != COMPRESSED_PASSTHROUGH_IEC61937)
  1476. msm_routing_send_device_pp_params(port_id,
  1477. copp_idx, fe_id);
  1478. }
  1479. }
  1480. if (num_copps) {
  1481. payload.num_copps = num_copps;
  1482. payload.session_id = fe_dai_map[fe_id][session_type].strm_id;
  1483. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1484. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1485. }
  1486. mutex_unlock(&routing_lock);
  1487. return 0;
  1488. }
  1489. static u32 msm_pcm_routing_get_voc_sessionid(u16 val)
  1490. {
  1491. u32 session_id;
  1492. switch (val) {
  1493. case MSM_FRONTEND_DAI_QCHAT:
  1494. session_id = voc_get_session_id(QCHAT_SESSION_NAME);
  1495. break;
  1496. case MSM_FRONTEND_DAI_VOIP:
  1497. session_id = voc_get_session_id(VOIP_SESSION_NAME);
  1498. break;
  1499. case MSM_FRONTEND_DAI_VOICEMMODE1:
  1500. session_id = voc_get_session_id(VOICEMMODE1_NAME);
  1501. break;
  1502. case MSM_FRONTEND_DAI_VOICEMMODE2:
  1503. session_id = voc_get_session_id(VOICEMMODE2_NAME);
  1504. break;
  1505. default:
  1506. session_id = 0;
  1507. }
  1508. pr_debug("%s session_id 0x%x", __func__, session_id);
  1509. return session_id;
  1510. }
  1511. static int msm_pcm_routing_channel_mixer_v2(int fe_id, bool perf_mode,
  1512. int dspst_id, int stream_type)
  1513. {
  1514. int copp_idx = 0;
  1515. int sess_type = 0;
  1516. int j = 0, be_id = 0;
  1517. int ret = 0;
  1518. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1519. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1520. return 0;
  1521. }
  1522. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1523. sess_type = SESSION_TYPE_RX;
  1524. else
  1525. sess_type = SESSION_TYPE_TX;
  1526. if (!(channel_mixer_v2[fe_id][sess_type].enable)) {
  1527. pr_debug("%s: channel mixer not enabled for FE %d direction %d\n",
  1528. __func__, fe_id, sess_type);
  1529. return 0;
  1530. }
  1531. be_id = channel_mixer_v2[fe_id][sess_type].port_idx - 1;
  1532. channel_mixer_v2[fe_id][sess_type].input_channels[0] =
  1533. channel_mixer_v2[fe_id][sess_type].input_channel;
  1534. pr_debug("%s sess type %d,fe_id %d,override in:%d out:%d,be active %d\n",
  1535. __func__, sess_type, fe_id,
  1536. channel_mixer_v2[fe_id][sess_type].override_in_ch_map,
  1537. channel_mixer_v2[fe_id][sess_type].override_out_ch_map,
  1538. msm_bedais[be_id].active);
  1539. if ((msm_bedais[be_id].active) &&
  1540. test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0])) {
  1541. unsigned long copp =
  1542. session_copp_map[fe_id][sess_type][be_id];
  1543. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1544. if (test_bit(j, &copp)) {
  1545. copp_idx = j;
  1546. break;
  1547. }
  1548. }
  1549. ret = adm_programable_channel_mixer(
  1550. msm_bedais[be_id].port_id,
  1551. copp_idx, dspst_id, sess_type,
  1552. &channel_mixer_v2[fe_id][sess_type], 0);
  1553. }
  1554. return ret;
  1555. }
  1556. static int msm_pcm_routing_channel_mixer(int fe_id, bool perf_mode,
  1557. int dspst_id, int stream_type)
  1558. {
  1559. int copp_idx = 0;
  1560. int sess_type = 0;
  1561. int i = 0, j = 0, be_id;
  1562. int ret = 0;
  1563. ret = msm_pcm_routing_channel_mixer_v2(fe_id, perf_mode,
  1564. dspst_id, stream_type);
  1565. if (ret) {
  1566. pr_err("%s channel mixer v2 cmd set failure%d\n", __func__,
  1567. fe_id);
  1568. return ret;
  1569. }
  1570. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1571. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1572. return 0;
  1573. }
  1574. if (!(channel_mixer[fe_id].enable)) {
  1575. pr_debug("%s: channel mixer not enabled for FE %d\n",
  1576. __func__, fe_id);
  1577. return 0;
  1578. }
  1579. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1580. sess_type = SESSION_TYPE_RX;
  1581. else
  1582. sess_type = SESSION_TYPE_TX;
  1583. for (i = 0; i < ADM_MAX_CHANNELS && channel_input[fe_id][i] > 0;
  1584. ++i) {
  1585. be_id = channel_input[fe_id][i] - 1;
  1586. channel_mixer[fe_id].input_channels[i] =
  1587. msm_bedais[be_id].channel;
  1588. if ((msm_bedais[be_id].active) &&
  1589. test_bit(fe_id,
  1590. &msm_bedais[be_id].fe_sessions[0])) {
  1591. unsigned long copp =
  1592. session_copp_map[fe_id][sess_type][be_id];
  1593. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1594. if (test_bit(j, &copp)) {
  1595. copp_idx = j;
  1596. break;
  1597. }
  1598. }
  1599. pr_debug("%s: fe %d, be %d, channel %d, copp %d\n",
  1600. __func__,
  1601. fe_id, be_id, msm_bedais[be_id].channel,
  1602. copp_idx);
  1603. ret = adm_programable_channel_mixer(
  1604. get_port_id(msm_bedais[be_id].port_id),
  1605. copp_idx, dspst_id, sess_type,
  1606. channel_mixer + fe_id, i);
  1607. }
  1608. }
  1609. return ret;
  1610. }
  1611. /**
  1612. * msm_pcm_routing_set_channel_mixer_runtime - apply channel mixer
  1613. * setting during runtime.
  1614. *
  1615. * @be_id: backend index
  1616. * @session_id: session index
  1617. * @session_type: session type
  1618. * @params: parameters for channel mixer
  1619. *
  1620. * Retuen: 0 for success, else error
  1621. */
  1622. int msm_pcm_routing_set_channel_mixer_runtime(int be_id, int session_id,
  1623. int session_type,
  1624. struct msm_pcm_channel_mixer *params)
  1625. {
  1626. int rc = 0;
  1627. int port_id, copp_idx = 0;
  1628. be_id--;
  1629. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1630. pr_err("%s: invalid backend id %d\n", __func__,
  1631. be_id);
  1632. return -EINVAL;
  1633. }
  1634. port_id = msm_bedais[be_id].port_id;
  1635. copp_idx = adm_get_default_copp_idx(port_id);
  1636. pr_debug("%s: port_id - %d, copp_idx %d session id - %d\n",
  1637. __func__, port_id, copp_idx, session_id);
  1638. if ((params->input_channel < 0) ||
  1639. (params->input_channel > ADM_MAX_CHANNELS)) {
  1640. pr_err("%s: invalid input channel %d\n", __func__,
  1641. params->input_channel);
  1642. return -EINVAL;
  1643. }
  1644. if ((params->output_channel < 0) ||
  1645. (params->output_channel > ADM_MAX_CHANNELS)) {
  1646. pr_err("%s: invalid output channel %d\n", __func__,
  1647. params->output_channel);
  1648. return -EINVAL;
  1649. }
  1650. params->input_channels[0] = params->input_channel;
  1651. pr_debug("%s sess type %d,override in:%d out:%d,be active %d\n",
  1652. __func__, session_type,
  1653. params->override_in_ch_map,
  1654. params->override_out_ch_map,
  1655. msm_bedais[be_id].active);
  1656. rc = adm_programable_channel_mixer(port_id,
  1657. copp_idx,
  1658. session_id,
  1659. session_type,
  1660. params,
  1661. 0);
  1662. if (rc) {
  1663. pr_err("%s: send params failed rc=%d\n", __func__, rc);
  1664. rc = -EINVAL;
  1665. }
  1666. return rc;
  1667. }
  1668. EXPORT_SYMBOL(msm_pcm_routing_set_channel_mixer_runtime);
  1669. int msm_pcm_routing_reg_phy_stream(int fedai_id, int perf_mode,
  1670. int dspst_id, int stream_type)
  1671. {
  1672. int i, j, session_type, path_type, port_type, topology, num_copps = 0;
  1673. struct route_payload payload;
  1674. u32 channels, sample_rate;
  1675. uint16_t bits_per_sample = 16, be_bit_width;
  1676. uint32_t passthr_mode = LEGACY_PCM;
  1677. int ret = 0;
  1678. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1679. /* bad ID assigned in machine driver */
  1680. pr_err("%s: bad MM ID %d\n", __func__, fedai_id);
  1681. return -EINVAL;
  1682. }
  1683. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1684. session_type = SESSION_TYPE_RX;
  1685. path_type = ADM_PATH_PLAYBACK;
  1686. port_type = MSM_AFE_PORT_TYPE_RX;
  1687. } else {
  1688. session_type = SESSION_TYPE_TX;
  1689. path_type = ADM_PATH_LIVE_REC;
  1690. port_type = MSM_AFE_PORT_TYPE_TX;
  1691. }
  1692. mutex_lock(&routing_lock);
  1693. payload.num_copps = 0; /* only RX needs to use payload */
  1694. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1695. fe_dai_map[fedai_id][session_type].perf_mode = perf_mode;
  1696. fe_dai_map[fedai_id][session_type].passthr_mode = LEGACY_PCM;
  1697. /* re-enable EQ if active */
  1698. msm_qti_pp_send_eq_values(fedai_id);
  1699. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1700. if (!is_be_dai_extproc(i) &&
  1701. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1702. (msm_bedais[i].active) &&
  1703. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1704. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1705. int port_id = get_port_id(msm_bedais[i].port_id);
  1706. /*
  1707. * check if ADM needs to be configured with different
  1708. * channel mapping than backend
  1709. */
  1710. if (!msm_bedais[i].adm_override_ch)
  1711. channels = msm_bedais[i].channel;
  1712. else
  1713. channels = msm_bedais[i].adm_override_ch;
  1714. bits_per_sample = msm_routing_get_bit_width(
  1715. msm_bedais[i].format);
  1716. app_type =
  1717. fe_dai_app_type_cfg[fedai_id][session_type][i].app_type;
  1718. if (app_type) {
  1719. app_type_idx =
  1720. msm_pcm_routing_get_app_type_idx(app_type);
  1721. sample_rate =
  1722. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1723. .sample_rate;
  1724. bits_per_sample =
  1725. app_type_cfg[app_type_idx].bit_width;
  1726. } else
  1727. sample_rate = msm_bedais[i].sample_rate;
  1728. acdb_dev_id =
  1729. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1730. .acdb_dev_id;
  1731. topology = msm_routing_get_adm_topology(fedai_id,
  1732. session_type,
  1733. i);
  1734. be_bit_width = msm_routing_get_bit_width(
  1735. msm_bedais[i].format);
  1736. if (hifi_filter_enabled && (msm_bedais[i].sample_rate ==
  1737. 384000 ||msm_bedais[i].sample_rate == 352800)
  1738. && be_bit_width == 32)
  1739. bits_per_sample = msm_routing_get_bit_width(
  1740. SNDRV_PCM_FORMAT_S32_LE);
  1741. copp_idx = adm_open(port_id, path_type,
  1742. sample_rate, channels, topology,
  1743. perf_mode, bits_per_sample,
  1744. app_type, acdb_dev_id,
  1745. session_type);
  1746. if ((copp_idx < 0) ||
  1747. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1748. pr_err("%s: adm open failed copp_idx:%d\n",
  1749. __func__, copp_idx);
  1750. mutex_unlock(&routing_lock);
  1751. return -EINVAL;
  1752. }
  1753. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1754. __func__, fedai_id, session_type, i);
  1755. set_bit(copp_idx,
  1756. &session_copp_map[fedai_id][session_type][i]);
  1757. if (msm_is_resample_needed(
  1758. sample_rate,
  1759. msm_bedais[i].sample_rate))
  1760. adm_copp_mfc_cfg(port_id, copp_idx,
  1761. msm_bedais[i].sample_rate);
  1762. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1763. unsigned long copp =
  1764. session_copp_map[fedai_id][session_type][i];
  1765. if (test_bit(j, &copp)) {
  1766. payload.port_id[num_copps] = port_id;
  1767. payload.copp_idx[num_copps] = j;
  1768. payload.app_type[num_copps] =
  1769. fe_dai_app_type_cfg
  1770. [fedai_id][session_type]
  1771. [i].app_type;
  1772. payload.acdb_dev_id[num_copps] =
  1773. fe_dai_app_type_cfg
  1774. [fedai_id][session_type]
  1775. [i].acdb_dev_id;
  1776. payload.sample_rate[num_copps] =
  1777. fe_dai_app_type_cfg
  1778. [fedai_id][session_type]
  1779. [i].sample_rate;
  1780. num_copps++;
  1781. }
  1782. }
  1783. if (perf_mode == LEGACY_PCM_MODE)
  1784. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  1785. topology, channels);
  1786. }
  1787. }
  1788. if (num_copps) {
  1789. payload.num_copps = num_copps;
  1790. payload.session_id = fe_dai_map[fedai_id][session_type].strm_id;
  1791. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1792. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1793. }
  1794. ret = msm_pcm_routing_channel_mixer(fedai_id, perf_mode,
  1795. dspst_id, stream_type);
  1796. mutex_unlock(&routing_lock);
  1797. return ret;
  1798. }
  1799. int msm_pcm_routing_reg_phy_stream_v2(int fedai_id, int perf_mode,
  1800. int dspst_id, int stream_type,
  1801. struct msm_pcm_routing_evt event_info)
  1802. {
  1803. if (msm_pcm_routing_reg_phy_stream(fedai_id, perf_mode, dspst_id,
  1804. stream_type)) {
  1805. pr_err("%s: failed to reg phy stream\n", __func__);
  1806. return -EINVAL;
  1807. }
  1808. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1809. fe_dai_map[fedai_id][SESSION_TYPE_RX].event_info = event_info;
  1810. else
  1811. fe_dai_map[fedai_id][SESSION_TYPE_TX].event_info = event_info;
  1812. return 0;
  1813. }
  1814. void msm_pcm_routing_dereg_phy_stream(int fedai_id, int stream_type)
  1815. {
  1816. int i, port_type, session_type, path_type, topology, port_id;
  1817. struct msm_pcm_routing_fdai_data *fdai;
  1818. if (!is_mm_lsm_fe_id(fedai_id)) {
  1819. /* bad ID assigned in machine driver */
  1820. pr_err("%s: bad MM ID\n", __func__);
  1821. return;
  1822. }
  1823. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1824. port_type = MSM_AFE_PORT_TYPE_RX;
  1825. session_type = SESSION_TYPE_RX;
  1826. path_type = ADM_PATH_PLAYBACK;
  1827. } else {
  1828. port_type = MSM_AFE_PORT_TYPE_TX;
  1829. session_type = SESSION_TYPE_TX;
  1830. path_type = ADM_PATH_LIVE_REC;
  1831. }
  1832. mutex_lock(&routing_lock);
  1833. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1834. if (!is_be_dai_extproc(i) &&
  1835. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1836. (msm_bedais[i].active) &&
  1837. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1838. int idx;
  1839. unsigned long copp =
  1840. session_copp_map[fedai_id][session_type][i];
  1841. fdai = &fe_dai_map[fedai_id][session_type];
  1842. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1843. if (test_bit(idx, &copp))
  1844. break;
  1845. if (idx >= MAX_COPPS_PER_PORT || idx < 0) {
  1846. pr_debug("%s: copp idx is invalid, exiting\n",
  1847. __func__);
  1848. continue;
  1849. }
  1850. port_id = get_port_id(msm_bedais[i].port_id);
  1851. topology = adm_get_topology_for_port_copp_idx(
  1852. port_id, idx);
  1853. msm_routing_unload_topology(topology);
  1854. adm_close(port_id, fdai->perf_mode, idx);
  1855. pr_debug("%s:copp:%ld,idx bit fe:%d,type:%d,be:%d\n",
  1856. __func__, copp, fedai_id, session_type, i);
  1857. clear_bit(idx,
  1858. &session_copp_map[fedai_id][session_type][i]);
  1859. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1860. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1861. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1862. (fdai->passthr_mode == LEGACY_PCM))
  1863. msm_pcm_routing_deinit_pp(port_id, topology);
  1864. }
  1865. }
  1866. fe_dai_map[fedai_id][session_type].strm_id = INVALID_SESSION;
  1867. fe_dai_map[fedai_id][session_type].be_srate = 0;
  1868. mutex_unlock(&routing_lock);
  1869. }
  1870. /* Check if FE/BE route is set */
  1871. static bool msm_pcm_routing_route_is_set(u16 be_id, u16 fe_id)
  1872. {
  1873. bool rc = false;
  1874. if (!is_mm_lsm_fe_id(fe_id)) {
  1875. /* recheck FE ID in the mixer control defined in this file */
  1876. pr_err("%s: bad MM ID\n", __func__);
  1877. return rc;
  1878. }
  1879. if (test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0]))
  1880. rc = true;
  1881. return rc;
  1882. }
  1883. static void msm_pcm_routing_process_audio(u16 reg, u16 val, int set)
  1884. {
  1885. int session_type, path_type, topology;
  1886. u32 channels, sample_rate;
  1887. uint16_t bits_per_sample = 16, be_bit_width;
  1888. struct msm_pcm_routing_fdai_data *fdai;
  1889. uint32_t passthr_mode;
  1890. bool is_lsm;
  1891. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1892. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  1893. afe_get_port_type(msm_bedais[reg].port_id) ==
  1894. MSM_AFE_PORT_TYPE_RX) {
  1895. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  1896. __func__, set, msm_bedais[reg].port_id);
  1897. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  1898. } else if (!is_mm_lsm_fe_id(val)) {
  1899. /* recheck FE ID in the mixer control defined in this file */
  1900. pr_err("%s: bad MM ID\n", __func__);
  1901. return;
  1902. }
  1903. if (!route_check_fe_id_adm_support(val)) {
  1904. /* ignore adm open if not supported for fe_id */
  1905. pr_debug("%s: No ADM support for fe id %d\n", __func__, val);
  1906. if (set)
  1907. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1908. else
  1909. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1910. return;
  1911. }
  1912. session_type =
  1913. (afe_get_port_type(msm_bedais[reg].port_id) == MSM_AFE_PORT_TYPE_RX) ?
  1914. SESSION_TYPE_RX : SESSION_TYPE_TX;
  1915. fdai = &fe_dai_map[val][session_type];
  1916. passthr_mode = fdai->passthr_mode;
  1917. if (session_type == SESSION_TYPE_RX) {
  1918. if (passthr_mode != LEGACY_PCM)
  1919. path_type = ADM_PATH_COMPRESSED_RX;
  1920. else
  1921. path_type = ADM_PATH_PLAYBACK;
  1922. } else {
  1923. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1924. path_type = ADM_PATH_COMPRESSED_TX;
  1925. else
  1926. path_type = ADM_PATH_LIVE_REC;
  1927. }
  1928. is_lsm = (val >= MSM_FRONTEND_DAI_LSM1) &&
  1929. (val <= MSM_FRONTEND_DAI_LSM8);
  1930. mutex_lock(&routing_lock);
  1931. if (set) {
  1932. if (!test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1933. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1934. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1935. voc_start_playback(set, msm_bedais[reg].port_id);
  1936. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1937. if (msm_bedais[reg].active && fdai->strm_id !=
  1938. INVALID_SESSION) {
  1939. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1940. int port_id = get_port_id(msm_bedais[reg].port_id);
  1941. /*
  1942. * check if ADM needs to be configured with different
  1943. * channel mapping than backend
  1944. */
  1945. if (!msm_bedais[reg].adm_override_ch)
  1946. channels = msm_bedais[reg].channel;
  1947. else
  1948. channels = msm_bedais[reg].adm_override_ch;
  1949. if (session_type == SESSION_TYPE_TX &&
  1950. fdai->be_srate &&
  1951. (fdai->be_srate != msm_bedais[reg].sample_rate)) {
  1952. pr_debug("%s: flush strm %d diff BE rates\n",
  1953. __func__, fdai->strm_id);
  1954. if (fdai->event_info.event_func)
  1955. fdai->event_info.event_func(
  1956. MSM_PCM_RT_EVT_BUF_RECFG,
  1957. fdai->event_info.priv_data);
  1958. fdai->be_srate = 0; /* might not need it */
  1959. }
  1960. bits_per_sample = msm_routing_get_bit_width(
  1961. msm_bedais[reg].format);
  1962. app_type =
  1963. fe_dai_app_type_cfg[val][session_type][reg].app_type;
  1964. if (app_type && is_lsm) {
  1965. app_type_idx =
  1966. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1967. sample_rate =
  1968. fe_dai_app_type_cfg[val][session_type][reg]
  1969. .sample_rate;
  1970. bits_per_sample =
  1971. lsm_app_type_cfg[app_type_idx].bit_width;
  1972. } else if (app_type) {
  1973. app_type_idx =
  1974. msm_pcm_routing_get_app_type_idx(app_type);
  1975. sample_rate =
  1976. fe_dai_app_type_cfg[val][session_type][reg]
  1977. .sample_rate;
  1978. bits_per_sample =
  1979. app_type_cfg[app_type_idx].bit_width;
  1980. } else
  1981. sample_rate = msm_bedais[reg].sample_rate;
  1982. topology = msm_routing_get_adm_topology(val,
  1983. session_type,
  1984. reg);
  1985. acdb_dev_id =
  1986. fe_dai_app_type_cfg[val][session_type][reg].acdb_dev_id;
  1987. be_bit_width = msm_routing_get_bit_width(
  1988. msm_bedais[reg].format);
  1989. if (hifi_filter_enabled && (msm_bedais[reg].sample_rate
  1990. == 384000 ||msm_bedais[reg].sample_rate ==
  1991. 352800) && be_bit_width == 32)
  1992. bits_per_sample = msm_routing_get_bit_width(
  1993. SNDRV_PCM_FORMAT_S32_LE);
  1994. copp_idx = adm_open(port_id, path_type,
  1995. sample_rate, channels, topology,
  1996. fdai->perf_mode, bits_per_sample,
  1997. app_type, acdb_dev_id,
  1998. session_type);
  1999. if ((copp_idx < 0) ||
  2000. (copp_idx >= MAX_COPPS_PER_PORT)) {
  2001. pr_err("%s: adm open failed\n", __func__);
  2002. mutex_unlock(&routing_lock);
  2003. return;
  2004. }
  2005. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  2006. __func__, val, session_type, reg);
  2007. set_bit(copp_idx,
  2008. &session_copp_map[val][session_type][reg]);
  2009. if (msm_is_resample_needed(
  2010. sample_rate,
  2011. msm_bedais[reg].sample_rate))
  2012. adm_copp_mfc_cfg(port_id, copp_idx,
  2013. msm_bedais[reg].sample_rate);
  2014. if (session_type == SESSION_TYPE_RX &&
  2015. fdai->event_info.event_func)
  2016. fdai->event_info.event_func(
  2017. MSM_PCM_RT_EVT_DEVSWITCH,
  2018. fdai->event_info.priv_data);
  2019. msm_pcm_routing_build_matrix(val, session_type,
  2020. path_type,
  2021. fdai->perf_mode,
  2022. passthr_mode);
  2023. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  2024. (passthr_mode == LEGACY_PCM))
  2025. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  2026. topology, channels);
  2027. }
  2028. } else {
  2029. if (test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  2030. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  2031. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  2032. voc_start_playback(set, msm_bedais[reg].port_id);
  2033. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2034. if (msm_bedais[reg].active && fdai->strm_id !=
  2035. INVALID_SESSION) {
  2036. int idx;
  2037. int port_id;
  2038. unsigned long copp =
  2039. session_copp_map[val][session_type][reg];
  2040. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  2041. if (test_bit(idx, &copp))
  2042. break;
  2043. if (idx >= MAX_COPPS_PER_PORT) {
  2044. pr_debug("%s: copp idx is invalid, exiting\n",
  2045. __func__);
  2046. mutex_unlock(&routing_lock);
  2047. return;
  2048. }
  2049. port_id = get_port_id(msm_bedais[reg].port_id);
  2050. topology = adm_get_topology_for_port_copp_idx(port_id,
  2051. idx);
  2052. msm_routing_unload_topology(topology);
  2053. adm_close(port_id, fdai->perf_mode, idx);
  2054. pr_debug("%s: copp: %ld, reset idx bit fe:%d, type: %d, be:%d topology=0x%x\n",
  2055. __func__, copp, val, session_type, reg,
  2056. topology);
  2057. clear_bit(idx,
  2058. &session_copp_map[val][session_type][reg]);
  2059. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  2060. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  2061. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  2062. (passthr_mode == LEGACY_PCM))
  2063. msm_pcm_routing_deinit_pp(port_id, topology);
  2064. msm_pcm_routing_build_matrix(val, session_type,
  2065. path_type,
  2066. fdai->perf_mode,
  2067. passthr_mode);
  2068. }
  2069. }
  2070. if ((msm_bedais[reg].port_id == VOICE_RECORD_RX)
  2071. || (msm_bedais[reg].port_id == VOICE_RECORD_TX))
  2072. voc_start_record(msm_bedais[reg].port_id, set, voc_session_id);
  2073. mutex_unlock(&routing_lock);
  2074. }
  2075. static int msm_routing_get_audio_mixer(struct snd_kcontrol *kcontrol,
  2076. struct snd_ctl_elem_value *ucontrol)
  2077. {
  2078. struct soc_mixer_control *mc =
  2079. (struct soc_mixer_control *)kcontrol->private_value;
  2080. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2081. ucontrol->value.integer.value[0] = 1;
  2082. else
  2083. ucontrol->value.integer.value[0] = 0;
  2084. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2085. ucontrol->value.integer.value[0]);
  2086. return 0;
  2087. }
  2088. static int msm_routing_put_audio_mixer(struct snd_kcontrol *kcontrol,
  2089. struct snd_ctl_elem_value *ucontrol)
  2090. {
  2091. struct snd_soc_dapm_widget *widget =
  2092. snd_soc_dapm_kcontrol_widget(kcontrol);
  2093. struct soc_mixer_control *mc =
  2094. (struct soc_mixer_control *)kcontrol->private_value;
  2095. struct snd_soc_dapm_update *update = NULL;
  2096. if (ucontrol->value.integer.value[0] &&
  2097. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false) {
  2098. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  2099. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2100. update);
  2101. } else if (!ucontrol->value.integer.value[0] &&
  2102. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true) {
  2103. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  2104. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2105. update);
  2106. }
  2107. return 1;
  2108. }
  2109. static int msm_routing_get_listen_mixer(struct snd_kcontrol *kcontrol,
  2110. struct snd_ctl_elem_value *ucontrol)
  2111. {
  2112. struct soc_mixer_control *mc =
  2113. (struct soc_mixer_control *)kcontrol->private_value;
  2114. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2115. ucontrol->value.integer.value[0] = 1;
  2116. else
  2117. ucontrol->value.integer.value[0] = 0;
  2118. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2119. ucontrol->value.integer.value[0]);
  2120. return 0;
  2121. }
  2122. static int msm_routing_put_listen_mixer(struct snd_kcontrol *kcontrol,
  2123. struct snd_ctl_elem_value *ucontrol)
  2124. {
  2125. struct snd_soc_dapm_widget *widget =
  2126. snd_soc_dapm_kcontrol_widget(kcontrol);
  2127. struct soc_mixer_control *mc =
  2128. (struct soc_mixer_control *)kcontrol->private_value;
  2129. struct snd_soc_dapm_update *update = NULL;
  2130. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2131. ucontrol->value.integer.value[0]);
  2132. if (ucontrol->value.integer.value[0]) {
  2133. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false)
  2134. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  2135. snd_soc_dapm_mixer_update_power(widget->dapm,
  2136. kcontrol, 1, update);
  2137. } else if (!ucontrol->value.integer.value[0]) {
  2138. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true)
  2139. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  2140. snd_soc_dapm_mixer_update_power(widget->dapm,
  2141. kcontrol, 0, update);
  2142. }
  2143. return 1;
  2144. }
  2145. static void msm_pcm_routing_process_voice(u16 reg, u16 val, int set)
  2146. {
  2147. u32 session_id = 0;
  2148. u16 path_type;
  2149. struct media_format_info voc_be_media_format;
  2150. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  2151. session_id = msm_pcm_routing_get_voc_sessionid(val);
  2152. pr_debug("%s: FE DAI 0x%x session_id 0x%x\n",
  2153. __func__, val, session_id);
  2154. mutex_lock(&routing_lock);
  2155. if (set)
  2156. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2157. else
  2158. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2159. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  2160. afe_get_port_type(msm_bedais[reg].port_id) ==
  2161. MSM_AFE_PORT_TYPE_RX) {
  2162. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  2163. __func__, set, msm_bedais[reg].port_id);
  2164. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  2165. }
  2166. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  2167. MSM_AFE_PORT_TYPE_RX)
  2168. path_type = RX_PATH;
  2169. else
  2170. path_type = TX_PATH;
  2171. if (set) {
  2172. if (msm_bedais[reg].active) {
  2173. voc_set_route_flag(session_id, path_type, 1);
  2174. memset(&voc_be_media_format, 0,
  2175. sizeof(struct media_format_info));
  2176. voc_be_media_format.port_id = msm_bedais[reg].port_id;
  2177. voc_be_media_format.num_channels =
  2178. msm_bedais[reg].channel;
  2179. voc_be_media_format.sample_rate =
  2180. msm_bedais[reg].sample_rate;
  2181. voc_be_media_format.bits_per_sample =
  2182. msm_bedais[reg].format;
  2183. /* Defaulting this to 1 for voice call usecases */
  2184. voc_be_media_format.channel_mapping[0] = 1;
  2185. voc_set_device_config(session_id, path_type,
  2186. &voc_be_media_format);
  2187. if (voc_get_route_flag(session_id, TX_PATH) &&
  2188. voc_get_route_flag(session_id, RX_PATH))
  2189. voc_enable_device(session_id);
  2190. } else {
  2191. pr_debug("%s BE is not active\n", __func__);
  2192. }
  2193. } else {
  2194. voc_set_route_flag(session_id, path_type, 0);
  2195. voc_disable_device(session_id);
  2196. }
  2197. mutex_unlock(&routing_lock);
  2198. }
  2199. static int msm_routing_get_voice_mixer(struct snd_kcontrol *kcontrol,
  2200. struct snd_ctl_elem_value *ucontrol)
  2201. {
  2202. struct soc_mixer_control *mc =
  2203. (struct soc_mixer_control *)kcontrol->private_value;
  2204. mutex_lock(&routing_lock);
  2205. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2206. ucontrol->value.integer.value[0] = 1;
  2207. else
  2208. ucontrol->value.integer.value[0] = 0;
  2209. mutex_unlock(&routing_lock);
  2210. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2211. ucontrol->value.integer.value[0]);
  2212. return 0;
  2213. }
  2214. static int msm_routing_put_voice_mixer(struct snd_kcontrol *kcontrol,
  2215. struct snd_ctl_elem_value *ucontrol)
  2216. {
  2217. struct snd_soc_dapm_widget *widget =
  2218. snd_soc_dapm_kcontrol_widget(kcontrol);
  2219. struct soc_mixer_control *mc =
  2220. (struct soc_mixer_control *)kcontrol->private_value;
  2221. struct snd_soc_dapm_update *update = NULL;
  2222. if (ucontrol->value.integer.value[0]) {
  2223. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 1);
  2224. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2225. update);
  2226. } else {
  2227. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 0);
  2228. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2229. update);
  2230. }
  2231. return 1;
  2232. }
  2233. static int msm_routing_get_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  2234. struct snd_ctl_elem_value *ucontrol)
  2235. {
  2236. struct soc_mixer_control *mc =
  2237. (struct soc_mixer_control *)kcontrol->private_value;
  2238. mutex_lock(&routing_lock);
  2239. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2240. ucontrol->value.integer.value[0] = 1;
  2241. else
  2242. ucontrol->value.integer.value[0] = 0;
  2243. mutex_unlock(&routing_lock);
  2244. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2245. ucontrol->value.integer.value[0]);
  2246. return 0;
  2247. }
  2248. static int msm_routing_put_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  2249. struct snd_ctl_elem_value *ucontrol)
  2250. {
  2251. struct snd_soc_dapm_widget *widget =
  2252. snd_soc_dapm_kcontrol_widget(kcontrol);
  2253. struct soc_mixer_control *mc =
  2254. (struct soc_mixer_control *)kcontrol->private_value;
  2255. struct snd_soc_dapm_update *update = NULL;
  2256. if (ucontrol->value.integer.value[0]) {
  2257. mutex_lock(&routing_lock);
  2258. set_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  2259. mutex_unlock(&routing_lock);
  2260. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2261. update);
  2262. } else {
  2263. mutex_lock(&routing_lock);
  2264. clear_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  2265. mutex_unlock(&routing_lock);
  2266. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2267. update);
  2268. }
  2269. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2270. ucontrol->value.integer.value[0]);
  2271. return 1;
  2272. }
  2273. /*
  2274. * Return the mapping between port ID and backend ID to enable the AFE callback
  2275. * to determine the acdb_dev_id from the port id
  2276. */
  2277. int msm_pcm_get_be_id_from_port_id(int port_id)
  2278. {
  2279. int i;
  2280. int be_id = -EINVAL;
  2281. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  2282. if (msm_bedais[i].port_id == port_id) {
  2283. be_id = i;
  2284. break;
  2285. }
  2286. }
  2287. return be_id;
  2288. }
  2289. /*
  2290. * Return the registered dev_acdb_id given a port ID to enable identifying the
  2291. * correct AFE calibration information by comparing the header information.
  2292. */
  2293. static int msm_pcm_get_dev_acdb_id_by_port_id(int port_id)
  2294. {
  2295. int acdb_id = -EINVAL;
  2296. int i = 0;
  2297. int session;
  2298. int port_type = afe_get_port_type(port_id);
  2299. int be_id = msm_pcm_get_be_id_from_port_id(port_id);
  2300. pr_debug("%s:port_id %d be_id %d, port_type 0x%x\n",
  2301. __func__, port_id, be_id, port_type);
  2302. if (port_type == MSM_AFE_PORT_TYPE_TX) {
  2303. session = SESSION_TYPE_TX;
  2304. } else if (port_type == MSM_AFE_PORT_TYPE_RX) {
  2305. session = SESSION_TYPE_RX;
  2306. } else {
  2307. pr_err("%s: Invalid port type %d\n", __func__, port_type);
  2308. acdb_id = -EINVAL;
  2309. goto exit;
  2310. }
  2311. if (be_id < 0) {
  2312. pr_err("%s: Error getting backend id %d\n", __func__, be_id);
  2313. goto exit;
  2314. }
  2315. mutex_lock(&routing_lock);
  2316. i = find_first_bit(&msm_bedais[be_id].fe_sessions[0],
  2317. MSM_FRONTEND_DAI_MAX);
  2318. if (i < MSM_FRONTEND_DAI_MAX)
  2319. acdb_id = fe_dai_app_type_cfg[i][session][be_id].acdb_dev_id;
  2320. pr_debug("%s: FE[%d] session[%d] BE[%d] acdb_id(%d)\n",
  2321. __func__, i, session, be_id, acdb_id);
  2322. mutex_unlock(&routing_lock);
  2323. exit:
  2324. return acdb_id;
  2325. }
  2326. static int msm_routing_get_switch_mixer(struct snd_kcontrol *kcontrol,
  2327. struct snd_ctl_elem_value *ucontrol)
  2328. {
  2329. ucontrol->value.integer.value[0] = fm_switch_enable;
  2330. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2331. ucontrol->value.integer.value[0]);
  2332. return 0;
  2333. }
  2334. static int msm_routing_put_switch_mixer(struct snd_kcontrol *kcontrol,
  2335. struct snd_ctl_elem_value *ucontrol)
  2336. {
  2337. struct snd_soc_dapm_widget *widget =
  2338. snd_soc_dapm_kcontrol_widget(kcontrol);
  2339. struct snd_soc_dapm_update *update = NULL;
  2340. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2341. ucontrol->value.integer.value[0]);
  2342. if (ucontrol->value.integer.value[0])
  2343. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2344. update);
  2345. else
  2346. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2347. update);
  2348. fm_switch_enable = ucontrol->value.integer.value[0];
  2349. return 1;
  2350. }
  2351. static int msm_routing_get_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2352. struct snd_ctl_elem_value *ucontrol)
  2353. {
  2354. ucontrol->value.integer.value[0] = hfp_switch_enable;
  2355. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2356. ucontrol->value.integer.value[0]);
  2357. return 0;
  2358. }
  2359. static int msm_routing_put_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2360. struct snd_ctl_elem_value *ucontrol)
  2361. {
  2362. struct snd_soc_dapm_widget *widget =
  2363. snd_soc_dapm_kcontrol_widget(kcontrol);
  2364. struct snd_soc_dapm_update *update = NULL;
  2365. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2366. ucontrol->value.integer.value[0]);
  2367. if (ucontrol->value.integer.value[0])
  2368. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2369. 1, update);
  2370. else
  2371. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2372. 0, update);
  2373. hfp_switch_enable = ucontrol->value.integer.value[0];
  2374. return 1;
  2375. }
  2376. static int msm_routing_a2dp_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2377. struct snd_ctl_elem_value *ucontrol)
  2378. {
  2379. ucontrol->value.integer.value[0] = a2dp_switch_enable;
  2380. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2381. ucontrol->value.integer.value[0]);
  2382. return 0;
  2383. }
  2384. static int msm_routing_a2dp_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2385. struct snd_ctl_elem_value *ucontrol)
  2386. {
  2387. struct snd_soc_dapm_widget *widget =
  2388. snd_soc_dapm_kcontrol_widget(kcontrol);
  2389. struct snd_soc_dapm_update *update = NULL;
  2390. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2391. ucontrol->value.integer.value[0]);
  2392. a2dp_switch_enable = ucontrol->value.integer.value[0];
  2393. if (a2dp_switch_enable)
  2394. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2395. 1, update);
  2396. else
  2397. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2398. 0, update);
  2399. return 1;
  2400. }
  2401. static int msm_routing_sco_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2402. struct snd_ctl_elem_value *ucontrol)
  2403. {
  2404. ucontrol->value.integer.value[0] = sco_switch_enable;
  2405. pr_debug("%s: SCO Switch enable %ld\n", __func__,
  2406. ucontrol->value.integer.value[0]);
  2407. return 0;
  2408. }
  2409. static int msm_routing_sco_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2410. struct snd_ctl_elem_value *ucontrol)
  2411. {
  2412. struct snd_soc_dapm_widget *widget =
  2413. snd_soc_dapm_kcontrol_widget(kcontrol);
  2414. struct snd_soc_dapm_update *update = NULL;
  2415. pr_debug("%s: SCO Switch enable %ld\n", __func__,
  2416. ucontrol->value.integer.value[0]);
  2417. sco_switch_enable = ucontrol->value.integer.value[0];
  2418. if (sco_switch_enable)
  2419. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2420. 1, update);
  2421. else
  2422. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2423. 0, update);
  2424. return 1;
  2425. }
  2426. static int msm_routing_get_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2427. struct snd_ctl_elem_value *ucontrol)
  2428. {
  2429. ucontrol->value.integer.value[0] = int0_mi2s_switch_enable;
  2430. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2431. ucontrol->value.integer.value[0]);
  2432. return 0;
  2433. }
  2434. static int msm_routing_put_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2435. struct snd_ctl_elem_value *ucontrol)
  2436. {
  2437. struct snd_soc_dapm_widget *widget =
  2438. snd_soc_dapm_kcontrol_widget(kcontrol);
  2439. struct snd_soc_dapm_update *update = NULL;
  2440. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2441. ucontrol->value.integer.value[0]);
  2442. if (ucontrol->value.integer.value[0])
  2443. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2444. update);
  2445. else
  2446. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2447. update);
  2448. int0_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2449. return 1;
  2450. }
  2451. static int msm_routing_get_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2452. struct snd_ctl_elem_value *ucontrol)
  2453. {
  2454. ucontrol->value.integer.value[0] = int4_mi2s_switch_enable;
  2455. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2456. ucontrol->value.integer.value[0]);
  2457. return 0;
  2458. }
  2459. static int msm_routing_put_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2460. struct snd_ctl_elem_value *ucontrol)
  2461. {
  2462. struct snd_soc_dapm_widget *widget =
  2463. snd_soc_dapm_kcontrol_widget(kcontrol);
  2464. struct snd_soc_dapm_update *update = NULL;
  2465. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2466. ucontrol->value.integer.value[0]);
  2467. if (ucontrol->value.integer.value[0])
  2468. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2469. update);
  2470. else
  2471. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2472. update);
  2473. int4_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2474. return 1;
  2475. }
  2476. static int msm_routing_get_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2477. struct snd_ctl_elem_value *ucontrol)
  2478. {
  2479. ucontrol->value.integer.value[0] = usb_switch_enable;
  2480. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2481. ucontrol->value.integer.value[0]);
  2482. return 0;
  2483. }
  2484. static int msm_routing_put_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2485. struct snd_ctl_elem_value *ucontrol)
  2486. {
  2487. struct snd_soc_dapm_widget *widget =
  2488. snd_soc_dapm_kcontrol_widget(kcontrol);
  2489. struct snd_soc_dapm_update *update = NULL;
  2490. pr_debug("%s: USB Switch enable %ld\n", __func__,
  2491. ucontrol->value.integer.value[0]);
  2492. if (ucontrol->value.integer.value[0])
  2493. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2494. 1, update);
  2495. else
  2496. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2497. 0, update);
  2498. usb_switch_enable = ucontrol->value.integer.value[0];
  2499. return 1;
  2500. }
  2501. static int msm_routing_get_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2502. struct snd_ctl_elem_value *ucontrol)
  2503. {
  2504. ucontrol->value.integer.value[0] = pri_mi2s_switch_enable;
  2505. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2506. ucontrol->value.integer.value[0]);
  2507. return 0;
  2508. }
  2509. static int msm_routing_put_pri_mi2s_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: PRI MI2S 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. pri_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2524. return 1;
  2525. }
  2526. static int msm_routing_get_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2527. struct snd_ctl_elem_value *ucontrol)
  2528. {
  2529. ucontrol->value.integer.value[0] = sec_mi2s_switch_enable;
  2530. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2531. ucontrol->value.integer.value[0]);
  2532. return 0;
  2533. }
  2534. static int msm_routing_put_sec_mi2s_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: SEC MI2S 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, 1,
  2544. update);
  2545. else
  2546. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2547. update);
  2548. sec_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2549. return 1;
  2550. }
  2551. static int msm_routing_get_tert_mi2s_switch_mixer(
  2552. struct snd_kcontrol *kcontrol,
  2553. struct snd_ctl_elem_value *ucontrol)
  2554. {
  2555. ucontrol->value.integer.value[0] = tert_mi2s_switch_enable;
  2556. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2557. ucontrol->value.integer.value[0]);
  2558. return 0;
  2559. }
  2560. static int msm_routing_put_tert_mi2s_switch_mixer(
  2561. struct snd_kcontrol *kcontrol,
  2562. struct snd_ctl_elem_value *ucontrol)
  2563. {
  2564. struct snd_soc_dapm_widget *widget =
  2565. snd_soc_dapm_kcontrol_widget(kcontrol);
  2566. struct snd_soc_dapm_update *update = NULL;
  2567. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2568. ucontrol->value.integer.value[0]);
  2569. if (ucontrol->value.integer.value[0])
  2570. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2571. update);
  2572. else
  2573. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2574. update);
  2575. tert_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2576. return 1;
  2577. }
  2578. static int msm_routing_get_quat_mi2s_switch_mixer(
  2579. struct snd_kcontrol *kcontrol,
  2580. struct snd_ctl_elem_value *ucontrol)
  2581. {
  2582. ucontrol->value.integer.value[0] = quat_mi2s_switch_enable;
  2583. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2584. ucontrol->value.integer.value[0]);
  2585. return 0;
  2586. }
  2587. static int msm_routing_put_quat_mi2s_switch_mixer(
  2588. struct snd_kcontrol *kcontrol,
  2589. struct snd_ctl_elem_value *ucontrol)
  2590. {
  2591. struct snd_soc_dapm_widget *widget =
  2592. snd_soc_dapm_kcontrol_widget(kcontrol);
  2593. struct snd_soc_dapm_update *update = NULL;
  2594. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2595. ucontrol->value.integer.value[0]);
  2596. if (ucontrol->value.integer.value[0])
  2597. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2598. update);
  2599. else
  2600. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2601. update);
  2602. quat_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2603. return 1;
  2604. }
  2605. static int msm_routing_get_quin_mi2s_switch_mixer(
  2606. struct snd_kcontrol *kcontrol,
  2607. struct snd_ctl_elem_value *ucontrol)
  2608. {
  2609. ucontrol->value.integer.value[0] = quin_mi2s_switch_enable;
  2610. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2611. ucontrol->value.integer.value[0]);
  2612. return 0;
  2613. }
  2614. static int msm_routing_put_quin_mi2s_switch_mixer(
  2615. struct snd_kcontrol *kcontrol,
  2616. struct snd_ctl_elem_value *ucontrol)
  2617. {
  2618. struct snd_soc_dapm_widget *widget =
  2619. snd_soc_dapm_kcontrol_widget(kcontrol);
  2620. struct snd_soc_dapm_update *update = NULL;
  2621. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2622. ucontrol->value.integer.value[0]);
  2623. if (ucontrol->value.integer.value[0])
  2624. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2625. update);
  2626. else
  2627. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2628. update);
  2629. quin_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2630. return 1;
  2631. }
  2632. static int msm_routing_get_sen_mi2s_switch_mixer(
  2633. struct snd_kcontrol *kcontrol,
  2634. struct snd_ctl_elem_value *ucontrol)
  2635. {
  2636. ucontrol->value.integer.value[0] = sen_mi2s_switch_enable;
  2637. pr_debug("%s: SEN MI2S Switch enable %ld\n", __func__,
  2638. ucontrol->value.integer.value[0]);
  2639. return 0;
  2640. }
  2641. static int msm_routing_put_sen_mi2s_switch_mixer(
  2642. struct snd_kcontrol *kcontrol,
  2643. struct snd_ctl_elem_value *ucontrol)
  2644. {
  2645. struct snd_soc_dapm_widget *widget =
  2646. snd_soc_dapm_kcontrol_widget(kcontrol);
  2647. struct snd_soc_dapm_update *update = NULL;
  2648. pr_debug("%s: SEN MI2S Switch enable %ld\n", __func__,
  2649. ucontrol->value.integer.value[0]);
  2650. if (ucontrol->value.integer.value[0])
  2651. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2652. update);
  2653. else
  2654. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2655. update);
  2656. sen_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2657. return 1;
  2658. }
  2659. static int msm_routing_get_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2660. struct snd_ctl_elem_value *ucontrol)
  2661. {
  2662. ucontrol->value.integer.value[0] = fm_pcmrx_switch_enable;
  2663. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2664. ucontrol->value.integer.value[0]);
  2665. return 0;
  2666. }
  2667. static int msm_routing_put_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2668. struct snd_ctl_elem_value *ucontrol)
  2669. {
  2670. struct snd_soc_dapm_widget *widget =
  2671. snd_soc_dapm_kcontrol_widget(kcontrol);
  2672. struct snd_soc_dapm_update *update = NULL;
  2673. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2674. ucontrol->value.integer.value[0]);
  2675. if (ucontrol->value.integer.value[0])
  2676. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2677. update);
  2678. else
  2679. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2680. update);
  2681. fm_pcmrx_switch_enable = ucontrol->value.integer.value[0];
  2682. return 1;
  2683. }
  2684. static void msm_routing_get_lsm_fe_idx(struct snd_kcontrol *kcontrol,
  2685. u8 *fe_idx)
  2686. {
  2687. int fe_id = MSM_FRONTEND_DAI_LSM1;
  2688. if (strnstr(kcontrol->id.name, "LSM1", sizeof("LSM1"))) {
  2689. fe_id = MSM_FRONTEND_DAI_LSM1;
  2690. } else if (strnstr(kcontrol->id.name, "LSM2", sizeof("LSM2"))) {
  2691. fe_id = MSM_FRONTEND_DAI_LSM2;
  2692. } else if (strnstr(kcontrol->id.name, "LSM3", sizeof("LSM3"))) {
  2693. fe_id = MSM_FRONTEND_DAI_LSM3;
  2694. } else if (strnstr(kcontrol->id.name, "LSM4", sizeof("LSM4"))) {
  2695. fe_id = MSM_FRONTEND_DAI_LSM4;
  2696. } else if (strnstr(kcontrol->id.name, "LSM5", sizeof("LSM5"))) {
  2697. fe_id = MSM_FRONTEND_DAI_LSM5;
  2698. } else if (strnstr(kcontrol->id.name, "LSM6", sizeof("LSM6"))) {
  2699. fe_id = MSM_FRONTEND_DAI_LSM6;
  2700. } else if (strnstr(kcontrol->id.name, "LSM7", sizeof("LSM7"))) {
  2701. fe_id = MSM_FRONTEND_DAI_LSM7;
  2702. } else if (strnstr(kcontrol->id.name, "LSM8", sizeof("LSM8"))) {
  2703. fe_id = MSM_FRONTEND_DAI_LSM8;
  2704. } else {
  2705. pr_err("%s: Invalid kcontrol name:%s\n", __func__,
  2706. kcontrol->id.name);
  2707. return;
  2708. }
  2709. *fe_idx = fe_id - MSM_FRONTEND_DAI_LSM1;
  2710. pr_debug("%s: fe_id: %d, fe_idx:%d\n", __func__, fe_id, *fe_idx);
  2711. }
  2712. static int msm_routing_lsm_port_get(struct snd_kcontrol *kcontrol,
  2713. struct snd_ctl_elem_value *ucontrol)
  2714. {
  2715. u8 fe_idx = 0;
  2716. msm_routing_get_lsm_fe_idx(kcontrol, &fe_idx);
  2717. ucontrol->value.integer.value[0] = lsm_port_index[fe_idx];
  2718. return 0;
  2719. }
  2720. static int msm_routing_lsm_port_put(struct snd_kcontrol *kcontrol,
  2721. struct snd_ctl_elem_value *ucontrol)
  2722. {
  2723. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2724. int mux = ucontrol->value.enumerated.item[0];
  2725. int lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2726. u8 fe_idx = 0;
  2727. if (mux >= e->items) {
  2728. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  2729. return -EINVAL;
  2730. }
  2731. pr_debug("%s: LSM enable %ld\n", __func__,
  2732. ucontrol->value.integer.value[0]);
  2733. switch (ucontrol->value.integer.value[0]) {
  2734. case 1:
  2735. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_0_TX;
  2736. break;
  2737. case 2:
  2738. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_1_TX;
  2739. break;
  2740. case 3:
  2741. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_2_TX;
  2742. break;
  2743. case 4:
  2744. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_3_TX;
  2745. break;
  2746. case 5:
  2747. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_4_TX;
  2748. break;
  2749. case 6:
  2750. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2751. break;
  2752. case 7:
  2753. lsm_port = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2754. break;
  2755. case 8:
  2756. lsm_port = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2757. break;
  2758. case 9:
  2759. lsm_port = ADM_LSM_PORT_ID;
  2760. break;
  2761. case 10:
  2762. lsm_port = AFE_PORT_ID_INT3_MI2S_TX;
  2763. break;
  2764. case 11:
  2765. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  2766. break;
  2767. case 12:
  2768. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_1;
  2769. break;
  2770. case 13:
  2771. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_2;
  2772. break;
  2773. case 14:
  2774. lsm_port = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2775. break;
  2776. case 15:
  2777. lsm_port = AFE_PORT_ID_QUINARY_TDM_TX;
  2778. break;
  2779. case 16:
  2780. lsm_port = AFE_PORT_ID_TERTIARY_TDM_TX;
  2781. break;
  2782. default:
  2783. pr_err("Default lsm port");
  2784. break;
  2785. }
  2786. set_lsm_port(lsm_port);
  2787. msm_routing_get_lsm_fe_idx(kcontrol, &fe_idx);
  2788. lsm_port_index[fe_idx] = ucontrol->value.integer.value[0];
  2789. return 0;
  2790. }
  2791. static int msm_routing_lsm_func_get(struct snd_kcontrol *kcontrol,
  2792. struct snd_ctl_elem_value *ucontrol)
  2793. {
  2794. int i;
  2795. u16 port_id;
  2796. enum afe_mad_type mad_type;
  2797. pr_debug("%s: id name %s\n", __func__, kcontrol->id.name);
  2798. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2799. if (!strnstr(kcontrol->id.name, lsm_port_text[i],
  2800. strlen(lsm_port_text[i])))
  2801. break;
  2802. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2803. pr_warn("%s: Invalid id name %s\n", __func__,
  2804. kcontrol->id.name);
  2805. return -EINVAL;
  2806. }
  2807. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2808. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2809. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2810. strlen(lsm_port_text[7])))
  2811. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2812. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2813. strlen(lsm_port_text[8])))
  2814. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2815. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2816. strlen(lsm_port_text[10])))
  2817. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2818. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2819. strlen(lsm_port_text[14])))
  2820. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2821. if (strnstr(kcontrol->id.name, lsm_port_text[15],
  2822. strlen(lsm_port_text[15])))
  2823. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2824. if (strnstr(kcontrol->id.name, lsm_port_text[16],
  2825. strlen(lsm_port_text[16])))
  2826. port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  2827. mad_type = afe_port_get_mad_type(port_id);
  2828. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2829. mad_type);
  2830. switch (mad_type) {
  2831. case MAD_HW_NONE:
  2832. ucontrol->value.integer.value[0] = MADNONE;
  2833. break;
  2834. case MAD_HW_AUDIO:
  2835. ucontrol->value.integer.value[0] = MADAUDIO;
  2836. break;
  2837. case MAD_HW_BEACON:
  2838. ucontrol->value.integer.value[0] = MADBEACON;
  2839. break;
  2840. case MAD_HW_ULTRASOUND:
  2841. ucontrol->value.integer.value[0] = MADULTRASOUND;
  2842. break;
  2843. case MAD_SW_AUDIO:
  2844. ucontrol->value.integer.value[0] = MADSWAUDIO;
  2845. break;
  2846. default:
  2847. pr_warn("%s: Unknown\n", __func__);
  2848. return -EINVAL;
  2849. }
  2850. return 0;
  2851. }
  2852. static int msm_routing_lsm_func_put(struct snd_kcontrol *kcontrol,
  2853. struct snd_ctl_elem_value *ucontrol)
  2854. {
  2855. int i;
  2856. u16 port_id;
  2857. enum afe_mad_type mad_type;
  2858. pr_debug("%s: id name %s\n", __func__, kcontrol->id.name);
  2859. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2860. if (strnstr(kcontrol->id.name, lsm_port_text[i],
  2861. strlen(lsm_port_text[i])))
  2862. break;
  2863. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2864. pr_warn("%s: Invalid id name %s\n", __func__,
  2865. kcontrol->id.name);
  2866. return -EINVAL;
  2867. }
  2868. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2869. switch (ucontrol->value.integer.value[0]) {
  2870. case MADNONE:
  2871. mad_type = MAD_HW_NONE;
  2872. break;
  2873. case MADAUDIO:
  2874. mad_type = MAD_HW_AUDIO;
  2875. break;
  2876. case MADBEACON:
  2877. mad_type = MAD_HW_BEACON;
  2878. break;
  2879. case MADULTRASOUND:
  2880. mad_type = MAD_HW_ULTRASOUND;
  2881. break;
  2882. case MADSWAUDIO:
  2883. mad_type = MAD_SW_AUDIO;
  2884. break;
  2885. default:
  2886. pr_warn("%s: Unknown\n", __func__);
  2887. return -EINVAL;
  2888. }
  2889. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2890. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2891. strlen(lsm_port_text[7])))
  2892. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2893. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2894. strlen(lsm_port_text[8])))
  2895. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2896. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2897. strlen(lsm_port_text[10])))
  2898. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2899. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2900. strlen(lsm_port_text[14])))
  2901. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2902. if (strnstr(kcontrol->id.name, lsm_port_text[15],
  2903. strlen(lsm_port_text[15])))
  2904. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2905. if (strnstr(kcontrol->id.name, lsm_port_text[16],
  2906. strlen(lsm_port_text[16])))
  2907. port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  2908. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2909. mad_type);
  2910. return afe_port_set_mad_type(port_id, mad_type);
  2911. }
  2912. static const char *const adm_override_chs_text[] = {"Zero", "One", "Two"};
  2913. static SOC_ENUM_SINGLE_EXT_DECL(adm_override_chs,
  2914. adm_override_chs_text);
  2915. static int msm_routing_adm_get_backend_idx(struct snd_kcontrol *kcontrol)
  2916. {
  2917. int backend_id;
  2918. if (strnstr(kcontrol->id.name, "SLIM7_RX", sizeof("SLIM7_RX"))) {
  2919. backend_id = MSM_BACKEND_DAI_SLIMBUS_7_RX;
  2920. } else if (strnstr(kcontrol->id.name, "SLIM9_TX", sizeof("SLIM9_TX"))) {
  2921. backend_id = MSM_BACKEND_DAI_SLIMBUS_9_TX;
  2922. } else {
  2923. pr_err("%s: unsupported backend id: %s",
  2924. __func__, kcontrol->id.name);
  2925. return -EINVAL;
  2926. }
  2927. return backend_id;
  2928. }
  2929. static int msm_routing_adm_channel_config_get(
  2930. struct snd_kcontrol *kcontrol,
  2931. struct snd_ctl_elem_value *ucontrol)
  2932. {
  2933. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2934. if (backend_id >= 0) {
  2935. mutex_lock(&routing_lock);
  2936. ucontrol->value.integer.value[0] =
  2937. msm_bedais[backend_id].adm_override_ch;
  2938. pr_debug("%s: adm channel count %ld for BE:%d\n", __func__,
  2939. ucontrol->value.integer.value[0], backend_id);
  2940. mutex_unlock(&routing_lock);
  2941. }
  2942. return 0;
  2943. }
  2944. static int msm_routing_adm_channel_config_put(
  2945. struct snd_kcontrol *kcontrol,
  2946. struct snd_ctl_elem_value *ucontrol)
  2947. {
  2948. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2949. if (backend_id >= 0) {
  2950. mutex_lock(&routing_lock);
  2951. msm_bedais[backend_id].adm_override_ch =
  2952. ucontrol->value.integer.value[0];
  2953. pr_debug("%s:updating BE :%d adm channels: %d\n",
  2954. __func__, backend_id,
  2955. msm_bedais[backend_id].adm_override_ch);
  2956. mutex_unlock(&routing_lock);
  2957. }
  2958. return 0;
  2959. }
  2960. static const struct snd_kcontrol_new adm_channel_config_controls[] = {
  2961. SOC_ENUM_EXT("SLIM7_RX ADM Channels", adm_override_chs,
  2962. msm_routing_adm_channel_config_get,
  2963. msm_routing_adm_channel_config_put),
  2964. SOC_ENUM_EXT("SLIM9_TX ADM Channels", adm_override_chs,
  2965. msm_routing_adm_channel_config_get,
  2966. msm_routing_adm_channel_config_put),
  2967. };
  2968. static int msm_routing_slim_0_rx_aanc_mux_get(struct snd_kcontrol *kcontrol,
  2969. struct snd_ctl_elem_value *ucontrol)
  2970. {
  2971. mutex_lock(&routing_lock);
  2972. ucontrol->value.integer.value[0] = slim0_rx_aanc_fb_port;
  2973. mutex_unlock(&routing_lock);
  2974. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2975. ucontrol->value.integer.value[0]);
  2976. return 0;
  2977. };
  2978. static int msm_routing_slim_0_rx_aanc_mux_put(struct snd_kcontrol *kcontrol,
  2979. struct snd_ctl_elem_value *ucontrol)
  2980. {
  2981. struct aanc_data aanc_info;
  2982. mutex_lock(&routing_lock);
  2983. memset(&aanc_info, 0x00, sizeof(aanc_info));
  2984. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2985. ucontrol->value.integer.value[0]);
  2986. slim0_rx_aanc_fb_port = ucontrol->value.integer.value[0];
  2987. if (ucontrol->value.integer.value[0] == 0) {
  2988. aanc_info.aanc_active = false;
  2989. aanc_info.aanc_tx_port = 0;
  2990. aanc_info.aanc_rx_port = 0;
  2991. } else {
  2992. aanc_info.aanc_active = true;
  2993. aanc_info.aanc_rx_port = SLIMBUS_0_RX;
  2994. aanc_info.aanc_tx_port =
  2995. (SLIMBUS_0_RX - 1 + (slim0_rx_aanc_fb_port * 2));
  2996. }
  2997. afe_set_aanc_info(&aanc_info);
  2998. mutex_unlock(&routing_lock);
  2999. return 0;
  3000. };
  3001. static int msm_routing_get_port_mixer(struct snd_kcontrol *kcontrol,
  3002. struct snd_ctl_elem_value *ucontrol)
  3003. {
  3004. int idx = 0, shift = 0;
  3005. struct soc_mixer_control *mc =
  3006. (struct soc_mixer_control *)kcontrol->private_value;
  3007. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  3008. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  3009. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  3010. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  3011. return -EINVAL;
  3012. }
  3013. if (test_bit(shift,
  3014. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]))
  3015. ucontrol->value.integer.value[0] = 1;
  3016. else
  3017. ucontrol->value.integer.value[0] = 0;
  3018. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  3019. ucontrol->value.integer.value[0]);
  3020. return 0;
  3021. }
  3022. static int msm_routing_put_port_mixer(struct snd_kcontrol *kcontrol,
  3023. struct snd_ctl_elem_value *ucontrol)
  3024. {
  3025. int idx = 0, shift = 0;
  3026. struct soc_mixer_control *mc =
  3027. (struct soc_mixer_control *)kcontrol->private_value;
  3028. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  3029. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  3030. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  3031. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  3032. return -EINVAL;
  3033. }
  3034. pr_debug("%s: shift 0x%x rshift 0x%x val %ld idx %d reminder shift %d\n",
  3035. __func__, mc->shift, mc->rshift,
  3036. ucontrol->value.integer.value[0], idx, shift);
  3037. if (ucontrol->value.integer.value[0]) {
  3038. afe_loopback(1, msm_bedais[mc->shift].port_id,
  3039. msm_bedais[mc->rshift].port_id);
  3040. set_bit(shift,
  3041. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  3042. } else {
  3043. afe_loopback(0, msm_bedais[mc->shift].port_id,
  3044. msm_bedais[mc->rshift].port_id);
  3045. clear_bit(shift,
  3046. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  3047. }
  3048. return 1;
  3049. }
  3050. static int msm_pcm_get_channel_rule_index(struct snd_kcontrol *kcontrol,
  3051. struct snd_ctl_elem_value *ucontrol)
  3052. {
  3053. u16 fe_id = 0;
  3054. fe_id = ((struct soc_mixer_control *)
  3055. kcontrol->private_value)->shift;
  3056. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3057. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3058. return -EINVAL;
  3059. }
  3060. ucontrol->value.integer.value[0] = channel_mixer[fe_id].rule;
  3061. return 0;
  3062. }
  3063. static int msm_pcm_put_channel_rule_index(struct snd_kcontrol *kcontrol,
  3064. struct snd_ctl_elem_value *ucontrol)
  3065. {
  3066. u16 fe_id = 0;
  3067. fe_id = ((struct soc_mixer_control *)
  3068. kcontrol->private_value)->shift;
  3069. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3070. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3071. return -EINVAL;
  3072. }
  3073. channel_mixer[fe_id].rule = ucontrol->value.integer.value[0];
  3074. return 1;
  3075. }
  3076. static int msm_pcm_get_out_chs(struct snd_kcontrol *kcontrol,
  3077. struct snd_ctl_elem_value *ucontrol)
  3078. {
  3079. u16 fe_id = 0;
  3080. fe_id = ((struct soc_multi_mixer_control *)
  3081. kcontrol->private_value)->shift;
  3082. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3083. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3084. return -EINVAL;
  3085. }
  3086. ucontrol->value.integer.value[0] =
  3087. channel_mixer[fe_id].output_channel;
  3088. return 0;
  3089. }
  3090. static int msm_pcm_put_out_chs(struct snd_kcontrol *kcontrol,
  3091. struct snd_ctl_elem_value *ucontrol)
  3092. {
  3093. u16 fe_id = 0;
  3094. fe_id = ((struct soc_multi_mixer_control *)
  3095. kcontrol->private_value)->shift;
  3096. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3097. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3098. return -EINVAL;
  3099. }
  3100. pr_debug("%s: fe_id is %d, output channels = %d\n", __func__,
  3101. fe_id,
  3102. (unsigned int)(ucontrol->value.integer.value[0]));
  3103. channel_mixer[fe_id].output_channel =
  3104. (unsigned int)(ucontrol->value.integer.value[0]);
  3105. return 1;
  3106. }
  3107. static const char *const ch_mixer[] = {"Disable", "Enable"};
  3108. /* If new backend is added, need update this array */
  3109. static const char *const be_name[] = {
  3110. "ZERO", "PRI_I2S_RX", "PRI_I2S_TX", "SLIM_0_RX",
  3111. "SLIM_0_TX", "HDMI_RX", "INT_BT_SCO_RX", "INT_BT_SCO_TX",
  3112. "INT_FM_RX", "INT_FM_TX", "AFE_PCM_RX", "AFE_PCM_TX",
  3113. "AUXPCM_RX", "AUXPCM_TX", "VOICE_PLAYBACK_TX", "VOICE2_PLAYBACK_TX",
  3114. "INCALL_RECORD_RX", "INCALL_RECORD_TX", "MI2S_RX", "MI2S_TX",
  3115. "SEC_I2S_RX", "SLIM_1_RX", "SLIM_1_TX", "SLIM_2_RX",
  3116. "SLIM_2_TX", "SLIM_3_RX", "SLIM_3_TX", "SLIM_4_RX",
  3117. "SLIM_4_TX", "SLIM_5_RX", "SLIM_5_TX", "SLIM_6_RX",
  3118. "SLIM_6_TX", "SLIM_7_RX", "SLIM_7_TX", "SLIM_8_RX",
  3119. "SLIM_8_TX", "EXTPROC_RX", "EXTPROC_TX", "EXPROC_EC_TX",
  3120. "QUAT_MI2S_RX", "QUAT_MI2S_TX", "SECOND_MI2S_RX", "SECOND_MI2S_TX",
  3121. "PRI_MI2S_RX", "PRI_MI2S_TX", "TERT_MI2S_RX", "TERT_MI2S_TX",
  3122. "AUDIO_I2S_RX", "SEC_AUXPCM_RX", "SEC_AUXPCM_TX", "PRI_SPDIF_RX",
  3123. "SECOND_MI2S_RX_SD1", "QUIN_MI2S_RX", "QUIN_MI2S_TX", "SENARY_MI2S_TX",
  3124. "PRI_TDM_RX_0", "PRI_TDM_TX_0", "PRI_TDM_RX_1", "PRI_TDM_TX_1",
  3125. "PRI_TDM_RX_2", "PRI_TDM_TX_2", "PRI_TDM_RX_3", "PRI_TDM_TX_3",
  3126. "PRI_TDM_RX_4", "PRI_TDM_TX_4", "PRI_TDM_RX_5", "PRI_TDM_TX_5",
  3127. "PRI_TDM_RX_6", "PRI_TDM_TX_6", "PRI_TDM_RX_7", "PRI_TDM_TX_7",
  3128. "SEC_TDM_RX_0", "SEC_TDM_TX_0", "SEC_TDM_RX_1", "SEC_TDM_TX_1",
  3129. "SEC_TDM_RX_2", "SEC_TDM_TX_2", "SEC_TDM_RX_3", "SEC_TDM_TX_3",
  3130. "SEC_TDM_RX_4", "SEC_TDM_TX_4", "SEC_TDM_RX_5", "SEC_TDM_TX_5",
  3131. "SEC_TDM_RX_6", "SEC_TDM_TX_6", "SEC_TDM_RX_7", "SEC_TDM_TX_7",
  3132. "TERT_TDM_RX_0", "TERT_TDM_TX_0", "TERT_TDM_RX_1", "TERT_TDM_TX_1",
  3133. "TERT_TDM_RX_2", "TERT_TDM_TX_2", "TERT_TDM_RX_3", "TERT_TDM_TX_3",
  3134. "TERT_TDM_RX_4", "TERT_TDM_TX_4", "TERT_TDM_RX_5", "TERT_TDM_TX_5",
  3135. "TERT_TDM_RX_6", "TERT_TDM_TX_6", "TERT_TDM_RX_7", "TERT_TDM_TX_7",
  3136. "QUAT_TDM_RX_0", "QUAT_TDM_TX_0", "QUAT_TDM_RX_1", "QUAT_TDM_TX_1",
  3137. "QUAT_TDM_RX_2", "QUAT_TDM_TX_2", "QUAT_TDM_RX_3", "QUAT_TDM_TX_3",
  3138. "QUAT_TDM_RX_4", "QUAT_TDM_TX_4", "QUAT_TDM_RX_5", "QUAT_TDM_TX_5",
  3139. "QUAT_TDM_RX_6", "QUAT_TDM_TX_6", "QUAT_TDM_RX_7", "QUAT_TDM_TX_7",
  3140. "QUIN_TDM_RX_0", "QUIN_TDM_TX_0", "QUIN_TDM_RX_1", "QUIN_TDM_TX_1",
  3141. "QUIN_TDM_RX_2", "QUIN_TDM_TX_2", "QUIN_TDM_RX_3", "QUIN_TDM_TX_3",
  3142. "QUIN_TDM_RX_4", "QUIN_TDM_TX_4", "QUIN_TDM_RX_5", "QUIN_TDM_TX_5",
  3143. "QUIN_TDM_RX_6", "QUIN_TDM_TX_6", "QUIN_TDM_RX_7", "QUIN_TDM_TX_7",
  3144. "SEN_TDM_RX_0", "SEN_TDM_TX_0", "SEN_TDM_RX_1", "SEN_TDM_TX_1",
  3145. "SEN_TDM_RX_2", "SEN_TDM_TX_2", "SEN_TDM_RX_3", "SEN_TDM_TX_3",
  3146. "SEN_TDM_RX_4", "SEN_TDM_TX_4", "SEN_TDM_RX_5", "SEN_TDM_TX_5",
  3147. "SEN_TDM_RX_6", "SEN_TDM_TX_6", "SEN_TDM_RX_7", "SEN_TDM_TX_7",
  3148. "INT_BT_A2DP_RX", "USB_RX", "USB_TX", "DISPLAY_PORT_RX",
  3149. "DISPLAY_PORT_RX1", "TERT_AUXPCM_RX", "TERT_AUXPCM_TX", "QUAT_AUXPCM_RX",
  3150. "QUAT_AUXPCM_TX", "QUIN_AUXPCM_RX", "QUIN_AUXPCM_TX", "INT0_MI2S_RX",
  3151. "INT0_MI2S_TX", "INT1_MI2S_RX", "INT1_MI2S_TX", "INT2_MI2S_RX",
  3152. "INT2_MI2S_TX", "INT3_MI2S_RX", "INT3_MI2S_TX", "INT4_MI2S_RX",
  3153. "INT4_MI2S_TX", "INT5_MI2S_RX", "INT5_MI2S_TX", "INT6_MI2S_RX",
  3154. "INT6_MI2S_TX", "SEN_AUXPCM_RX", "SEN_AUXPCM_TX", "SENARY_MI2S_RX",
  3155. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_RX_1","WSA_CDC_DMA_TX_1",
  3156. "WSA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_2",
  3157. "RX_CDC_DMA_RX_0", "TX_CDC_DMA_TX_0", "RX_CDC_DMA_RX_1", "TX_CDC_DMA_TX_1",
  3158. "RX_CDC_DMA_RX_2", "TX_CDC_DMA_TX_2", "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_3",
  3159. "RX_CDC_DMA_RX_4", "TX_CDC_DMA_TX_4", "RX_CDC_DMA_RX_5", "TX_CDC_DMA_TX_5",
  3160. "RX_CDC_DMA_RX_6", "RX_CDC_DMA_RX_7",
  3161. "PRI_SPDIF_TX", "SEC_SPDIF_RX", "SEC_SPDIF_TX",
  3162. "SLIM_9_RX", "SLIM_9_TX", "AFE_LOOPBACK_TX", "PRI_META_MI2S_RX",
  3163. "SEC_META_MI2S_RX"
  3164. };
  3165. static SOC_ENUM_SINGLE_DECL(mm1_channel_mux,
  3166. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, ch_mixer);
  3167. static SOC_ENUM_SINGLE_DECL(mm2_channel_mux,
  3168. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA2, ch_mixer);
  3169. static SOC_ENUM_SINGLE_DECL(mm3_channel_mux,
  3170. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA3, ch_mixer);
  3171. static SOC_ENUM_SINGLE_DECL(mm4_channel_mux,
  3172. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA4, ch_mixer);
  3173. static SOC_ENUM_SINGLE_DECL(mm18_channel_mux,
  3174. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, ch_mixer);
  3175. static SOC_ENUM_SINGLE_DECL(mm19_channel_mux,
  3176. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, ch_mixer);
  3177. static SOC_ENUM_SINGLE_DECL(mm28_channel_mux,
  3178. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, ch_mixer);
  3179. static SOC_ENUM_SINGLE_DECL(mm29_channel_mux,
  3180. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, ch_mixer);
  3181. static SOC_ENUM_SINGLE_DECL(mm30_channel_mux,
  3182. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, ch_mixer);
  3183. static SOC_ENUM_DOUBLE_DECL(mm1_ch1_enum,
  3184. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 0, be_name);
  3185. static SOC_ENUM_DOUBLE_DECL(mm1_ch2_enum,
  3186. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 1, be_name);
  3187. static SOC_ENUM_DOUBLE_DECL(mm1_ch3_enum,
  3188. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 2, be_name);
  3189. static SOC_ENUM_DOUBLE_DECL(mm1_ch4_enum,
  3190. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 3, be_name);
  3191. static SOC_ENUM_DOUBLE_DECL(mm1_ch5_enum,
  3192. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 4, be_name);
  3193. static SOC_ENUM_DOUBLE_DECL(mm1_ch6_enum,
  3194. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 5, be_name);
  3195. static SOC_ENUM_DOUBLE_DECL(mm1_ch7_enum,
  3196. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 6, be_name);
  3197. static SOC_ENUM_DOUBLE_DECL(mm1_ch8_enum,
  3198. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 7, be_name);
  3199. static SOC_ENUM_DOUBLE_DECL(mm18_ch1_enum,
  3200. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, 0, be_name);
  3201. static SOC_ENUM_DOUBLE_DECL(mm18_ch2_enum,
  3202. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, 1, be_name);
  3203. static SOC_ENUM_DOUBLE_DECL(mm19_ch1_enum,
  3204. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, 0, be_name);
  3205. static SOC_ENUM_DOUBLE_DECL(mm19_ch2_enum,
  3206. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, 1, be_name);
  3207. static SOC_ENUM_DOUBLE_DECL(mm28_ch1_enum,
  3208. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, 0, be_name);
  3209. static SOC_ENUM_DOUBLE_DECL(mm28_ch2_enum,
  3210. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, 1, be_name);
  3211. static SOC_ENUM_DOUBLE_DECL(mm29_ch1_enum,
  3212. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, 0, be_name);
  3213. static SOC_ENUM_DOUBLE_DECL(mm29_ch2_enum,
  3214. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, 1, be_name);
  3215. static SOC_ENUM_DOUBLE_DECL(mm30_ch1_enum,
  3216. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, 0, be_name);
  3217. static SOC_ENUM_DOUBLE_DECL(mm30_ch2_enum,
  3218. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, 1, be_name);
  3219. static int msm_pcm_get_ctl_enum_info(struct snd_ctl_elem_info *uinfo,
  3220. unsigned int channels,
  3221. unsigned int items, const char *const names[])
  3222. {
  3223. if (uinfo->value.enumerated.item >= items)
  3224. uinfo->value.enumerated.item = items - 1;
  3225. WARN(strlen(names[uinfo->value.enumerated.item]) >=
  3226. sizeof(uinfo->value.enumerated.name),
  3227. "ALSA: too long item name '%s'\n",
  3228. names[uinfo->value.enumerated.item]);
  3229. strlcpy(uinfo->value.enumerated.name,
  3230. names[uinfo->value.enumerated.item],
  3231. sizeof(uinfo->value.enumerated.name));
  3232. return 0;
  3233. }
  3234. static int msm_pcm_channel_mixer_info(struct snd_kcontrol *kcontrol,
  3235. struct snd_ctl_elem_info *uinfo)
  3236. {
  3237. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3238. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  3239. uinfo->count = 1;
  3240. uinfo->value.enumerated.items = ARRAY_SIZE(ch_mixer);
  3241. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  3242. return 0;
  3243. }
  3244. static int msm_pcm_channel_mixer_get(struct snd_kcontrol *kcontrol,
  3245. struct snd_ctl_elem_value *ucontrol)
  3246. {
  3247. u16 fe_id = 0;
  3248. fe_id = ((struct soc_enum *)
  3249. kcontrol->private_value)->shift_l;
  3250. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3251. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3252. return -EINVAL;
  3253. }
  3254. pr_debug("%s: FE %d %s\n", __func__,
  3255. fe_id,
  3256. channel_mixer[fe_id].enable ? "Enabled" : "Disabled");
  3257. ucontrol->value.enumerated.item[0] = channel_mixer[fe_id].enable;
  3258. return 0;
  3259. }
  3260. static int msm_pcm_channel_mixer_put(struct snd_kcontrol *kcontrol,
  3261. struct snd_ctl_elem_value *ucontrol)
  3262. {
  3263. u16 fe_id = 0;
  3264. fe_id = ((struct soc_enum *)
  3265. kcontrol->private_value)->shift_l;
  3266. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3267. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3268. return -EINVAL;
  3269. }
  3270. channel_mixer[fe_id].enable = ucontrol->value.enumerated.item[0];
  3271. pr_debug("%s: %s FE %d\n", __func__,
  3272. channel_mixer[fe_id].enable ? "Enable" : "Disable",
  3273. fe_id);
  3274. return 0;
  3275. }
  3276. static int msm_pcm_channel_input_be_info(struct snd_kcontrol *kcontrol,
  3277. struct snd_ctl_elem_info *uinfo)
  3278. {
  3279. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3280. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  3281. uinfo->count = 1;
  3282. uinfo->value.enumerated.items = ARRAY_SIZE(be_name);
  3283. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  3284. return 0;
  3285. }
  3286. static int msm_pcm_channel_input_be_put(struct snd_kcontrol *kcontrol,
  3287. struct snd_ctl_elem_value *ucontrol)
  3288. {
  3289. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3290. u16 fe_id = 0, in_ch = 0;
  3291. fe_id = e->shift_l;
  3292. in_ch = e->shift_r;
  3293. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3294. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3295. return -EINVAL;
  3296. }
  3297. if (in_ch >= ADM_MAX_CHANNELS) {
  3298. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  3299. return -EINVAL;
  3300. }
  3301. channel_input[fe_id][in_ch] = ucontrol->value.enumerated.item[0];
  3302. return 1;
  3303. }
  3304. static int msm_pcm_channel_input_be_get(struct snd_kcontrol *kcontrol,
  3305. struct snd_ctl_elem_value *ucontrol)
  3306. {
  3307. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3308. u16 fe_id = 0, in_ch = 0;
  3309. fe_id = e->shift_l;
  3310. in_ch = e->shift_r;
  3311. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3312. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3313. return -EINVAL;
  3314. }
  3315. if (in_ch >= ADM_MAX_CHANNELS) {
  3316. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  3317. return -EINVAL;
  3318. }
  3319. ucontrol->value.enumerated.item[0] = channel_input[fe_id][in_ch];
  3320. return 1;
  3321. }
  3322. static int msm_pcm_channel_weight_info(struct snd_kcontrol *kcontrol,
  3323. struct snd_ctl_elem_info *uinfo)
  3324. {
  3325. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  3326. uinfo->count = ADM_MAX_CHANNELS;
  3327. uinfo->value.integer.min = 0;
  3328. uinfo->value.integer.max = WEIGHT_0_DB;
  3329. return 0;
  3330. }
  3331. static int msm_pcm_channel_weight_put(struct snd_kcontrol *kcontrol,
  3332. struct snd_ctl_elem_value *ucontrol)
  3333. {
  3334. u16 fe_id = 0, out_ch = 0;
  3335. int i, weight;
  3336. fe_id = ((struct soc_multi_mixer_control *)
  3337. kcontrol->private_value)->shift;
  3338. out_ch = ((struct soc_multi_mixer_control *)
  3339. kcontrol->private_value)->rshift;
  3340. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3341. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3342. return -EINVAL;
  3343. }
  3344. if (out_ch >= ADM_MAX_CHANNELS) {
  3345. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  3346. return -EINVAL;
  3347. }
  3348. pr_debug("%s: FE_ID: %d, channel weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld\n",
  3349. __func__, fe_id,
  3350. ucontrol->value.integer.value[0],
  3351. ucontrol->value.integer.value[1],
  3352. ucontrol->value.integer.value[2],
  3353. ucontrol->value.integer.value[3],
  3354. ucontrol->value.integer.value[4],
  3355. ucontrol->value.integer.value[5],
  3356. ucontrol->value.integer.value[6],
  3357. ucontrol->value.integer.value[7]);
  3358. for (i = 0; i < ADM_MAX_CHANNELS; ++i) {
  3359. weight = ucontrol->value.integer.value[i];
  3360. channel_mixer[fe_id].channel_weight[out_ch][i] = weight;
  3361. pr_debug("%s: FE_ID %d, output %d input %d weight %d\n",
  3362. __func__, fe_id, out_ch, i,
  3363. channel_mixer[fe_id].channel_weight[out_ch][i]);
  3364. }
  3365. return 0;
  3366. }
  3367. static int msm_pcm_channel_weight_get(struct snd_kcontrol *kcontrol,
  3368. struct snd_ctl_elem_value *ucontrol)
  3369. {
  3370. u16 fe_id = 0, out_ch = 0;
  3371. int i;
  3372. fe_id = ((struct soc_multi_mixer_control *)
  3373. kcontrol->private_value)->shift;
  3374. out_ch = ((struct soc_multi_mixer_control *)
  3375. kcontrol->private_value)->rshift;
  3376. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3377. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3378. return -EINVAL;
  3379. }
  3380. if (out_ch >= ADM_MAX_CHANNELS) {
  3381. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  3382. return -EINVAL;
  3383. }
  3384. for (i = 0; i < ADM_MAX_CHANNELS; ++i)
  3385. ucontrol->value.integer.value[i] =
  3386. channel_mixer[fe_id].channel_weight[out_ch][i];
  3387. pr_debug("%s: FE_ID: %d, weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld",
  3388. __func__, fe_id,
  3389. ucontrol->value.integer.value[0],
  3390. ucontrol->value.integer.value[1],
  3391. ucontrol->value.integer.value[2],
  3392. ucontrol->value.integer.value[3],
  3393. ucontrol->value.integer.value[4],
  3394. ucontrol->value.integer.value[5],
  3395. ucontrol->value.integer.value[6],
  3396. ucontrol->value.integer.value[7]);
  3397. return 0;
  3398. }
  3399. static int msm_pcm_channel_output_map_info(struct snd_kcontrol *kcontrol,
  3400. struct snd_ctl_elem_info *uinfo)
  3401. {
  3402. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  3403. uinfo->count = PCM_FORMAT_MAX_NUM_CHANNEL_V8;
  3404. /* Valid channel map value ranges from 1 to 64 */
  3405. uinfo->value.integer.min = 0;
  3406. uinfo->value.integer.max = 64;
  3407. return 0;
  3408. }
  3409. static int msm_pcm_channel_output_map_put(struct snd_kcontrol *kcontrol,
  3410. struct snd_ctl_elem_value *ucontrol)
  3411. {
  3412. u16 fe_id = 0;
  3413. int i, ch_map;
  3414. fe_id = ((struct soc_multi_mixer_control *)
  3415. kcontrol->private_value)->shift;
  3416. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3417. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3418. return -EINVAL;
  3419. }
  3420. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; ++i) {
  3421. ch_map = ucontrol->value.integer.value[i];
  3422. channel_mixer[fe_id].out_ch_map[i] = ch_map;
  3423. pr_debug("%s: FE_ID %d, channel %d channel map %d\n",
  3424. __func__, fe_id, i, channel_mixer[fe_id].out_ch_map[i]);
  3425. }
  3426. /* Make override_out_ch_map false if ch map is reset */
  3427. if (channel_mixer[fe_id].out_ch_map[0] == 0)
  3428. channel_mixer[fe_id].override_out_ch_map = false;
  3429. else
  3430. channel_mixer[fe_id].override_out_ch_map = true;
  3431. return 0;
  3432. }
  3433. static int msm_pcm_channel_output_map_get(struct snd_kcontrol *kcontrol,
  3434. struct snd_ctl_elem_value *ucontrol)
  3435. {
  3436. u16 fe_id = 0;
  3437. int i;
  3438. fe_id = ((struct soc_multi_mixer_control *)
  3439. kcontrol->private_value)->shift;
  3440. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3441. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3442. return -EINVAL;
  3443. }
  3444. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; ++i)
  3445. ucontrol->value.integer.value[i] =
  3446. channel_mixer[fe_id].out_ch_map[i];
  3447. return 0;
  3448. }
  3449. static const struct snd_kcontrol_new channel_mixer_controls[] = {
  3450. SOC_SINGLE_EXT("MultiMedia1 Channel Rule", SND_SOC_NOPM,
  3451. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  3452. msm_pcm_get_channel_rule_index,
  3453. msm_pcm_put_channel_rule_index),
  3454. SOC_SINGLE_EXT("MultiMedia2 Channel Rule", SND_SOC_NOPM,
  3455. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3456. msm_pcm_get_channel_rule_index,
  3457. msm_pcm_put_channel_rule_index),
  3458. SOC_SINGLE_EXT("MultiMedia3 Channel Rule", SND_SOC_NOPM,
  3459. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3460. msm_pcm_get_channel_rule_index,
  3461. msm_pcm_put_channel_rule_index),
  3462. SOC_SINGLE_EXT("MultiMedia4 Channel Rule", SND_SOC_NOPM,
  3463. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3464. msm_pcm_get_channel_rule_index,
  3465. msm_pcm_put_channel_rule_index),
  3466. SOC_SINGLE_EXT("MultiMedia5 Channel Rule", SND_SOC_NOPM,
  3467. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3468. msm_pcm_get_channel_rule_index,
  3469. msm_pcm_put_channel_rule_index),
  3470. SOC_SINGLE_EXT("MultiMedia6 Channel Rule", SND_SOC_NOPM,
  3471. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3472. msm_pcm_get_channel_rule_index,
  3473. msm_pcm_put_channel_rule_index),
  3474. SOC_SINGLE_EXT("MultiMedia18 Channel Rule", SND_SOC_NOPM,
  3475. MSM_FRONTEND_DAI_MULTIMEDIA18, 8, 0,
  3476. msm_pcm_get_channel_rule_index,
  3477. msm_pcm_put_channel_rule_index),
  3478. SOC_SINGLE_EXT("MultiMedia19 Channel Rule", SND_SOC_NOPM,
  3479. MSM_FRONTEND_DAI_MULTIMEDIA19, 8, 0,
  3480. msm_pcm_get_channel_rule_index,
  3481. msm_pcm_put_channel_rule_index),
  3482. SOC_SINGLE_EXT("MultiMedia28 Channel Rule", SND_SOC_NOPM,
  3483. MSM_FRONTEND_DAI_MULTIMEDIA28, 8, 0,
  3484. msm_pcm_get_channel_rule_index,
  3485. msm_pcm_put_channel_rule_index),
  3486. SOC_SINGLE_EXT("MultiMedia29 Channel Rule", SND_SOC_NOPM,
  3487. MSM_FRONTEND_DAI_MULTIMEDIA29, 8, 0,
  3488. msm_pcm_get_channel_rule_index,
  3489. msm_pcm_put_channel_rule_index),
  3490. SOC_SINGLE_EXT("MultiMedia30 Channel Rule", SND_SOC_NOPM,
  3491. MSM_FRONTEND_DAI_MULTIMEDIA30, 8, 0,
  3492. msm_pcm_get_channel_rule_index,
  3493. msm_pcm_put_channel_rule_index),
  3494. SOC_SINGLE_EXT("MultiMedia1 Channels", SND_SOC_NOPM,
  3495. MSM_FRONTEND_DAI_MULTIMEDIA1, 14, 0,
  3496. msm_pcm_get_out_chs,
  3497. msm_pcm_put_out_chs),
  3498. SOC_SINGLE_EXT("MultiMedia2 Channels", SND_SOC_NOPM,
  3499. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3500. msm_pcm_get_out_chs,
  3501. msm_pcm_put_out_chs),
  3502. SOC_SINGLE_EXT("MultiMedia3 Channels", SND_SOC_NOPM,
  3503. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3504. msm_pcm_get_out_chs,
  3505. msm_pcm_put_out_chs),
  3506. SOC_SINGLE_EXT("MultiMedia4 Channels", SND_SOC_NOPM,
  3507. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3508. msm_pcm_get_out_chs,
  3509. msm_pcm_put_out_chs),
  3510. SOC_SINGLE_EXT("MultiMedia5 Channels", SND_SOC_NOPM,
  3511. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3512. msm_pcm_get_out_chs,
  3513. msm_pcm_put_out_chs),
  3514. SOC_SINGLE_EXT("MultiMedia6 Channels", SND_SOC_NOPM,
  3515. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3516. msm_pcm_get_out_chs,
  3517. msm_pcm_put_out_chs),
  3518. SOC_SINGLE_EXT("MultiMedia18 Channels", SND_SOC_NOPM,
  3519. MSM_FRONTEND_DAI_MULTIMEDIA18, 14, 0,
  3520. msm_pcm_get_out_chs,
  3521. msm_pcm_put_out_chs),
  3522. SOC_SINGLE_EXT("MultiMedia19 Channels", SND_SOC_NOPM,
  3523. MSM_FRONTEND_DAI_MULTIMEDIA19, 14, 0,
  3524. msm_pcm_get_out_chs,
  3525. msm_pcm_put_out_chs),
  3526. SOC_SINGLE_EXT("MultiMedia28 Channels", SND_SOC_NOPM,
  3527. MSM_FRONTEND_DAI_MULTIMEDIA28, 14, 0,
  3528. msm_pcm_get_out_chs,
  3529. msm_pcm_put_out_chs),
  3530. SOC_SINGLE_EXT("MultiMedia29 Channels", SND_SOC_NOPM,
  3531. MSM_FRONTEND_DAI_MULTIMEDIA29, 14, 0,
  3532. msm_pcm_get_out_chs,
  3533. msm_pcm_put_out_chs),
  3534. SOC_SINGLE_EXT("MultiMedia30 Channels", SND_SOC_NOPM,
  3535. MSM_FRONTEND_DAI_MULTIMEDIA30, 14, 0,
  3536. msm_pcm_get_out_chs,
  3537. msm_pcm_put_out_chs),
  3538. {
  3539. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3540. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3541. .name = "MultiMedia1 Channel Mixer",
  3542. .info = msm_pcm_channel_mixer_info,
  3543. .get = msm_pcm_channel_mixer_get,
  3544. .put = msm_pcm_channel_mixer_put,
  3545. .private_value = (unsigned long)&(mm1_channel_mux)
  3546. },
  3547. {
  3548. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3549. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3550. .name = "MultiMedia2 Channel Mixer",
  3551. .info = msm_pcm_channel_mixer_info,
  3552. .get = msm_pcm_channel_mixer_get,
  3553. .put = msm_pcm_channel_mixer_put,
  3554. .private_value = (unsigned long)&(mm2_channel_mux)
  3555. },
  3556. {
  3557. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3558. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3559. .name = "MultiMedia3 Channel Mixer",
  3560. .info = msm_pcm_channel_mixer_info,
  3561. .get = msm_pcm_channel_mixer_get,
  3562. .put = msm_pcm_channel_mixer_put,
  3563. .private_value = (unsigned long)&(mm3_channel_mux)
  3564. },
  3565. {
  3566. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3567. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3568. .name = "MultiMedia4 Channel Mixer",
  3569. .info = msm_pcm_channel_mixer_info,
  3570. .get = msm_pcm_channel_mixer_get,
  3571. .put = msm_pcm_channel_mixer_put,
  3572. .private_value = (unsigned long)&(mm4_channel_mux)
  3573. },
  3574. {
  3575. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3576. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3577. .name = "MultiMedia18 Channel Mixer",
  3578. .info = msm_pcm_channel_mixer_info,
  3579. .get = msm_pcm_channel_mixer_get,
  3580. .put = msm_pcm_channel_mixer_put,
  3581. .private_value = (unsigned long)&(mm18_channel_mux)
  3582. },
  3583. {
  3584. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3585. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3586. .name = "MultiMedia19 Channel Mixer",
  3587. .info = msm_pcm_channel_mixer_info,
  3588. .get = msm_pcm_channel_mixer_get,
  3589. .put = msm_pcm_channel_mixer_put,
  3590. .private_value = (unsigned long)&(mm19_channel_mux)
  3591. },
  3592. {
  3593. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3594. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3595. .name = "MultiMedia28 Channel Mixer",
  3596. .info = msm_pcm_channel_mixer_info,
  3597. .get = msm_pcm_channel_mixer_get,
  3598. .put = msm_pcm_channel_mixer_put,
  3599. .private_value = (unsigned long)&(mm28_channel_mux)
  3600. },
  3601. {
  3602. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3603. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3604. .name = "MultiMedia29 Channel Mixer",
  3605. .info = msm_pcm_channel_mixer_info,
  3606. .get = msm_pcm_channel_mixer_get,
  3607. .put = msm_pcm_channel_mixer_put,
  3608. .private_value = (unsigned long)&(mm29_channel_mux)
  3609. },
  3610. {
  3611. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3612. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3613. .name = "MultiMedia30 Channel Mixer",
  3614. .info = msm_pcm_channel_mixer_info,
  3615. .get = msm_pcm_channel_mixer_get,
  3616. .put = msm_pcm_channel_mixer_put,
  3617. .private_value = (unsigned long)&(mm30_channel_mux)
  3618. },
  3619. {
  3620. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3621. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3622. .name = "MultiMedia1 Output Channel1",
  3623. .info = msm_pcm_channel_weight_info,
  3624. .get = msm_pcm_channel_weight_get,
  3625. .put = msm_pcm_channel_weight_put,
  3626. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3627. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 0,}
  3628. },
  3629. {
  3630. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3631. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3632. .name = "MultiMedia1 Output Channel2",
  3633. .info = msm_pcm_channel_weight_info,
  3634. .get = msm_pcm_channel_weight_get,
  3635. .put = msm_pcm_channel_weight_put,
  3636. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3637. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 1, }
  3638. },
  3639. {
  3640. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3641. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3642. .name = "MultiMedia1 Output Channel3",
  3643. .info = msm_pcm_channel_weight_info,
  3644. .get = msm_pcm_channel_weight_get,
  3645. .put = msm_pcm_channel_weight_put,
  3646. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3647. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 2,}
  3648. },
  3649. {
  3650. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3651. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3652. .name = "MultiMedia1 Output Channel4",
  3653. .info = msm_pcm_channel_weight_info,
  3654. .get = msm_pcm_channel_weight_get,
  3655. .put = msm_pcm_channel_weight_put,
  3656. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3657. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 3,}
  3658. },
  3659. {
  3660. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3661. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3662. .name = "MultiMedia1 Output Channel5",
  3663. .info = msm_pcm_channel_weight_info,
  3664. .get = msm_pcm_channel_weight_get,
  3665. .put = msm_pcm_channel_weight_put,
  3666. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3667. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 4,}
  3668. },
  3669. {
  3670. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3671. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3672. .name = "MultiMedia1 Output Channel6",
  3673. .info = msm_pcm_channel_weight_info,
  3674. .get = msm_pcm_channel_weight_get,
  3675. .put = msm_pcm_channel_weight_put,
  3676. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3677. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 5,}
  3678. },
  3679. {
  3680. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3681. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3682. .name = "MultiMedia1 Output Channel7",
  3683. .info = msm_pcm_channel_weight_info,
  3684. .get = msm_pcm_channel_weight_get,
  3685. .put = msm_pcm_channel_weight_put,
  3686. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3687. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 6,}
  3688. },
  3689. {
  3690. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3691. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3692. .name = "MultiMedia1 Output Channel8",
  3693. .info = msm_pcm_channel_weight_info,
  3694. .get = msm_pcm_channel_weight_get,
  3695. .put = msm_pcm_channel_weight_put,
  3696. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3697. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 7,}
  3698. },
  3699. {
  3700. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3701. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3702. .name = "MultiMedia1 Output Channel9",
  3703. .info = msm_pcm_channel_weight_info,
  3704. .get = msm_pcm_channel_weight_get,
  3705. .put = msm_pcm_channel_weight_put,
  3706. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3707. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 8,}
  3708. },
  3709. {
  3710. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3711. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3712. .name = "MultiMedia1 Output Channel10",
  3713. .info = msm_pcm_channel_weight_info,
  3714. .get = msm_pcm_channel_weight_get,
  3715. .put = msm_pcm_channel_weight_put,
  3716. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3717. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 9,}
  3718. },
  3719. {
  3720. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3721. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3722. .name = "MultiMedia1 Output Channel11",
  3723. .info = msm_pcm_channel_weight_info,
  3724. .get = msm_pcm_channel_weight_get,
  3725. .put = msm_pcm_channel_weight_put,
  3726. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3727. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 10,}
  3728. },
  3729. {
  3730. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3731. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3732. .name = "MultiMedia1 Output Channel12",
  3733. .info = msm_pcm_channel_weight_info,
  3734. .get = msm_pcm_channel_weight_get,
  3735. .put = msm_pcm_channel_weight_put,
  3736. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3737. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 11,}
  3738. },
  3739. {
  3740. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3741. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3742. .name = "MultiMedia1 Output Channel13",
  3743. .info = msm_pcm_channel_weight_info,
  3744. .get = msm_pcm_channel_weight_get,
  3745. .put = msm_pcm_channel_weight_put,
  3746. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3747. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 12,}
  3748. },
  3749. {
  3750. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3751. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3752. .name = "MultiMedia1 Output Channel14",
  3753. .info = msm_pcm_channel_weight_info,
  3754. .get = msm_pcm_channel_weight_get,
  3755. .put = msm_pcm_channel_weight_put,
  3756. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3757. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 13,}
  3758. },
  3759. {
  3760. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3761. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3762. .name = "MultiMedia2 Output Channel1",
  3763. .info = msm_pcm_channel_weight_info,
  3764. .get = msm_pcm_channel_weight_get,
  3765. .put = msm_pcm_channel_weight_put,
  3766. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3767. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 0,}
  3768. },
  3769. {
  3770. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3771. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3772. .name = "MultiMedia2 Output Channel2",
  3773. .info = msm_pcm_channel_weight_info,
  3774. .get = msm_pcm_channel_weight_get,
  3775. .put = msm_pcm_channel_weight_put,
  3776. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3777. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 1,}
  3778. },
  3779. {
  3780. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3781. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3782. .name = "MultiMedia2 Output Channel3",
  3783. .info = msm_pcm_channel_weight_info,
  3784. .get = msm_pcm_channel_weight_get,
  3785. .put = msm_pcm_channel_weight_put,
  3786. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3787. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 2,}
  3788. },
  3789. {
  3790. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3791. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3792. .name = "MultiMedia3 Output Channel1",
  3793. .info = msm_pcm_channel_weight_info,
  3794. .get = msm_pcm_channel_weight_get,
  3795. .put = msm_pcm_channel_weight_put,
  3796. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3797. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 0,}
  3798. },
  3799. {
  3800. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3801. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3802. .name = "MultiMedia3 Output Channel2",
  3803. .info = msm_pcm_channel_weight_info,
  3804. .get = msm_pcm_channel_weight_get,
  3805. .put = msm_pcm_channel_weight_put,
  3806. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3807. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 1,}
  3808. },
  3809. {
  3810. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3811. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3812. .name = "MultiMedia18 Output Channel1",
  3813. .info = msm_pcm_channel_weight_info,
  3814. .get = msm_pcm_channel_weight_get,
  3815. .put = msm_pcm_channel_weight_put,
  3816. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3817. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 0,}
  3818. },
  3819. {
  3820. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3821. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3822. .name = "MultiMedia18 Output Channel2",
  3823. .info = msm_pcm_channel_weight_info,
  3824. .get = msm_pcm_channel_weight_get,
  3825. .put = msm_pcm_channel_weight_put,
  3826. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3827. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 1, }
  3828. },
  3829. {
  3830. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3831. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3832. .name = "MultiMedia18 Output Channel3",
  3833. .info = msm_pcm_channel_weight_info,
  3834. .get = msm_pcm_channel_weight_get,
  3835. .put = msm_pcm_channel_weight_put,
  3836. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3837. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 2,}
  3838. },
  3839. {
  3840. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3841. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3842. .name = "MultiMedia18 Output Channel4",
  3843. .info = msm_pcm_channel_weight_info,
  3844. .get = msm_pcm_channel_weight_get,
  3845. .put = msm_pcm_channel_weight_put,
  3846. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3847. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 3,}
  3848. },
  3849. {
  3850. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3851. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3852. .name = "MultiMedia18 Output Channel5",
  3853. .info = msm_pcm_channel_weight_info,
  3854. .get = msm_pcm_channel_weight_get,
  3855. .put = msm_pcm_channel_weight_put,
  3856. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3857. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 4,}
  3858. },
  3859. {
  3860. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3861. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3862. .name = "MultiMedia18 Output Channel6",
  3863. .info = msm_pcm_channel_weight_info,
  3864. .get = msm_pcm_channel_weight_get,
  3865. .put = msm_pcm_channel_weight_put,
  3866. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3867. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 5,}
  3868. },
  3869. {
  3870. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3871. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3872. .name = "MultiMedia18 Output Channel7",
  3873. .info = msm_pcm_channel_weight_info,
  3874. .get = msm_pcm_channel_weight_get,
  3875. .put = msm_pcm_channel_weight_put,
  3876. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3877. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 6,}
  3878. },
  3879. {
  3880. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3881. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3882. .name = "MultiMedia18 Output Channel8",
  3883. .info = msm_pcm_channel_weight_info,
  3884. .get = msm_pcm_channel_weight_get,
  3885. .put = msm_pcm_channel_weight_put,
  3886. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3887. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 7,}
  3888. },
  3889. {
  3890. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3891. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3892. .name = "MultiMedia18 Output Channel9",
  3893. .info = msm_pcm_channel_weight_info,
  3894. .get = msm_pcm_channel_weight_get,
  3895. .put = msm_pcm_channel_weight_put,
  3896. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3897. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 8,}
  3898. },
  3899. {
  3900. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3901. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3902. .name = "MultiMedia18 Output Channel10",
  3903. .info = msm_pcm_channel_weight_info,
  3904. .get = msm_pcm_channel_weight_get,
  3905. .put = msm_pcm_channel_weight_put,
  3906. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3907. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 9,}
  3908. },
  3909. {
  3910. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3911. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3912. .name = "MultiMedia18 Output Channel11",
  3913. .info = msm_pcm_channel_weight_info,
  3914. .get = msm_pcm_channel_weight_get,
  3915. .put = msm_pcm_channel_weight_put,
  3916. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3917. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 10,}
  3918. },
  3919. {
  3920. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3921. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3922. .name = "MultiMedia18 Output Channel12",
  3923. .info = msm_pcm_channel_weight_info,
  3924. .get = msm_pcm_channel_weight_get,
  3925. .put = msm_pcm_channel_weight_put,
  3926. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3927. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 11,}
  3928. },
  3929. {
  3930. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3931. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3932. .name = "MultiMedia18 Output Channel13",
  3933. .info = msm_pcm_channel_weight_info,
  3934. .get = msm_pcm_channel_weight_get,
  3935. .put = msm_pcm_channel_weight_put,
  3936. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3937. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 12,}
  3938. },
  3939. {
  3940. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3941. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3942. .name = "MultiMedia18 Output Channel14",
  3943. .info = msm_pcm_channel_weight_info,
  3944. .get = msm_pcm_channel_weight_get,
  3945. .put = msm_pcm_channel_weight_put,
  3946. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3947. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 13,}
  3948. },
  3949. {
  3950. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3951. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3952. .name = "MultiMedia19 Output Channel1",
  3953. .info = msm_pcm_channel_weight_info,
  3954. .get = msm_pcm_channel_weight_get,
  3955. .put = msm_pcm_channel_weight_put,
  3956. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3957. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 0,}
  3958. },
  3959. {
  3960. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3961. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3962. .name = "MultiMedia19 Output Channel2",
  3963. .info = msm_pcm_channel_weight_info,
  3964. .get = msm_pcm_channel_weight_get,
  3965. .put = msm_pcm_channel_weight_put,
  3966. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3967. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 1, }
  3968. },
  3969. {
  3970. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3971. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3972. .name = "MultiMedia19 Output Channel3",
  3973. .info = msm_pcm_channel_weight_info,
  3974. .get = msm_pcm_channel_weight_get,
  3975. .put = msm_pcm_channel_weight_put,
  3976. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3977. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 2,}
  3978. },
  3979. {
  3980. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3981. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3982. .name = "MultiMedia19 Output Channel4",
  3983. .info = msm_pcm_channel_weight_info,
  3984. .get = msm_pcm_channel_weight_get,
  3985. .put = msm_pcm_channel_weight_put,
  3986. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3987. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 3,}
  3988. },
  3989. {
  3990. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3991. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3992. .name = "MultiMedia19 Output Channel5",
  3993. .info = msm_pcm_channel_weight_info,
  3994. .get = msm_pcm_channel_weight_get,
  3995. .put = msm_pcm_channel_weight_put,
  3996. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3997. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 4,}
  3998. },
  3999. {
  4000. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4001. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4002. .name = "MultiMedia19 Output Channel6",
  4003. .info = msm_pcm_channel_weight_info,
  4004. .get = msm_pcm_channel_weight_get,
  4005. .put = msm_pcm_channel_weight_put,
  4006. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4007. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 5,}
  4008. },
  4009. {
  4010. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4011. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4012. .name = "MultiMedia19 Output Channel7",
  4013. .info = msm_pcm_channel_weight_info,
  4014. .get = msm_pcm_channel_weight_get,
  4015. .put = msm_pcm_channel_weight_put,
  4016. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4017. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 6,}
  4018. },
  4019. {
  4020. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4021. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4022. .name = "MultiMedia19 Output Channel8",
  4023. .info = msm_pcm_channel_weight_info,
  4024. .get = msm_pcm_channel_weight_get,
  4025. .put = msm_pcm_channel_weight_put,
  4026. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4027. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 7,}
  4028. },
  4029. {
  4030. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4031. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4032. .name = "MultiMedia19 Output Channel9",
  4033. .info = msm_pcm_channel_weight_info,
  4034. .get = msm_pcm_channel_weight_get,
  4035. .put = msm_pcm_channel_weight_put,
  4036. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4037. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 8,}
  4038. },
  4039. {
  4040. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4041. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4042. .name = "MultiMedia19 Output Channel10",
  4043. .info = msm_pcm_channel_weight_info,
  4044. .get = msm_pcm_channel_weight_get,
  4045. .put = msm_pcm_channel_weight_put,
  4046. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4047. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 9,}
  4048. },
  4049. {
  4050. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4051. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4052. .name = "MultiMedia19 Output Channel11",
  4053. .info = msm_pcm_channel_weight_info,
  4054. .get = msm_pcm_channel_weight_get,
  4055. .put = msm_pcm_channel_weight_put,
  4056. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4057. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 10,}
  4058. },
  4059. {
  4060. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4061. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4062. .name = "MultiMedia19 Output Channel12",
  4063. .info = msm_pcm_channel_weight_info,
  4064. .get = msm_pcm_channel_weight_get,
  4065. .put = msm_pcm_channel_weight_put,
  4066. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4067. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 11,}
  4068. },
  4069. {
  4070. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4071. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4072. .name = "MultiMedia19 Output Channel13",
  4073. .info = msm_pcm_channel_weight_info,
  4074. .get = msm_pcm_channel_weight_get,
  4075. .put = msm_pcm_channel_weight_put,
  4076. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4077. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 12,}
  4078. },
  4079. {
  4080. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4081. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4082. .name = "MultiMedia19 Output Channel14",
  4083. .info = msm_pcm_channel_weight_info,
  4084. .get = msm_pcm_channel_weight_get,
  4085. .put = msm_pcm_channel_weight_put,
  4086. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4087. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 13,}
  4088. },
  4089. {
  4090. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4091. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4092. .name = "MultiMedia28 Output Channel1",
  4093. .info = msm_pcm_channel_weight_info,
  4094. .get = msm_pcm_channel_weight_get,
  4095. .put = msm_pcm_channel_weight_put,
  4096. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4097. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 0,}
  4098. },
  4099. {
  4100. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4101. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4102. .name = "MultiMedia28 Output Channel2",
  4103. .info = msm_pcm_channel_weight_info,
  4104. .get = msm_pcm_channel_weight_get,
  4105. .put = msm_pcm_channel_weight_put,
  4106. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4107. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 1, }
  4108. },
  4109. {
  4110. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4111. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4112. .name = "MultiMedia28 Output Channel3",
  4113. .info = msm_pcm_channel_weight_info,
  4114. .get = msm_pcm_channel_weight_get,
  4115. .put = msm_pcm_channel_weight_put,
  4116. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4117. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 2,}
  4118. },
  4119. {
  4120. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4121. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4122. .name = "MultiMedia28 Output Channel4",
  4123. .info = msm_pcm_channel_weight_info,
  4124. .get = msm_pcm_channel_weight_get,
  4125. .put = msm_pcm_channel_weight_put,
  4126. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4127. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 3,}
  4128. },
  4129. {
  4130. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4131. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4132. .name = "MultiMedia28 Output Channel5",
  4133. .info = msm_pcm_channel_weight_info,
  4134. .get = msm_pcm_channel_weight_get,
  4135. .put = msm_pcm_channel_weight_put,
  4136. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4137. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 4,}
  4138. },
  4139. {
  4140. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4141. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4142. .name = "MultiMedia28 Output Channel6",
  4143. .info = msm_pcm_channel_weight_info,
  4144. .get = msm_pcm_channel_weight_get,
  4145. .put = msm_pcm_channel_weight_put,
  4146. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4147. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 5,}
  4148. },
  4149. {
  4150. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4151. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4152. .name = "MultiMedia28 Output Channel7",
  4153. .info = msm_pcm_channel_weight_info,
  4154. .get = msm_pcm_channel_weight_get,
  4155. .put = msm_pcm_channel_weight_put,
  4156. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4157. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 6,}
  4158. },
  4159. {
  4160. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4161. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4162. .name = "MultiMedia28 Output Channel8",
  4163. .info = msm_pcm_channel_weight_info,
  4164. .get = msm_pcm_channel_weight_get,
  4165. .put = msm_pcm_channel_weight_put,
  4166. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4167. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 7,}
  4168. },
  4169. {
  4170. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4171. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4172. .name = "MultiMedia28 Output Channel9",
  4173. .info = msm_pcm_channel_weight_info,
  4174. .get = msm_pcm_channel_weight_get,
  4175. .put = msm_pcm_channel_weight_put,
  4176. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4177. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 8,}
  4178. },
  4179. {
  4180. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4181. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4182. .name = "MultiMedia28 Output Channel10",
  4183. .info = msm_pcm_channel_weight_info,
  4184. .get = msm_pcm_channel_weight_get,
  4185. .put = msm_pcm_channel_weight_put,
  4186. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4187. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 9,}
  4188. },
  4189. {
  4190. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4191. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4192. .name = "MultiMedia28 Output Channel11",
  4193. .info = msm_pcm_channel_weight_info,
  4194. .get = msm_pcm_channel_weight_get,
  4195. .put = msm_pcm_channel_weight_put,
  4196. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4197. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 10,}
  4198. },
  4199. {
  4200. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4201. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4202. .name = "MultiMedia28 Output Channel12",
  4203. .info = msm_pcm_channel_weight_info,
  4204. .get = msm_pcm_channel_weight_get,
  4205. .put = msm_pcm_channel_weight_put,
  4206. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4207. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 11,}
  4208. },
  4209. {
  4210. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4211. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4212. .name = "MultiMedia28 Output Channel13",
  4213. .info = msm_pcm_channel_weight_info,
  4214. .get = msm_pcm_channel_weight_get,
  4215. .put = msm_pcm_channel_weight_put,
  4216. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4217. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 12,}
  4218. },
  4219. {
  4220. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4221. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4222. .name = "MultiMedia28 Output Channel14",
  4223. .info = msm_pcm_channel_weight_info,
  4224. .get = msm_pcm_channel_weight_get,
  4225. .put = msm_pcm_channel_weight_put,
  4226. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4227. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 13,}
  4228. },
  4229. {
  4230. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4231. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4232. .name = "MultiMedia29 Output Channel1",
  4233. .info = msm_pcm_channel_weight_info,
  4234. .get = msm_pcm_channel_weight_get,
  4235. .put = msm_pcm_channel_weight_put,
  4236. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4237. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 0,}
  4238. },
  4239. {
  4240. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4241. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4242. .name = "MultiMedia29 Output Channel2",
  4243. .info = msm_pcm_channel_weight_info,
  4244. .get = msm_pcm_channel_weight_get,
  4245. .put = msm_pcm_channel_weight_put,
  4246. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4247. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 1, }
  4248. },
  4249. {
  4250. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4251. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4252. .name = "MultiMedia29 Output Channel3",
  4253. .info = msm_pcm_channel_weight_info,
  4254. .get = msm_pcm_channel_weight_get,
  4255. .put = msm_pcm_channel_weight_put,
  4256. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4257. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 2,}
  4258. },
  4259. {
  4260. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4261. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4262. .name = "MultiMedia29 Output Channel4",
  4263. .info = msm_pcm_channel_weight_info,
  4264. .get = msm_pcm_channel_weight_get,
  4265. .put = msm_pcm_channel_weight_put,
  4266. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4267. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 3,}
  4268. },
  4269. {
  4270. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4271. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4272. .name = "MultiMedia29 Output Channel5",
  4273. .info = msm_pcm_channel_weight_info,
  4274. .get = msm_pcm_channel_weight_get,
  4275. .put = msm_pcm_channel_weight_put,
  4276. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4277. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 4,}
  4278. },
  4279. {
  4280. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4281. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4282. .name = "MultiMedia29 Output Channel6",
  4283. .info = msm_pcm_channel_weight_info,
  4284. .get = msm_pcm_channel_weight_get,
  4285. .put = msm_pcm_channel_weight_put,
  4286. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4287. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 5,}
  4288. },
  4289. {
  4290. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4291. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4292. .name = "MultiMedia29 Output Channel7",
  4293. .info = msm_pcm_channel_weight_info,
  4294. .get = msm_pcm_channel_weight_get,
  4295. .put = msm_pcm_channel_weight_put,
  4296. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4297. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 6,}
  4298. },
  4299. {
  4300. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4301. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4302. .name = "MultiMedia29 Output Channel8",
  4303. .info = msm_pcm_channel_weight_info,
  4304. .get = msm_pcm_channel_weight_get,
  4305. .put = msm_pcm_channel_weight_put,
  4306. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4307. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 7,}
  4308. },
  4309. {
  4310. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4311. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4312. .name = "MultiMedia29 Output Channel9",
  4313. .info = msm_pcm_channel_weight_info,
  4314. .get = msm_pcm_channel_weight_get,
  4315. .put = msm_pcm_channel_weight_put,
  4316. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4317. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 8,}
  4318. },
  4319. {
  4320. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4321. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4322. .name = "MultiMedia29 Output Channel10",
  4323. .info = msm_pcm_channel_weight_info,
  4324. .get = msm_pcm_channel_weight_get,
  4325. .put = msm_pcm_channel_weight_put,
  4326. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4327. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 9,}
  4328. },
  4329. {
  4330. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4331. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4332. .name = "MultiMedia29 Output Channel11",
  4333. .info = msm_pcm_channel_weight_info,
  4334. .get = msm_pcm_channel_weight_get,
  4335. .put = msm_pcm_channel_weight_put,
  4336. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4337. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 10,}
  4338. },
  4339. {
  4340. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4341. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4342. .name = "MultiMedia29 Output Channel12",
  4343. .info = msm_pcm_channel_weight_info,
  4344. .get = msm_pcm_channel_weight_get,
  4345. .put = msm_pcm_channel_weight_put,
  4346. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4347. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 11,}
  4348. },
  4349. {
  4350. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4351. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4352. .name = "MultiMedia29 Output Channel13",
  4353. .info = msm_pcm_channel_weight_info,
  4354. .get = msm_pcm_channel_weight_get,
  4355. .put = msm_pcm_channel_weight_put,
  4356. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4357. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 12,}
  4358. },
  4359. {
  4360. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4361. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4362. .name = "MultiMedia29 Output Channel14",
  4363. .info = msm_pcm_channel_weight_info,
  4364. .get = msm_pcm_channel_weight_get,
  4365. .put = msm_pcm_channel_weight_put,
  4366. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4367. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 13,}
  4368. },
  4369. {
  4370. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4371. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4372. .name = "MultiMedia30 Output Channel1",
  4373. .info = msm_pcm_channel_weight_info,
  4374. .get = msm_pcm_channel_weight_get,
  4375. .put = msm_pcm_channel_weight_put,
  4376. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4377. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 0,}
  4378. },
  4379. {
  4380. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4381. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4382. .name = "MultiMedia30 Output Channel2",
  4383. .info = msm_pcm_channel_weight_info,
  4384. .get = msm_pcm_channel_weight_get,
  4385. .put = msm_pcm_channel_weight_put,
  4386. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4387. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 1, }
  4388. },
  4389. {
  4390. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4391. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4392. .name = "MultiMedia30 Output Channel3",
  4393. .info = msm_pcm_channel_weight_info,
  4394. .get = msm_pcm_channel_weight_get,
  4395. .put = msm_pcm_channel_weight_put,
  4396. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4397. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 2,}
  4398. },
  4399. {
  4400. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4401. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4402. .name = "MultiMedia30 Output Channel4",
  4403. .info = msm_pcm_channel_weight_info,
  4404. .get = msm_pcm_channel_weight_get,
  4405. .put = msm_pcm_channel_weight_put,
  4406. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4407. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 3,}
  4408. },
  4409. {
  4410. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4411. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4412. .name = "MultiMedia30 Output Channel5",
  4413. .info = msm_pcm_channel_weight_info,
  4414. .get = msm_pcm_channel_weight_get,
  4415. .put = msm_pcm_channel_weight_put,
  4416. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4417. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 4,}
  4418. },
  4419. {
  4420. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4421. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4422. .name = "MultiMedia30 Output Channel6",
  4423. .info = msm_pcm_channel_weight_info,
  4424. .get = msm_pcm_channel_weight_get,
  4425. .put = msm_pcm_channel_weight_put,
  4426. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4427. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 5,}
  4428. },
  4429. {
  4430. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4431. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4432. .name = "MultiMedia30 Output Channel7",
  4433. .info = msm_pcm_channel_weight_info,
  4434. .get = msm_pcm_channel_weight_get,
  4435. .put = msm_pcm_channel_weight_put,
  4436. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4437. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 6,}
  4438. },
  4439. {
  4440. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4441. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4442. .name = "MultiMedia30 Output Channel8",
  4443. .info = msm_pcm_channel_weight_info,
  4444. .get = msm_pcm_channel_weight_get,
  4445. .put = msm_pcm_channel_weight_put,
  4446. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4447. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 7,}
  4448. },
  4449. {
  4450. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4451. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4452. .name = "MultiMedia30 Output Channel9",
  4453. .info = msm_pcm_channel_weight_info,
  4454. .get = msm_pcm_channel_weight_get,
  4455. .put = msm_pcm_channel_weight_put,
  4456. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4457. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 8,}
  4458. },
  4459. {
  4460. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4461. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4462. .name = "MultiMedia30 Output Channel10",
  4463. .info = msm_pcm_channel_weight_info,
  4464. .get = msm_pcm_channel_weight_get,
  4465. .put = msm_pcm_channel_weight_put,
  4466. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4467. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 9,}
  4468. },
  4469. {
  4470. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4471. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4472. .name = "MultiMedia30 Output Channel11",
  4473. .info = msm_pcm_channel_weight_info,
  4474. .get = msm_pcm_channel_weight_get,
  4475. .put = msm_pcm_channel_weight_put,
  4476. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4477. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 10,}
  4478. },
  4479. {
  4480. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4481. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4482. .name = "MultiMedia30 Output Channel12",
  4483. .info = msm_pcm_channel_weight_info,
  4484. .get = msm_pcm_channel_weight_get,
  4485. .put = msm_pcm_channel_weight_put,
  4486. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4487. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 11,}
  4488. },
  4489. {
  4490. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4491. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4492. .name = "MultiMedia30 Output Channel13",
  4493. .info = msm_pcm_channel_weight_info,
  4494. .get = msm_pcm_channel_weight_get,
  4495. .put = msm_pcm_channel_weight_put,
  4496. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4497. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 12,}
  4498. },
  4499. {
  4500. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4501. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4502. .name = "MultiMedia30 Output Channel14",
  4503. .info = msm_pcm_channel_weight_info,
  4504. .get = msm_pcm_channel_weight_get,
  4505. .put = msm_pcm_channel_weight_put,
  4506. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4507. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 13,}
  4508. },
  4509. {
  4510. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4511. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4512. .name = "MultiMedia1 Channel1",
  4513. .info = msm_pcm_channel_input_be_info,
  4514. .get = msm_pcm_channel_input_be_get,
  4515. .put = msm_pcm_channel_input_be_put,
  4516. .private_value = (unsigned long)&(mm1_ch1_enum)
  4517. },
  4518. {
  4519. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4520. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4521. .name = "MultiMedia1 Channel2",
  4522. .info = msm_pcm_channel_input_be_info,
  4523. .get = msm_pcm_channel_input_be_get,
  4524. .put = msm_pcm_channel_input_be_put,
  4525. .private_value = (unsigned long)&(mm1_ch2_enum)
  4526. },
  4527. {
  4528. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4529. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4530. .name = "MultiMedia1 Channel3",
  4531. .info = msm_pcm_channel_input_be_info,
  4532. .get = msm_pcm_channel_input_be_get,
  4533. .put = msm_pcm_channel_input_be_put,
  4534. .private_value = (unsigned long)&(mm1_ch3_enum)
  4535. },
  4536. {
  4537. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4538. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4539. .name = "MultiMedia1 Channel4",
  4540. .info = msm_pcm_channel_input_be_info,
  4541. .get = msm_pcm_channel_input_be_get,
  4542. .put = msm_pcm_channel_input_be_put,
  4543. .private_value = (unsigned long)&(mm1_ch4_enum)
  4544. },
  4545. {
  4546. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4547. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4548. .name = "MultiMedia1 Channel5",
  4549. .info = msm_pcm_channel_input_be_info,
  4550. .get = msm_pcm_channel_input_be_get,
  4551. .put = msm_pcm_channel_input_be_put,
  4552. .private_value = (unsigned long)&(mm1_ch5_enum)
  4553. },
  4554. {
  4555. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4556. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4557. .name = "MultiMedia1 Channel6",
  4558. .info = msm_pcm_channel_input_be_info,
  4559. .get = msm_pcm_channel_input_be_get,
  4560. .put = msm_pcm_channel_input_be_put,
  4561. .private_value = (unsigned long)&(mm1_ch6_enum)
  4562. },
  4563. {
  4564. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4565. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4566. .name = "MultiMedia1 Channel7",
  4567. .info = msm_pcm_channel_input_be_info,
  4568. .get = msm_pcm_channel_input_be_get,
  4569. .put = msm_pcm_channel_input_be_put,
  4570. .private_value = (unsigned long)&(mm1_ch7_enum)
  4571. },
  4572. {
  4573. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4574. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4575. .name = "MultiMedia1 Channel8",
  4576. .info = msm_pcm_channel_input_be_info,
  4577. .get = msm_pcm_channel_input_be_get,
  4578. .put = msm_pcm_channel_input_be_put,
  4579. .private_value = (unsigned long)&(mm1_ch8_enum)
  4580. },
  4581. {
  4582. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4583. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4584. .name = "MultiMedia18 Channel1",
  4585. .info = msm_pcm_channel_input_be_info,
  4586. .get = msm_pcm_channel_input_be_get,
  4587. .put = msm_pcm_channel_input_be_put,
  4588. .private_value = (unsigned long)&(mm18_ch1_enum)
  4589. },
  4590. {
  4591. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4592. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4593. .name = "MultiMedia18 Channel2",
  4594. .info = msm_pcm_channel_input_be_info,
  4595. .get = msm_pcm_channel_input_be_get,
  4596. .put = msm_pcm_channel_input_be_put,
  4597. .private_value = (unsigned long)&(mm18_ch2_enum)
  4598. },
  4599. {
  4600. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4601. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4602. .name = "MultiMedia19 Channel1",
  4603. .info = msm_pcm_channel_input_be_info,
  4604. .get = msm_pcm_channel_input_be_get,
  4605. .put = msm_pcm_channel_input_be_put,
  4606. .private_value = (unsigned long)&(mm19_ch1_enum)
  4607. },
  4608. {
  4609. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4610. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4611. .name = "MultiMedia19 Channel2",
  4612. .info = msm_pcm_channel_input_be_info,
  4613. .get = msm_pcm_channel_input_be_get,
  4614. .put = msm_pcm_channel_input_be_put,
  4615. .private_value = (unsigned long)&(mm19_ch2_enum)
  4616. },
  4617. {
  4618. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4619. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4620. .name = "MultiMedia28 Channel1",
  4621. .info = msm_pcm_channel_input_be_info,
  4622. .get = msm_pcm_channel_input_be_get,
  4623. .put = msm_pcm_channel_input_be_put,
  4624. .private_value = (unsigned long)&(mm28_ch1_enum)
  4625. },
  4626. {
  4627. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4628. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4629. .name = "MultiMedia28 Channel2",
  4630. .info = msm_pcm_channel_input_be_info,
  4631. .get = msm_pcm_channel_input_be_get,
  4632. .put = msm_pcm_channel_input_be_put,
  4633. .private_value = (unsigned long)&(mm28_ch2_enum)
  4634. },
  4635. {
  4636. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4637. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4638. .name = "MultiMedia29 Channel1",
  4639. .info = msm_pcm_channel_input_be_info,
  4640. .get = msm_pcm_channel_input_be_get,
  4641. .put = msm_pcm_channel_input_be_put,
  4642. .private_value = (unsigned long)&(mm29_ch1_enum)
  4643. },
  4644. {
  4645. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4646. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4647. .name = "MultiMedia29 Channel2",
  4648. .info = msm_pcm_channel_input_be_info,
  4649. .get = msm_pcm_channel_input_be_get,
  4650. .put = msm_pcm_channel_input_be_put,
  4651. .private_value = (unsigned long)&(mm29_ch2_enum)
  4652. },
  4653. {
  4654. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4655. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4656. .name = "MultiMedia30 Channel1",
  4657. .info = msm_pcm_channel_input_be_info,
  4658. .get = msm_pcm_channel_input_be_get,
  4659. .put = msm_pcm_channel_input_be_put,
  4660. .private_value = (unsigned long)&(mm30_ch1_enum)
  4661. },
  4662. {
  4663. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4664. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4665. .name = "MultiMedia30 Channel2",
  4666. .info = msm_pcm_channel_input_be_info,
  4667. .get = msm_pcm_channel_input_be_get,
  4668. .put = msm_pcm_channel_input_be_put,
  4669. .private_value = (unsigned long)&(mm30_ch2_enum)
  4670. },
  4671. {
  4672. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4673. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4674. .name = "MultiMedia1 Output Channel Map",
  4675. .info = msm_pcm_channel_output_map_info,
  4676. .get = msm_pcm_channel_output_map_get,
  4677. .put = msm_pcm_channel_output_map_put,
  4678. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4679. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1,}
  4680. },
  4681. {
  4682. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4683. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4684. .name = "MultiMedia2 Output Channel Map",
  4685. .info = msm_pcm_channel_output_map_info,
  4686. .get = msm_pcm_channel_output_map_get,
  4687. .put = msm_pcm_channel_output_map_put,
  4688. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4689. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA2,}
  4690. },
  4691. {
  4692. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4693. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4694. .name = "MultiMedia3 Output Channel Map",
  4695. .info = msm_pcm_channel_output_map_info,
  4696. .get = msm_pcm_channel_output_map_get,
  4697. .put = msm_pcm_channel_output_map_put,
  4698. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4699. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA3,}
  4700. },
  4701. {
  4702. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4703. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4704. .name = "MultiMedia4 Output Channel Map",
  4705. .info = msm_pcm_channel_output_map_info,
  4706. .get = msm_pcm_channel_output_map_get,
  4707. .put = msm_pcm_channel_output_map_put,
  4708. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4709. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA4,}
  4710. },
  4711. {
  4712. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4713. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4714. .name = "MultiMedia5 Output Channel Map",
  4715. .info = msm_pcm_channel_output_map_info,
  4716. .get = msm_pcm_channel_output_map_get,
  4717. .put = msm_pcm_channel_output_map_put,
  4718. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4719. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA5,}
  4720. },
  4721. {
  4722. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4723. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4724. .name = "MultiMedia6 Output Channel Map",
  4725. .info = msm_pcm_channel_output_map_info,
  4726. .get = msm_pcm_channel_output_map_get,
  4727. .put = msm_pcm_channel_output_map_put,
  4728. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4729. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA6,}
  4730. },
  4731. {
  4732. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4733. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4734. .name = "MultiMedia18 Output Channel Map",
  4735. .info = msm_pcm_channel_output_map_info,
  4736. .get = msm_pcm_channel_output_map_get,
  4737. .put = msm_pcm_channel_output_map_put,
  4738. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4739. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18,}
  4740. },
  4741. {
  4742. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4743. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4744. .name = "MultiMedia19 Output Channel Map",
  4745. .info = msm_pcm_channel_output_map_info,
  4746. .get = msm_pcm_channel_output_map_get,
  4747. .put = msm_pcm_channel_output_map_put,
  4748. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4749. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19,}
  4750. },
  4751. {
  4752. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4753. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4754. .name = "MultiMedia28 Output Channel Map",
  4755. .info = msm_pcm_channel_output_map_info,
  4756. .get = msm_pcm_channel_output_map_get,
  4757. .put = msm_pcm_channel_output_map_put,
  4758. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4759. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28,}
  4760. },
  4761. {
  4762. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4763. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4764. .name = "MultiMedia29 Output Channel Map",
  4765. .info = msm_pcm_channel_output_map_info,
  4766. .get = msm_pcm_channel_output_map_get,
  4767. .put = msm_pcm_channel_output_map_put,
  4768. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4769. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29,}
  4770. },
  4771. {
  4772. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4773. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4774. .name = "MultiMedia30 Output Channel Map",
  4775. .info = msm_pcm_channel_output_map_info,
  4776. .get = msm_pcm_channel_output_map_get,
  4777. .put = msm_pcm_channel_output_map_put,
  4778. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4779. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30,}
  4780. },
  4781. };
  4782. static int msm_ec_ref_ch_get(struct snd_kcontrol *kcontrol,
  4783. struct snd_ctl_elem_value *ucontrol)
  4784. {
  4785. ucontrol->value.integer.value[0] = msm_ec_ref_ch;
  4786. pr_debug("%s: msm_ec_ref_ch = %ld\n", __func__,
  4787. ucontrol->value.integer.value[0]);
  4788. return 0;
  4789. }
  4790. static int msm_ec_ref_ch_put(struct snd_kcontrol *kcontrol,
  4791. struct snd_ctl_elem_value *ucontrol)
  4792. {
  4793. msm_ec_ref_ch = ucontrol->value.integer.value[0];
  4794. pr_debug("%s: msm_ec_ref_ch = %d\n", __func__, msm_ec_ref_ch);
  4795. adm_num_ec_ref_rx_chans(msm_ec_ref_ch);
  4796. return 0;
  4797. }
  4798. static int msm_ec_ref_ch_downmixed_get(struct snd_kcontrol *kcontrol,
  4799. struct snd_ctl_elem_value *ucontrol)
  4800. {
  4801. ucontrol->value.integer.value[0] = msm_ec_ref_ch_downmixed;
  4802. pr_debug("%s: msm_ec_ref_downmixed_ch = %ld\n", __func__,
  4803. ucontrol->value.integer.value[0]);
  4804. return 0;
  4805. }
  4806. static int msm_ec_ref_ch_downmixed_put(struct snd_kcontrol *kcontrol,
  4807. struct snd_ctl_elem_value *ucontrol)
  4808. {
  4809. msm_ec_ref_ch_downmixed = ucontrol->value.integer.value[0];
  4810. pr_debug("%s: msm_ec_ref_downmixed_ch = %d\n",
  4811. __func__, msm_ec_ref_ch_downmixed);
  4812. adm_num_ec_ref_rx_chans_downmixed(msm_ec_ref_ch_downmixed);
  4813. return 0;
  4814. }
  4815. static int msm_ec_ref_chmixer_weights_put(struct snd_kcontrol *kcontrol,
  4816. struct snd_ctl_elem_value *ucontrol)
  4817. {
  4818. int i = 0, ret = 0;
  4819. uint16_t weights[PCM_FORMAT_MAX_NUM_CHANNEL_V8] = {0};
  4820. int out_channel_idx = ((struct soc_multi_mixer_control *)
  4821. kcontrol->private_value)->shift;
  4822. for (; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; i++)
  4823. weights[i] = ucontrol->value.integer.value[i];
  4824. ret = adm_ec_ref_chmixer_weights(out_channel_idx,
  4825. weights, PCM_FORMAT_MAX_NUM_CHANNEL_V8);
  4826. pr_debug("%s: ch_index = %d, ret = %d\n", __func__, out_channel_idx, ret);
  4827. return ret;
  4828. }
  4829. static const char *const ec_ref_ch_text[] = {"Zero", "One", "Two", "Three",
  4830. "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten", "Eleven",
  4831. "Twelve", "Thirteen", "Fourteen", "Fifteen", "Sixteen"};
  4832. static int msm_ec_ref_bit_format_get(struct snd_kcontrol *kcontrol,
  4833. struct snd_ctl_elem_value *ucontrol)
  4834. {
  4835. switch (msm_ec_ref_bit_format) {
  4836. case SNDRV_PCM_FORMAT_S24_LE:
  4837. ucontrol->value.integer.value[0] = 2;
  4838. break;
  4839. case SNDRV_PCM_FORMAT_S16_LE:
  4840. ucontrol->value.integer.value[0] = 1;
  4841. break;
  4842. default:
  4843. ucontrol->value.integer.value[0] = 0;
  4844. break;
  4845. }
  4846. pr_debug("%s: msm_ec_ref_bit_format = %ld\n",
  4847. __func__, ucontrol->value.integer.value[0]);
  4848. return 0;
  4849. }
  4850. static int msm_ec_ref_bit_format_put(struct snd_kcontrol *kcontrol,
  4851. struct snd_ctl_elem_value *ucontrol)
  4852. {
  4853. u16 bit_width = 0;
  4854. switch (ucontrol->value.integer.value[0]) {
  4855. case 2:
  4856. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S24_LE;
  4857. break;
  4858. case 1:
  4859. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  4860. break;
  4861. default:
  4862. msm_ec_ref_bit_format = 0;
  4863. break;
  4864. }
  4865. if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S16_LE)
  4866. bit_width = 16;
  4867. else if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S24_LE)
  4868. bit_width = 24;
  4869. pr_debug("%s: msm_ec_ref_bit_format = %d\n",
  4870. __func__, msm_ec_ref_bit_format);
  4871. adm_ec_ref_rx_bit_width(bit_width);
  4872. return 0;
  4873. }
  4874. static char const *ec_ref_bit_format_text[] = {"0", "S16_LE", "S24_LE"};
  4875. static int msm_ec_ref_rate_get(struct snd_kcontrol *kcontrol,
  4876. struct snd_ctl_elem_value *ucontrol)
  4877. {
  4878. ucontrol->value.integer.value[0] = msm_ec_ref_sampling_rate;
  4879. pr_debug("%s: msm_ec_ref_sampling_rate = %ld\n",
  4880. __func__, ucontrol->value.integer.value[0]);
  4881. return 0;
  4882. }
  4883. static int msm_ec_ref_rate_put(struct snd_kcontrol *kcontrol,
  4884. struct snd_ctl_elem_value *ucontrol)
  4885. {
  4886. switch (ucontrol->value.integer.value[0]) {
  4887. case 0:
  4888. msm_ec_ref_sampling_rate = 0;
  4889. break;
  4890. case 1:
  4891. msm_ec_ref_sampling_rate = 8000;
  4892. break;
  4893. case 2:
  4894. msm_ec_ref_sampling_rate = 16000;
  4895. break;
  4896. case 3:
  4897. msm_ec_ref_sampling_rate = 32000;
  4898. break;
  4899. case 4:
  4900. msm_ec_ref_sampling_rate = 44100;
  4901. break;
  4902. case 5:
  4903. msm_ec_ref_sampling_rate = 48000;
  4904. break;
  4905. case 6:
  4906. msm_ec_ref_sampling_rate = 96000;
  4907. break;
  4908. case 7:
  4909. msm_ec_ref_sampling_rate = 192000;
  4910. break;
  4911. case 8:
  4912. msm_ec_ref_sampling_rate = 384000;
  4913. break;
  4914. default:
  4915. msm_ec_ref_sampling_rate = 48000;
  4916. break;
  4917. }
  4918. pr_debug("%s: msm_ec_ref_sampling_rate = %d\n",
  4919. __func__, msm_ec_ref_sampling_rate);
  4920. adm_ec_ref_rx_sampling_rate(msm_ec_ref_sampling_rate);
  4921. return 0;
  4922. }
  4923. static int get_ec_ref_port_id(int value, int *index)
  4924. {
  4925. int port_id;
  4926. switch (value) {
  4927. case 0:
  4928. *index = 0;
  4929. port_id = AFE_PORT_INVALID;
  4930. break;
  4931. case 1:
  4932. *index = 1;
  4933. port_id = SLIMBUS_0_RX;
  4934. break;
  4935. case 2:
  4936. *index = 2;
  4937. port_id = AFE_PORT_ID_PRIMARY_MI2S_RX;
  4938. break;
  4939. case 3:
  4940. *index = 3;
  4941. port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  4942. break;
  4943. case 4:
  4944. *index = 4;
  4945. port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  4946. break;
  4947. case 5:
  4948. *index = 5;
  4949. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  4950. break;
  4951. case 6:
  4952. *index = 6;
  4953. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  4954. break;
  4955. case 7:
  4956. *index = 7;
  4957. port_id = AFE_PORT_ID_SECONDARY_MI2S_RX;
  4958. break;
  4959. case 9:
  4960. *index = 9;
  4961. port_id = SLIMBUS_5_RX;
  4962. break;
  4963. case 10:
  4964. *index = 10;
  4965. port_id = SLIMBUS_1_TX;
  4966. break;
  4967. case 11:
  4968. *index = 11;
  4969. port_id = AFE_PORT_ID_QUATERNARY_TDM_TX_1;
  4970. break;
  4971. case 12:
  4972. *index = 12;
  4973. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX;
  4974. break;
  4975. case 13:
  4976. *index = 13;
  4977. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_1;
  4978. break;
  4979. case 14:
  4980. *index = 14;
  4981. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_2;
  4982. break;
  4983. case 15:
  4984. *index = 15;
  4985. port_id = SLIMBUS_6_RX;
  4986. break;
  4987. case 16:
  4988. *index = 16;
  4989. port_id = AFE_PORT_ID_TERTIARY_MI2S_RX;
  4990. break;
  4991. case 17:
  4992. *index = 17;
  4993. port_id = AFE_PORT_ID_QUATERNARY_MI2S_RX;
  4994. break;
  4995. case 18:
  4996. *index = 18;
  4997. port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  4998. break;
  4999. case 19:
  5000. *index = 19;
  5001. port_id = AFE_PORT_ID_USB_RX;
  5002. break;
  5003. case 20:
  5004. *index = 20;
  5005. port_id = AFE_PORT_ID_INT0_MI2S_RX;
  5006. break;
  5007. case 21:
  5008. *index = 21;
  5009. port_id = AFE_PORT_ID_INT4_MI2S_RX;
  5010. break;
  5011. case 22:
  5012. *index = 22;
  5013. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  5014. break;
  5015. case 23:
  5016. *index = 23;
  5017. port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  5018. break;
  5019. case 24:
  5020. *index = 24;
  5021. port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_0;
  5022. break;
  5023. case 25:
  5024. *index = 25;
  5025. port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_1;
  5026. break;
  5027. case 26:
  5028. *index = 26;
  5029. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_0;
  5030. break;
  5031. case 27:
  5032. *index = 27;
  5033. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_1;
  5034. break;
  5035. case 28:
  5036. *index = 28;
  5037. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_2;
  5038. break;
  5039. case 29:
  5040. *index = 29;
  5041. port_id = SLIMBUS_7_RX;
  5042. break;
  5043. case 30:
  5044. *index = 30;
  5045. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_0;
  5046. break;
  5047. case 31:
  5048. *index = 31;
  5049. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_1;
  5050. break;
  5051. case 32:
  5052. *index = 32;
  5053. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_2;
  5054. break;
  5055. case 33:
  5056. *index = 33;
  5057. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_3;
  5058. break;
  5059. case 34:
  5060. *index = 34;
  5061. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_0;
  5062. break;
  5063. case 35:
  5064. *index = 35;
  5065. port_id = AFE_PORT_ID_TERTIARY_TDM_RX_2;
  5066. break;
  5067. case 36:
  5068. *index = 36;
  5069. port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  5070. break;
  5071. case 37:
  5072. *index = 37;
  5073. port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  5074. break;
  5075. case 38:
  5076. *index = 38;
  5077. port_id = AFE_PORT_ID_SENARY_MI2S_RX;
  5078. break;
  5079. case 39:
  5080. *index = 39;
  5081. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  5082. break;
  5083. case 40:
  5084. *index = 40;
  5085. port_id = AFE_PORT_ID_SENARY_MI2S_TX;
  5086. break;
  5087. default:
  5088. *index = 0; /* NONE */
  5089. pr_err("%s: Invalid value %d\n", __func__, value);
  5090. port_id = AFE_PORT_INVALID;
  5091. break;
  5092. }
  5093. return port_id;
  5094. }
  5095. static int msm_routing_afe_lb_tx_port_get(struct snd_kcontrol *kcontrol,
  5096. struct snd_ctl_elem_value *ucontrol)
  5097. {
  5098. pr_debug("%s: port index = %d", __func__, afe_loopback_tx_port_index);
  5099. mutex_lock(&routing_lock);
  5100. ucontrol->value.integer.value[0] = afe_loopback_tx_port_index;
  5101. mutex_unlock(&routing_lock);
  5102. return 0;
  5103. }
  5104. static int msm_routing_afe_lb_tx_port_put(struct snd_kcontrol *kcontrol,
  5105. struct snd_ctl_elem_value *ucontrol)
  5106. {
  5107. int value = ucontrol->value.integer.value[0];
  5108. mutex_lock(&routing_lock);
  5109. afe_loopback_tx_port_id = get_ec_ref_port_id(value,
  5110. &afe_loopback_tx_port_index);
  5111. pr_debug("%s: afe_loopback_tx_port_index = %d\n",
  5112. __func__, afe_loopback_tx_port_index);
  5113. mutex_unlock(&routing_lock);
  5114. return 0;
  5115. }
  5116. static const char *const ec_ref_rate_text[] = {"0", "8000", "16000",
  5117. "32000", "44100", "48000", "96000", "192000", "384000"};
  5118. static const struct soc_enum msm_route_ec_ref_params_enum[] = {
  5119. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_ch_text), ec_ref_ch_text),
  5120. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_bit_format_text),
  5121. ec_ref_bit_format_text),
  5122. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rate_text), ec_ref_rate_text),
  5123. };
  5124. static const char *const ec_ref_rx[] = { "None", "SLIM_RX", "I2S_RX",
  5125. "PRI_MI2S_TX", "SEC_MI2S_TX",
  5126. "TERT_MI2S_TX", "QUAT_MI2S_TX", "SEC_I2S_RX", "PROXY_RX",
  5127. "SLIM_5_RX", "SLIM_1_TX", "QUAT_TDM_TX_1",
  5128. "QUAT_TDM_RX_0", "QUAT_TDM_RX_1", "QUAT_TDM_RX_2", "SLIM_6_RX",
  5129. "TERT_MI2S_RX", "QUAT_MI2S_RX", "TERT_TDM_TX_0", "USB_AUDIO_RX",
  5130. "INT0_MI2S_RX", "INT4_MI2S_RX", "INT3_MI2S_TX", "DISPLAY_PORT",
  5131. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_RX_1",
  5132. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_2",
  5133. "SLIM_7_RX", "RX_CDC_DMA_RX_0", "RX_CDC_DMA_RX_1", "RX_CDC_DMA_RX_2",
  5134. "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_0", "TERT_TDM_RX_2", "SEC_TDM_TX_0",
  5135. "DISPLAY_PORT1", "SEN_MI2S_RX", "QUIN_TDM_TX_0", "SENARY_MI2S_TX",
  5136. };
  5137. static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
  5138. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rx), ec_ref_rx),
  5139. };
  5140. static const struct snd_kcontrol_new ec_ref_param_controls[] = {
  5141. SOC_ENUM_EXT("EC Reference Channels", msm_route_ec_ref_params_enum[0],
  5142. msm_ec_ref_ch_get, msm_ec_ref_ch_put),
  5143. SOC_ENUM_EXT("EC Reference Bit Format", msm_route_ec_ref_params_enum[1],
  5144. msm_ec_ref_bit_format_get, msm_ec_ref_bit_format_put),
  5145. SOC_ENUM_EXT("EC Reference SampleRate", msm_route_ec_ref_params_enum[2],
  5146. msm_ec_ref_rate_get, msm_ec_ref_rate_put),
  5147. SOC_ENUM_EXT("EC Reference Downmixed Channels",
  5148. msm_route_ec_ref_params_enum[0],
  5149. msm_ec_ref_ch_downmixed_get, msm_ec_ref_ch_downmixed_put),
  5150. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch1", SND_SOC_NOPM,
  5151. 0, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5152. msm_ec_ref_chmixer_weights_put),
  5153. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch2", SND_SOC_NOPM,
  5154. 1, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5155. msm_ec_ref_chmixer_weights_put),
  5156. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch3", SND_SOC_NOPM,
  5157. 2, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5158. msm_ec_ref_chmixer_weights_put),
  5159. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch4", SND_SOC_NOPM,
  5160. 3, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5161. msm_ec_ref_chmixer_weights_put),
  5162. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch5", SND_SOC_NOPM,
  5163. 4, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5164. msm_ec_ref_chmixer_weights_put),
  5165. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch6", SND_SOC_NOPM,
  5166. 5, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5167. msm_ec_ref_chmixer_weights_put),
  5168. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch7", SND_SOC_NOPM,
  5169. 6, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5170. msm_ec_ref_chmixer_weights_put),
  5171. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch8", SND_SOC_NOPM,
  5172. 7, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5173. msm_ec_ref_chmixer_weights_put),
  5174. SOC_ENUM_EXT("AFE_LOOPBACK_TX Port", msm_route_ec_ref_rx_enum[0],
  5175. msm_routing_afe_lb_tx_port_get, msm_routing_afe_lb_tx_port_put),
  5176. };
  5177. static int msm_routing_ec_ref_rx_get(struct snd_kcontrol *kcontrol,
  5178. struct snd_ctl_elem_value *ucontrol)
  5179. {
  5180. pr_debug("%s: ec_ref_rx = %d", __func__, msm_route_ec_ref_rx);
  5181. mutex_lock(&routing_lock);
  5182. ucontrol->value.integer.value[0] = msm_route_ec_ref_rx;
  5183. mutex_unlock(&routing_lock);
  5184. return 0;
  5185. }
  5186. static int msm_routing_ec_ref_rx_put(struct snd_kcontrol *kcontrol,
  5187. struct snd_ctl_elem_value *ucontrol)
  5188. {
  5189. int value = ucontrol->value.integer.value[0];
  5190. struct snd_soc_dapm_widget *widget =
  5191. snd_soc_dapm_kcontrol_widget(kcontrol);
  5192. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  5193. struct snd_soc_dapm_update *update = NULL;
  5194. mutex_lock(&routing_lock);
  5195. msm_ec_ref_port_id = get_ec_ref_port_id(value, &msm_route_ec_ref_rx);
  5196. adm_ec_ref_rx_id(msm_ec_ref_port_id);
  5197. pr_debug("%s: msm_route_ec_ref_rx = %d\n",
  5198. __func__, msm_route_ec_ref_rx);
  5199. mutex_unlock(&routing_lock);
  5200. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol,
  5201. msm_route_ec_ref_rx, e, update);
  5202. return 0;
  5203. }
  5204. static const struct snd_kcontrol_new ext_ec_ref_mux_ul1 =
  5205. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL1 MUX Mux",
  5206. msm_route_ec_ref_rx_enum[0],
  5207. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5208. static const struct snd_kcontrol_new ext_ec_ref_mux_ul2 =
  5209. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL2 MUX Mux",
  5210. msm_route_ec_ref_rx_enum[0],
  5211. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5212. static const struct snd_kcontrol_new ext_ec_ref_mux_ul3 =
  5213. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL3 MUX Mux",
  5214. msm_route_ec_ref_rx_enum[0],
  5215. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5216. static const struct snd_kcontrol_new ext_ec_ref_mux_ul4 =
  5217. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL4 MUX Mux",
  5218. msm_route_ec_ref_rx_enum[0],
  5219. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5220. static const struct snd_kcontrol_new ext_ec_ref_mux_ul5 =
  5221. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL5 MUX Mux",
  5222. msm_route_ec_ref_rx_enum[0],
  5223. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5224. static const struct snd_kcontrol_new ext_ec_ref_mux_ul6 =
  5225. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL6 MUX Mux",
  5226. msm_route_ec_ref_rx_enum[0],
  5227. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5228. static const struct snd_kcontrol_new ext_ec_ref_mux_ul8 =
  5229. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL8 MUX Mux",
  5230. msm_route_ec_ref_rx_enum[0],
  5231. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5232. static const struct snd_kcontrol_new ext_ec_ref_mux_ul9 =
  5233. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL9 MUX Mux",
  5234. msm_route_ec_ref_rx_enum[0],
  5235. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5236. static const struct snd_kcontrol_new ext_ec_ref_mux_ul16 =
  5237. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL16 MUX Mux",
  5238. msm_route_ec_ref_rx_enum[0],
  5239. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5240. static const struct snd_kcontrol_new ext_ec_ref_mux_ul10 =
  5241. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL10 MUX Mux",
  5242. msm_route_ec_ref_rx_enum[0],
  5243. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5244. static const struct snd_kcontrol_new ext_ec_ref_mux_ul17 =
  5245. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL17 MUX Mux",
  5246. msm_route_ec_ref_rx_enum[0],
  5247. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5248. static const struct snd_kcontrol_new ext_ec_ref_mux_ul18 =
  5249. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL18 MUX Mux",
  5250. msm_route_ec_ref_rx_enum[0],
  5251. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5252. static const struct snd_kcontrol_new ext_ec_ref_mux_ul19 =
  5253. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL19 MUX Mux",
  5254. msm_route_ec_ref_rx_enum[0],
  5255. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5256. static const struct snd_kcontrol_new ext_ec_ref_mux_ul28 =
  5257. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL28 MUX Mux",
  5258. msm_route_ec_ref_rx_enum[0],
  5259. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5260. static const struct snd_kcontrol_new ext_ec_ref_mux_ul29 =
  5261. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL29 MUX Mux",
  5262. msm_route_ec_ref_rx_enum[0],
  5263. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5264. static int msm_routing_ext_ec_get(struct snd_kcontrol *kcontrol,
  5265. struct snd_ctl_elem_value *ucontrol)
  5266. {
  5267. pr_debug("%s: ext_ec_ref_rx = %x\n", __func__, msm_route_ext_ec_ref);
  5268. mutex_lock(&routing_lock);
  5269. ucontrol->value.integer.value[0] = msm_route_ext_ec_ref;
  5270. mutex_unlock(&routing_lock);
  5271. return 0;
  5272. }
  5273. static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
  5274. struct snd_ctl_elem_value *ucontrol)
  5275. {
  5276. struct snd_soc_dapm_widget *widget =
  5277. snd_soc_dapm_kcontrol_widget(kcontrol);
  5278. int mux = ucontrol->value.enumerated.item[0];
  5279. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  5280. int ret = 1;
  5281. bool state = true;
  5282. uint16_t ext_ec_ref_port_id;
  5283. struct snd_soc_dapm_update *update = NULL;
  5284. if (mux >= e->items) {
  5285. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  5286. return -EINVAL;
  5287. }
  5288. mutex_lock(&routing_lock);
  5289. msm_route_ext_ec_ref = ucontrol->value.integer.value[0];
  5290. switch (msm_route_ext_ec_ref) {
  5291. case EXT_EC_REF_PRI_MI2S_TX:
  5292. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  5293. break;
  5294. case EXT_EC_REF_SEC_MI2S_TX:
  5295. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  5296. break;
  5297. case EXT_EC_REF_TERT_MI2S_TX:
  5298. ext_ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  5299. break;
  5300. case EXT_EC_REF_QUAT_MI2S_TX:
  5301. ext_ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  5302. break;
  5303. case EXT_EC_REF_QUIN_MI2S_TX:
  5304. ext_ec_ref_port_id = AFE_PORT_ID_QUINARY_MI2S_TX;
  5305. break;
  5306. case EXT_EC_REF_SLIM_1_TX:
  5307. ext_ec_ref_port_id = SLIMBUS_1_TX;
  5308. break;
  5309. case EXT_EC_REF_PRI_TDM_TX:
  5310. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_TDM_TX;
  5311. break;
  5312. case EXT_EC_REF_SEC_TDM_TX:
  5313. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  5314. break;
  5315. case EXT_EC_REF_NONE:
  5316. default:
  5317. ext_ec_ref_port_id = AFE_PORT_INVALID;
  5318. state = false;
  5319. break;
  5320. }
  5321. pr_debug("%s: val = %d ext_ec_ref_port_id = 0x%0x state = %d\n",
  5322. __func__, msm_route_ext_ec_ref, ext_ec_ref_port_id, state);
  5323. if (!voc_set_ext_ec_ref_port_id(ext_ec_ref_port_id, state)) {
  5324. mutex_unlock(&routing_lock);
  5325. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e,
  5326. update);
  5327. } else {
  5328. ret = -EINVAL;
  5329. mutex_unlock(&routing_lock);
  5330. }
  5331. return ret;
  5332. }
  5333. static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
  5334. "SEC_MI2S_TX", "TERT_MI2S_TX",
  5335. "QUAT_MI2S_TX", "QUIN_MI2S_TX",
  5336. "SLIM_1_TX", "PRI_TDM_TX",
  5337. "SEC_TDM_TX", "SENARY_MI2S_TX"};
  5338. static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
  5339. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ext_ec_ref_rx), ext_ec_ref_rx),
  5340. };
  5341. static const struct snd_kcontrol_new voc_ext_ec_mux =
  5342. SOC_DAPM_ENUM_EXT("VOC_EXT_EC MUX Mux", msm_route_ext_ec_ref_rx_enum[0],
  5343. msm_routing_ext_ec_get, msm_routing_ext_ec_put);
  5344. static const struct snd_kcontrol_new pri_i2s_rx_mixer_controls[] = {
  5345. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5346. MSM_BACKEND_DAI_PRI_I2S_RX,
  5347. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5348. msm_routing_put_audio_mixer),
  5349. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5350. MSM_BACKEND_DAI_PRI_I2S_RX,
  5351. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5352. msm_routing_put_audio_mixer),
  5353. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5354. MSM_BACKEND_DAI_PRI_I2S_RX,
  5355. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5356. msm_routing_put_audio_mixer),
  5357. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5358. MSM_BACKEND_DAI_PRI_I2S_RX,
  5359. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5360. msm_routing_put_audio_mixer),
  5361. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5362. MSM_BACKEND_DAI_PRI_I2S_RX,
  5363. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5364. msm_routing_put_audio_mixer),
  5365. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5366. MSM_BACKEND_DAI_PRI_I2S_RX,
  5367. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5368. msm_routing_put_audio_mixer),
  5369. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5370. MSM_BACKEND_DAI_PRI_I2S_RX,
  5371. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5372. msm_routing_put_audio_mixer),
  5373. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5374. MSM_BACKEND_DAI_PRI_I2S_RX,
  5375. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5376. msm_routing_put_audio_mixer),
  5377. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5378. MSM_BACKEND_DAI_PRI_I2S_RX,
  5379. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5380. msm_routing_put_audio_mixer),
  5381. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5382. MSM_BACKEND_DAI_PRI_I2S_RX,
  5383. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5384. msm_routing_put_audio_mixer),
  5385. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5386. MSM_BACKEND_DAI_PRI_I2S_RX,
  5387. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5388. msm_routing_put_audio_mixer),
  5389. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5390. MSM_BACKEND_DAI_PRI_I2S_RX,
  5391. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5392. msm_routing_put_audio_mixer),
  5393. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5394. MSM_BACKEND_DAI_PRI_I2S_RX,
  5395. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5396. msm_routing_put_audio_mixer),
  5397. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5398. MSM_BACKEND_DAI_PRI_I2S_RX,
  5399. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5400. msm_routing_put_audio_mixer),
  5401. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5402. MSM_BACKEND_DAI_PRI_I2S_RX,
  5403. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5404. msm_routing_put_audio_mixer),
  5405. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5406. MSM_BACKEND_DAI_PRI_I2S_RX,
  5407. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5408. msm_routing_put_audio_mixer),
  5409. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5410. MSM_BACKEND_DAI_PRI_I2S_RX,
  5411. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5412. msm_routing_put_audio_mixer),
  5413. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5414. MSM_BACKEND_DAI_PRI_I2S_RX,
  5415. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5416. msm_routing_put_audio_mixer),
  5417. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5418. MSM_BACKEND_DAI_PRI_I2S_RX,
  5419. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5420. msm_routing_put_audio_mixer),
  5421. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5422. MSM_BACKEND_DAI_PRI_I2S_RX,
  5423. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5424. msm_routing_put_audio_mixer),
  5425. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5426. MSM_BACKEND_DAI_PRI_I2S_RX,
  5427. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5428. msm_routing_put_audio_mixer),
  5429. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5430. MSM_BACKEND_DAI_PRI_I2S_RX,
  5431. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5432. msm_routing_put_audio_mixer),
  5433. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5434. MSM_BACKEND_DAI_PRI_I2S_RX,
  5435. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5436. msm_routing_put_audio_mixer),
  5437. };
  5438. static const struct snd_kcontrol_new sec_i2s_rx_mixer_controls[] = {
  5439. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5440. MSM_BACKEND_DAI_SEC_I2S_RX,
  5441. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5442. msm_routing_put_audio_mixer),
  5443. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5444. MSM_BACKEND_DAI_SEC_I2S_RX,
  5445. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5446. msm_routing_put_audio_mixer),
  5447. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5448. MSM_BACKEND_DAI_SEC_I2S_RX,
  5449. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5450. msm_routing_put_audio_mixer),
  5451. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5452. MSM_BACKEND_DAI_SEC_I2S_RX,
  5453. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5454. msm_routing_put_audio_mixer),
  5455. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5456. MSM_BACKEND_DAI_SEC_I2S_RX,
  5457. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5458. msm_routing_put_audio_mixer),
  5459. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5460. MSM_BACKEND_DAI_SEC_I2S_RX,
  5461. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5462. msm_routing_put_audio_mixer),
  5463. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5464. MSM_BACKEND_DAI_SEC_I2S_RX,
  5465. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5466. msm_routing_put_audio_mixer),
  5467. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5468. MSM_BACKEND_DAI_SEC_I2S_RX,
  5469. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5470. msm_routing_put_audio_mixer),
  5471. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5472. MSM_BACKEND_DAI_SEC_I2S_RX,
  5473. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5474. msm_routing_put_audio_mixer),
  5475. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5476. MSM_BACKEND_DAI_SEC_I2S_RX,
  5477. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5478. msm_routing_put_audio_mixer),
  5479. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5480. MSM_BACKEND_DAI_SEC_I2S_RX,
  5481. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5482. msm_routing_put_audio_mixer),
  5483. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5484. MSM_BACKEND_DAI_SEC_I2S_RX,
  5485. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5486. msm_routing_put_audio_mixer),
  5487. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5488. MSM_BACKEND_DAI_SEC_I2S_RX,
  5489. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5490. msm_routing_put_audio_mixer),
  5491. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5492. MSM_BACKEND_DAI_SEC_I2S_RX,
  5493. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5494. msm_routing_put_audio_mixer),
  5495. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5496. MSM_BACKEND_DAI_SEC_I2S_RX,
  5497. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5498. msm_routing_put_audio_mixer),
  5499. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5500. MSM_BACKEND_DAI_SEC_I2S_RX,
  5501. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5502. msm_routing_put_audio_mixer),
  5503. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5504. MSM_BACKEND_DAI_SEC_I2S_RX,
  5505. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5506. msm_routing_put_audio_mixer),
  5507. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5508. MSM_BACKEND_DAI_SEC_I2S_RX,
  5509. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5510. msm_routing_put_audio_mixer),
  5511. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5512. MSM_BACKEND_DAI_SEC_I2S_RX,
  5513. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5514. msm_routing_put_audio_mixer),
  5515. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5516. MSM_BACKEND_DAI_SEC_I2S_RX,
  5517. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5518. msm_routing_put_audio_mixer),
  5519. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5520. MSM_BACKEND_DAI_SEC_I2S_RX,
  5521. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5522. msm_routing_put_audio_mixer),
  5523. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5524. MSM_BACKEND_DAI_SEC_I2S_RX,
  5525. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5526. msm_routing_put_audio_mixer),
  5527. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5528. MSM_BACKEND_DAI_SEC_I2S_RX,
  5529. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5530. msm_routing_put_audio_mixer),
  5531. };
  5532. static const struct snd_kcontrol_new pri_spdif_rx_mixer_controls[] = {
  5533. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5534. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5535. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5536. msm_routing_put_audio_mixer),
  5537. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5538. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5539. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5540. msm_routing_put_audio_mixer),
  5541. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5542. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5543. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5544. msm_routing_put_audio_mixer),
  5545. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5546. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5547. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5548. msm_routing_put_audio_mixer),
  5549. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5550. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5551. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5552. msm_routing_put_audio_mixer),
  5553. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5554. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5555. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5556. msm_routing_put_audio_mixer),
  5557. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5558. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5559. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5560. msm_routing_put_audio_mixer),
  5561. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5562. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5563. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5564. msm_routing_put_audio_mixer),
  5565. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5566. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5567. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5568. msm_routing_put_audio_mixer),
  5569. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5570. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5571. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5572. msm_routing_put_audio_mixer),
  5573. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5574. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5575. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5576. msm_routing_put_audio_mixer),
  5577. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5578. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5579. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5580. msm_routing_put_audio_mixer),
  5581. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5582. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5583. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5584. msm_routing_put_audio_mixer),
  5585. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5586. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5587. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5588. msm_routing_put_audio_mixer),
  5589. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5590. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5591. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5592. msm_routing_put_audio_mixer),
  5593. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5594. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5595. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5596. msm_routing_put_audio_mixer),
  5597. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5598. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5599. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5600. msm_routing_put_audio_mixer),
  5601. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5602. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5603. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5604. msm_routing_put_audio_mixer),
  5605. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5606. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5607. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5608. msm_routing_put_audio_mixer),
  5609. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5610. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5611. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5612. msm_routing_put_audio_mixer),
  5613. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5614. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5615. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5616. msm_routing_put_audio_mixer),
  5617. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5618. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5619. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5620. msm_routing_put_audio_mixer),
  5621. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5622. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5623. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5624. msm_routing_put_audio_mixer),
  5625. };
  5626. static const struct snd_kcontrol_new sec_spdif_rx_mixer_controls[] = {
  5627. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5628. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5629. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5630. msm_routing_put_audio_mixer),
  5631. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5632. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5633. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5634. msm_routing_put_audio_mixer),
  5635. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5636. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5637. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5638. msm_routing_put_audio_mixer),
  5639. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5640. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5641. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5642. msm_routing_put_audio_mixer),
  5643. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5644. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5645. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5646. msm_routing_put_audio_mixer),
  5647. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5648. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5649. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5650. msm_routing_put_audio_mixer),
  5651. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5652. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5653. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5654. msm_routing_put_audio_mixer),
  5655. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5656. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5657. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5658. msm_routing_put_audio_mixer),
  5659. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5660. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5661. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5662. msm_routing_put_audio_mixer),
  5663. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5664. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5665. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5666. msm_routing_put_audio_mixer),
  5667. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5668. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5669. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5670. msm_routing_put_audio_mixer),
  5671. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5672. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5673. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5674. msm_routing_put_audio_mixer),
  5675. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5676. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5677. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5678. msm_routing_put_audio_mixer),
  5679. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5680. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5681. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5682. msm_routing_put_audio_mixer),
  5683. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5684. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5685. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5686. msm_routing_put_audio_mixer),
  5687. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5688. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5689. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5690. msm_routing_put_audio_mixer),
  5691. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5692. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5693. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5694. msm_routing_put_audio_mixer),
  5695. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5696. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5697. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5698. msm_routing_put_audio_mixer),
  5699. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5700. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5701. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5702. msm_routing_put_audio_mixer),
  5703. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5704. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5705. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5706. msm_routing_put_audio_mixer),
  5707. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5708. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5709. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5710. msm_routing_put_audio_mixer),
  5711. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5712. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5713. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5714. msm_routing_put_audio_mixer),
  5715. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5716. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5717. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5718. msm_routing_put_audio_mixer),
  5719. };
  5720. static const struct snd_kcontrol_new slimbus_2_rx_mixer_controls[] = {
  5721. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5722. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5723. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5724. msm_routing_put_audio_mixer),
  5725. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5726. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5727. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5728. msm_routing_put_audio_mixer),
  5729. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5730. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5731. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5732. msm_routing_put_audio_mixer),
  5733. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5734. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5735. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5736. msm_routing_put_audio_mixer),
  5737. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5738. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5739. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5740. msm_routing_put_audio_mixer),
  5741. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5742. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5743. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5744. msm_routing_put_audio_mixer),
  5745. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5746. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5747. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5748. msm_routing_put_audio_mixer),
  5749. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5750. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5751. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5752. msm_routing_put_audio_mixer),
  5753. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5754. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5755. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5756. msm_routing_put_audio_mixer),
  5757. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5758. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5759. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5760. msm_routing_put_audio_mixer),
  5761. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5762. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5763. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5764. msm_routing_put_audio_mixer),
  5765. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5766. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5767. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5768. msm_routing_put_audio_mixer),
  5769. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5770. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5771. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5772. msm_routing_put_audio_mixer),
  5773. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5774. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5775. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5776. msm_routing_put_audio_mixer),
  5777. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5778. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5779. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5780. msm_routing_put_audio_mixer),
  5781. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5782. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5783. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5784. msm_routing_put_audio_mixer),
  5785. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5786. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5787. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5788. msm_routing_put_audio_mixer),
  5789. };
  5790. static const struct snd_kcontrol_new slimbus_5_rx_mixer_controls[] = {
  5791. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5792. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5793. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5794. msm_routing_put_audio_mixer),
  5795. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5796. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5797. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5798. msm_routing_put_audio_mixer),
  5799. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5800. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5801. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5802. msm_routing_put_audio_mixer),
  5803. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5804. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5805. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5806. msm_routing_put_audio_mixer),
  5807. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5808. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5809. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5810. msm_routing_put_audio_mixer),
  5811. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5812. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5813. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5814. msm_routing_put_audio_mixer),
  5815. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5816. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5817. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5818. msm_routing_put_audio_mixer),
  5819. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5820. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5821. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5822. msm_routing_put_audio_mixer),
  5823. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5824. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5825. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5826. msm_routing_put_audio_mixer),
  5827. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5828. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5829. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5830. msm_routing_put_audio_mixer),
  5831. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5832. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5833. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5834. msm_routing_put_audio_mixer),
  5835. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5836. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5837. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5838. msm_routing_put_audio_mixer),
  5839. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5840. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5841. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5842. msm_routing_put_audio_mixer),
  5843. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5844. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5845. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5846. msm_routing_put_audio_mixer),
  5847. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5848. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5849. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5850. msm_routing_put_audio_mixer),
  5851. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5852. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5853. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5854. msm_routing_put_audio_mixer),
  5855. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5856. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5857. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5858. msm_routing_put_audio_mixer),
  5859. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5860. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5861. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5862. msm_routing_put_audio_mixer),
  5863. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5864. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5865. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5866. msm_routing_put_audio_mixer),
  5867. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5868. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5869. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5870. msm_routing_put_audio_mixer),
  5871. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5872. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5873. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5874. msm_routing_put_audio_mixer),
  5875. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5876. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5877. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5878. msm_routing_put_audio_mixer),
  5879. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5880. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5881. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5882. msm_routing_put_audio_mixer),
  5883. };
  5884. static const struct snd_kcontrol_new slimbus_rx_mixer_controls[] = {
  5885. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5886. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5887. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5888. msm_routing_put_audio_mixer),
  5889. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5890. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5891. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5892. msm_routing_put_audio_mixer),
  5893. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5894. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5895. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5896. msm_routing_put_audio_mixer),
  5897. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5898. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5899. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5900. msm_routing_put_audio_mixer),
  5901. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5902. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5903. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5904. msm_routing_put_audio_mixer),
  5905. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5906. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5907. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5908. msm_routing_put_audio_mixer),
  5909. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5910. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5911. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5912. msm_routing_put_audio_mixer),
  5913. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5914. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5915. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5916. msm_routing_put_audio_mixer),
  5917. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5918. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5919. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5920. msm_routing_put_audio_mixer),
  5921. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5922. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5923. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5924. msm_routing_put_audio_mixer),
  5925. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5926. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5927. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5928. msm_routing_put_audio_mixer),
  5929. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5930. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5931. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5932. msm_routing_put_audio_mixer),
  5933. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5934. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5935. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5936. msm_routing_put_audio_mixer),
  5937. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5938. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5939. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5940. msm_routing_put_audio_mixer),
  5941. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5942. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5943. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5944. msm_routing_put_audio_mixer),
  5945. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5946. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5947. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5948. msm_routing_put_audio_mixer),
  5949. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5950. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5951. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5952. msm_routing_put_audio_mixer),
  5953. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5954. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5955. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5956. msm_routing_put_audio_mixer),
  5957. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5958. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5959. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5960. msm_routing_put_audio_mixer),
  5961. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5962. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5963. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5964. msm_routing_put_audio_mixer),
  5965. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5966. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5967. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5968. msm_routing_put_audio_mixer),
  5969. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5970. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5971. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5972. msm_routing_put_audio_mixer),
  5973. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5974. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5975. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5976. msm_routing_put_audio_mixer),
  5977. };
  5978. static const struct snd_kcontrol_new mi2s_rx_mixer_controls[] = {
  5979. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5980. MSM_BACKEND_DAI_MI2S_RX,
  5981. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5982. msm_routing_put_audio_mixer),
  5983. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5984. MSM_BACKEND_DAI_MI2S_RX,
  5985. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5986. msm_routing_put_audio_mixer),
  5987. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5988. MSM_BACKEND_DAI_MI2S_RX,
  5989. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5990. msm_routing_put_audio_mixer),
  5991. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5992. MSM_BACKEND_DAI_MI2S_RX,
  5993. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5994. msm_routing_put_audio_mixer),
  5995. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5996. MSM_BACKEND_DAI_MI2S_RX,
  5997. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5998. msm_routing_put_audio_mixer),
  5999. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6000. MSM_BACKEND_DAI_MI2S_RX,
  6001. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6002. msm_routing_put_audio_mixer),
  6003. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6004. MSM_BACKEND_DAI_MI2S_RX,
  6005. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6006. msm_routing_put_audio_mixer),
  6007. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6008. MSM_BACKEND_DAI_MI2S_RX,
  6009. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6010. msm_routing_put_audio_mixer),
  6011. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6012. MSM_BACKEND_DAI_MI2S_RX,
  6013. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6014. msm_routing_put_audio_mixer),
  6015. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6016. MSM_BACKEND_DAI_MI2S_RX,
  6017. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6018. msm_routing_put_audio_mixer),
  6019. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6020. MSM_BACKEND_DAI_MI2S_RX,
  6021. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6022. msm_routing_put_audio_mixer),
  6023. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6024. MSM_BACKEND_DAI_MI2S_RX,
  6025. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6026. msm_routing_put_audio_mixer),
  6027. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6028. MSM_BACKEND_DAI_MI2S_RX,
  6029. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6030. msm_routing_put_audio_mixer),
  6031. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6032. MSM_BACKEND_DAI_MI2S_RX,
  6033. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6034. msm_routing_put_audio_mixer),
  6035. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6036. MSM_BACKEND_DAI_MI2S_RX,
  6037. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6038. msm_routing_put_audio_mixer),
  6039. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6040. MSM_BACKEND_DAI_MI2S_RX,
  6041. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6042. msm_routing_put_audio_mixer),
  6043. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6044. MSM_BACKEND_DAI_MI2S_RX,
  6045. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6046. msm_routing_put_audio_mixer),
  6047. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6048. MSM_BACKEND_DAI_MI2S_RX,
  6049. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6050. msm_routing_put_audio_mixer),
  6051. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6052. MSM_BACKEND_DAI_MI2S_RX,
  6053. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6054. msm_routing_put_audio_mixer),
  6055. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6056. MSM_BACKEND_DAI_MI2S_RX,
  6057. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6058. msm_routing_put_audio_mixer),
  6059. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6060. MSM_BACKEND_DAI_MI2S_RX,
  6061. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6062. msm_routing_put_audio_mixer),
  6063. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6064. MSM_BACKEND_DAI_MI2S_RX,
  6065. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6066. msm_routing_put_audio_mixer),
  6067. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6068. MSM_BACKEND_DAI_MI2S_RX,
  6069. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6070. msm_routing_put_audio_mixer),
  6071. };
  6072. static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
  6073. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6074. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6075. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6076. msm_routing_put_audio_mixer),
  6077. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6078. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6079. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6080. msm_routing_put_audio_mixer),
  6081. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6082. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6083. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6084. msm_routing_put_audio_mixer),
  6085. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6086. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6087. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6088. msm_routing_put_audio_mixer),
  6089. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6090. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6091. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6092. msm_routing_put_audio_mixer),
  6093. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6094. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6095. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6096. msm_routing_put_audio_mixer),
  6097. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6098. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6099. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6100. msm_routing_put_audio_mixer),
  6101. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6102. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6103. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6104. msm_routing_put_audio_mixer),
  6105. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6106. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6107. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6108. msm_routing_put_audio_mixer),
  6109. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6110. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6111. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6112. msm_routing_put_audio_mixer),
  6113. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6114. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6115. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6116. msm_routing_put_audio_mixer),
  6117. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6118. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6119. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6120. msm_routing_put_audio_mixer),
  6121. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6122. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6123. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6124. msm_routing_put_audio_mixer),
  6125. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6126. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6127. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6128. msm_routing_put_audio_mixer),
  6129. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6130. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6131. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6132. msm_routing_put_audio_mixer),
  6133. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6134. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6135. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6136. msm_routing_put_audio_mixer),
  6137. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6138. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6139. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6140. msm_routing_put_audio_mixer),
  6141. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6142. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6143. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6144. msm_routing_put_audio_mixer),
  6145. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6146. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6147. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6148. msm_routing_put_audio_mixer),
  6149. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  6150. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6151. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  6152. msm_routing_put_audio_mixer),
  6153. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6154. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6155. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6156. msm_routing_put_audio_mixer),
  6157. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6158. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6159. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6160. msm_routing_put_audio_mixer),
  6161. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6162. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6163. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6164. msm_routing_put_audio_mixer),
  6165. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6166. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6167. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6168. msm_routing_put_audio_mixer),
  6169. };
  6170. static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
  6171. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6172. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6173. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6174. msm_routing_put_audio_mixer),
  6175. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6176. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6177. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6178. msm_routing_put_audio_mixer),
  6179. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6180. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6181. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6182. msm_routing_put_audio_mixer),
  6183. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6184. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6185. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6186. msm_routing_put_audio_mixer),
  6187. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6188. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6189. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6190. msm_routing_put_audio_mixer),
  6191. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6192. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6193. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6194. msm_routing_put_audio_mixer),
  6195. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6196. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6197. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6198. msm_routing_put_audio_mixer),
  6199. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6200. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6201. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6202. msm_routing_put_audio_mixer),
  6203. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6204. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6205. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6206. msm_routing_put_audio_mixer),
  6207. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6208. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6209. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6210. msm_routing_put_audio_mixer),
  6211. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6212. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6213. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6214. msm_routing_put_audio_mixer),
  6215. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6216. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6217. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6218. msm_routing_put_audio_mixer),
  6219. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6220. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6221. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6222. msm_routing_put_audio_mixer),
  6223. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6224. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6225. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6226. msm_routing_put_audio_mixer),
  6227. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6228. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6229. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6230. msm_routing_put_audio_mixer),
  6231. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6232. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6233. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6234. msm_routing_put_audio_mixer),
  6235. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6236. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6237. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6238. msm_routing_put_audio_mixer),
  6239. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6240. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6241. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6242. msm_routing_put_audio_mixer),
  6243. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6244. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6245. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6246. msm_routing_put_audio_mixer),
  6247. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6248. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6249. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6250. msm_routing_put_audio_mixer),
  6251. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6252. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6253. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6254. msm_routing_put_audio_mixer),
  6255. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6256. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6257. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6258. msm_routing_put_audio_mixer),
  6259. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6260. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6261. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6262. msm_routing_put_audio_mixer),
  6263. };
  6264. static const struct snd_kcontrol_new senary_mi2s_rx_mixer_controls[] = {
  6265. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6266. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6267. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6268. msm_routing_put_audio_mixer),
  6269. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6270. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6271. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6272. msm_routing_put_audio_mixer),
  6273. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6274. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6275. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6276. msm_routing_put_audio_mixer),
  6277. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6278. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6279. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6280. msm_routing_put_audio_mixer),
  6281. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6282. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6283. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6284. msm_routing_put_audio_mixer),
  6285. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6286. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6287. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6288. msm_routing_put_audio_mixer),
  6289. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6290. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6291. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6292. msm_routing_put_audio_mixer),
  6293. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6294. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6295. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6296. msm_routing_put_audio_mixer),
  6297. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6298. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6299. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6300. msm_routing_put_audio_mixer),
  6301. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6302. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6303. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6304. msm_routing_put_audio_mixer),
  6305. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6306. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6307. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6308. msm_routing_put_audio_mixer),
  6309. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6310. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6311. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6312. msm_routing_put_audio_mixer),
  6313. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6314. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6315. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6316. msm_routing_put_audio_mixer),
  6317. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6318. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6319. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6320. msm_routing_put_audio_mixer),
  6321. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6322. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6323. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6324. msm_routing_put_audio_mixer),
  6325. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6326. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6327. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6328. msm_routing_put_audio_mixer),
  6329. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6330. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6331. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6332. msm_routing_put_audio_mixer),
  6333. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6334. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6335. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6336. msm_routing_put_audio_mixer),
  6337. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6338. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6339. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6340. msm_routing_put_audio_mixer),
  6341. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6342. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6343. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6344. msm_routing_put_audio_mixer),
  6345. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6346. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6347. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6348. msm_routing_put_audio_mixer),
  6349. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6350. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6351. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6352. msm_routing_put_audio_mixer),
  6353. };
  6354. static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
  6355. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6356. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6357. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6358. msm_routing_put_audio_mixer),
  6359. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6360. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6361. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6362. msm_routing_put_audio_mixer),
  6363. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6364. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6365. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6366. msm_routing_put_audio_mixer),
  6367. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6368. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6369. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6370. msm_routing_put_audio_mixer),
  6371. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6372. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6373. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6374. msm_routing_put_audio_mixer),
  6375. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6376. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6377. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6378. msm_routing_put_audio_mixer),
  6379. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6380. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6381. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6382. msm_routing_put_audio_mixer),
  6383. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6384. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6385. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6386. msm_routing_put_audio_mixer),
  6387. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6388. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6389. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6390. msm_routing_put_audio_mixer),
  6391. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6392. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6393. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6394. msm_routing_put_audio_mixer),
  6395. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6396. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6397. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6398. msm_routing_put_audio_mixer),
  6399. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6400. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6401. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6402. msm_routing_put_audio_mixer),
  6403. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6404. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6405. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6406. msm_routing_put_audio_mixer),
  6407. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6408. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6409. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6410. msm_routing_put_audio_mixer),
  6411. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6412. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6413. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6414. msm_routing_put_audio_mixer),
  6415. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6416. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6417. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6418. msm_routing_put_audio_mixer),
  6419. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6420. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6421. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6422. msm_routing_put_audio_mixer),
  6423. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6424. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6425. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6426. msm_routing_put_audio_mixer),
  6427. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6428. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6429. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6430. msm_routing_put_audio_mixer),
  6431. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6432. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6433. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6434. msm_routing_put_audio_mixer),
  6435. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6436. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6437. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6438. msm_routing_put_audio_mixer),
  6439. };
  6440. static const struct snd_kcontrol_new secondary_mi2s_rx2_mixer_controls[] = {
  6441. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6442. MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
  6443. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6444. msm_routing_put_audio_mixer),
  6445. };
  6446. static const struct snd_kcontrol_new secondary_mi2s_rx_mixer_controls[] = {
  6447. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6448. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6449. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6450. msm_routing_put_audio_mixer),
  6451. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6452. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6453. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6454. msm_routing_put_audio_mixer),
  6455. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6456. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6457. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6458. msm_routing_put_audio_mixer),
  6459. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6460. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6461. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6462. msm_routing_put_audio_mixer),
  6463. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6464. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6465. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6466. msm_routing_put_audio_mixer),
  6467. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6468. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6469. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6470. msm_routing_put_audio_mixer),
  6471. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6472. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6473. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6474. msm_routing_put_audio_mixer),
  6475. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6476. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6477. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6478. msm_routing_put_audio_mixer),
  6479. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6480. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6481. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6482. msm_routing_put_audio_mixer),
  6483. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6484. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6485. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6486. msm_routing_put_audio_mixer),
  6487. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6488. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6489. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6490. msm_routing_put_audio_mixer),
  6491. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6492. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6493. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6494. msm_routing_put_audio_mixer),
  6495. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6496. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6497. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6498. msm_routing_put_audio_mixer),
  6499. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6500. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6501. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6502. msm_routing_put_audio_mixer),
  6503. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6504. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6505. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6506. msm_routing_put_audio_mixer),
  6507. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6508. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6509. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6510. msm_routing_put_audio_mixer),
  6511. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6512. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6513. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6514. msm_routing_put_audio_mixer),
  6515. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6516. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6517. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6518. msm_routing_put_audio_mixer),
  6519. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6520. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6521. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6522. msm_routing_put_audio_mixer),
  6523. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6524. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6525. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6526. msm_routing_put_audio_mixer),
  6527. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6528. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6529. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6530. msm_routing_put_audio_mixer),
  6531. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6532. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6533. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6534. msm_routing_put_audio_mixer),
  6535. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6536. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6537. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6538. msm_routing_put_audio_mixer),
  6539. };
  6540. static const struct snd_kcontrol_new primary_mi2s_rx_mixer_controls[] = {
  6541. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6542. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6543. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6544. msm_routing_put_audio_mixer),
  6545. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6546. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6547. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6548. msm_routing_put_audio_mixer),
  6549. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6550. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6551. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6552. msm_routing_put_audio_mixer),
  6553. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6554. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6555. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6556. msm_routing_put_audio_mixer),
  6557. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6558. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6559. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6560. msm_routing_put_audio_mixer),
  6561. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6562. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6563. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6564. msm_routing_put_audio_mixer),
  6565. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6566. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6567. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6568. msm_routing_put_audio_mixer),
  6569. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6570. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6571. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6572. msm_routing_put_audio_mixer),
  6573. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6574. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6575. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6576. msm_routing_put_audio_mixer),
  6577. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6578. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6579. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6580. msm_routing_put_audio_mixer),
  6581. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6582. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6583. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6584. msm_routing_put_audio_mixer),
  6585. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6586. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6587. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6588. msm_routing_put_audio_mixer),
  6589. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6590. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6591. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6592. msm_routing_put_audio_mixer),
  6593. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6594. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6595. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6596. msm_routing_put_audio_mixer),
  6597. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6598. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6599. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6600. msm_routing_put_audio_mixer),
  6601. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6602. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6603. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6604. msm_routing_put_audio_mixer),
  6605. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6606. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6607. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6608. msm_routing_put_audio_mixer),
  6609. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6610. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6611. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6612. msm_routing_put_audio_mixer),
  6613. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6614. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6615. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6616. msm_routing_put_audio_mixer),
  6617. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6618. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6619. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6620. msm_routing_put_audio_mixer),
  6621. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6622. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6623. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6624. msm_routing_put_audio_mixer),
  6625. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6626. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6627. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6628. msm_routing_put_audio_mixer),
  6629. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6630. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6631. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6632. msm_routing_put_audio_mixer),
  6633. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  6634. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6635. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_audio_mixer,
  6636. msm_routing_put_audio_mixer),
  6637. };
  6638. static const struct snd_kcontrol_new int0_mi2s_rx_mixer_controls[] = {
  6639. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6640. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6641. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6642. msm_routing_put_audio_mixer),
  6643. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6644. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6645. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6646. msm_routing_put_audio_mixer),
  6647. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6648. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6649. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6650. msm_routing_put_audio_mixer),
  6651. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6652. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6653. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6654. msm_routing_put_audio_mixer),
  6655. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6656. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6657. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6658. msm_routing_put_audio_mixer),
  6659. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6660. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6661. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6662. msm_routing_put_audio_mixer),
  6663. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6664. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6665. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6666. msm_routing_put_audio_mixer),
  6667. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6668. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6669. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6670. msm_routing_put_audio_mixer),
  6671. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6672. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6673. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6674. msm_routing_put_audio_mixer),
  6675. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6676. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6677. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6678. msm_routing_put_audio_mixer),
  6679. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6680. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6681. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6682. msm_routing_put_audio_mixer),
  6683. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6684. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6685. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6686. msm_routing_put_audio_mixer),
  6687. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6688. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6689. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6690. msm_routing_put_audio_mixer),
  6691. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6692. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6693. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6694. msm_routing_put_audio_mixer),
  6695. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6696. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6697. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6698. msm_routing_put_audio_mixer),
  6699. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6700. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6701. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6702. msm_routing_put_audio_mixer),
  6703. };
  6704. static const struct snd_kcontrol_new int4_mi2s_rx_mixer_controls[] = {
  6705. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6706. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6707. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6708. msm_routing_put_audio_mixer),
  6709. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6710. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6711. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6712. msm_routing_put_audio_mixer),
  6713. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6714. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6715. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6716. msm_routing_put_audio_mixer),
  6717. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6718. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6719. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6720. msm_routing_put_audio_mixer),
  6721. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6722. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6723. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6724. msm_routing_put_audio_mixer),
  6725. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6726. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6727. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6728. msm_routing_put_audio_mixer),
  6729. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6730. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6731. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6732. msm_routing_put_audio_mixer),
  6733. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6734. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6735. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6736. msm_routing_put_audio_mixer),
  6737. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6738. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6739. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6740. msm_routing_put_audio_mixer),
  6741. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6742. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6743. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6744. msm_routing_put_audio_mixer),
  6745. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6746. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6747. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6748. msm_routing_put_audio_mixer),
  6749. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6750. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6751. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6752. msm_routing_put_audio_mixer),
  6753. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6754. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6755. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6756. msm_routing_put_audio_mixer),
  6757. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6758. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6759. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6760. msm_routing_put_audio_mixer),
  6761. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6762. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6763. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6764. msm_routing_put_audio_mixer),
  6765. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6766. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6767. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6768. msm_routing_put_audio_mixer),
  6769. };
  6770. static const struct snd_kcontrol_new pri_meta_mi2s_rx_mixer_controls[] = {
  6771. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6772. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6773. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6774. msm_routing_put_audio_mixer),
  6775. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6776. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6777. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6778. msm_routing_put_audio_mixer),
  6779. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6780. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6781. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6782. msm_routing_put_audio_mixer),
  6783. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6784. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6785. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6786. msm_routing_put_audio_mixer),
  6787. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6788. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6789. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6790. msm_routing_put_audio_mixer),
  6791. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6792. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6793. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6794. msm_routing_put_audio_mixer),
  6795. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6796. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6797. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6798. msm_routing_put_audio_mixer),
  6799. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6800. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6801. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6802. msm_routing_put_audio_mixer),
  6803. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6804. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6805. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6806. msm_routing_put_audio_mixer),
  6807. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6808. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6809. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6810. msm_routing_put_audio_mixer),
  6811. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6812. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6813. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6814. msm_routing_put_audio_mixer),
  6815. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6816. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6817. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6818. msm_routing_put_audio_mixer),
  6819. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6820. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6821. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6822. msm_routing_put_audio_mixer),
  6823. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6824. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6825. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6826. msm_routing_put_audio_mixer),
  6827. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6828. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6829. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6830. msm_routing_put_audio_mixer),
  6831. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6832. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6833. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6834. msm_routing_put_audio_mixer),
  6835. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6836. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6837. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6838. msm_routing_put_audio_mixer),
  6839. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6840. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6841. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6842. msm_routing_put_audio_mixer),
  6843. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6844. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6845. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6846. msm_routing_put_audio_mixer),
  6847. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6848. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6849. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6850. msm_routing_put_audio_mixer),
  6851. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6852. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6853. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6854. msm_routing_put_audio_mixer),
  6855. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6856. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6857. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6858. msm_routing_put_audio_mixer),
  6859. };
  6860. static const struct snd_kcontrol_new sec_meta_mi2s_rx_mixer_controls[] = {
  6861. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6862. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6863. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6864. msm_routing_put_audio_mixer),
  6865. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6866. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6867. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6868. msm_routing_put_audio_mixer),
  6869. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6870. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6871. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6872. msm_routing_put_audio_mixer),
  6873. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6874. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6875. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6876. msm_routing_put_audio_mixer),
  6877. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6878. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6879. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6880. msm_routing_put_audio_mixer),
  6881. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6882. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6883. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6884. msm_routing_put_audio_mixer),
  6885. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6886. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6887. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6888. msm_routing_put_audio_mixer),
  6889. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6890. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6891. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6892. msm_routing_put_audio_mixer),
  6893. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6894. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6895. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6896. msm_routing_put_audio_mixer),
  6897. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6898. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6899. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6900. msm_routing_put_audio_mixer),
  6901. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6902. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6903. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6904. msm_routing_put_audio_mixer),
  6905. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6906. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6907. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6908. msm_routing_put_audio_mixer),
  6909. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6910. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6911. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6912. msm_routing_put_audio_mixer),
  6913. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6914. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6915. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6916. msm_routing_put_audio_mixer),
  6917. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6918. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6919. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6920. msm_routing_put_audio_mixer),
  6921. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6922. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6923. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6924. msm_routing_put_audio_mixer),
  6925. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6926. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6927. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6928. msm_routing_put_audio_mixer),
  6929. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6930. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6931. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6932. msm_routing_put_audio_mixer),
  6933. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6934. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6935. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6936. msm_routing_put_audio_mixer),
  6937. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6938. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6939. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6940. msm_routing_put_audio_mixer),
  6941. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6942. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6943. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6944. msm_routing_put_audio_mixer),
  6945. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6946. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6947. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6948. msm_routing_put_audio_mixer),
  6949. };
  6950. static const struct snd_kcontrol_new hdmi_mixer_controls[] = {
  6951. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6952. MSM_BACKEND_DAI_HDMI_RX,
  6953. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6954. msm_routing_put_audio_mixer),
  6955. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6956. MSM_BACKEND_DAI_HDMI_RX,
  6957. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6958. msm_routing_put_audio_mixer),
  6959. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6960. MSM_BACKEND_DAI_HDMI_RX,
  6961. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6962. msm_routing_put_audio_mixer),
  6963. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6964. MSM_BACKEND_DAI_HDMI_RX,
  6965. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6966. msm_routing_put_audio_mixer),
  6967. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6968. MSM_BACKEND_DAI_HDMI_RX,
  6969. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6970. msm_routing_put_audio_mixer),
  6971. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6972. MSM_BACKEND_DAI_HDMI_RX,
  6973. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6974. msm_routing_put_audio_mixer),
  6975. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6976. MSM_BACKEND_DAI_HDMI_RX,
  6977. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6978. msm_routing_put_audio_mixer),
  6979. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6980. MSM_BACKEND_DAI_HDMI_RX,
  6981. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6982. msm_routing_put_audio_mixer),
  6983. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6984. MSM_BACKEND_DAI_HDMI_RX,
  6985. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6986. msm_routing_put_audio_mixer),
  6987. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6988. MSM_BACKEND_DAI_HDMI_RX,
  6989. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6990. msm_routing_put_audio_mixer),
  6991. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6992. MSM_BACKEND_DAI_HDMI_RX,
  6993. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6994. msm_routing_put_audio_mixer),
  6995. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6996. MSM_BACKEND_DAI_HDMI_RX,
  6997. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6998. msm_routing_put_audio_mixer),
  6999. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7000. MSM_BACKEND_DAI_HDMI_RX,
  7001. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7002. msm_routing_put_audio_mixer),
  7003. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7004. MSM_BACKEND_DAI_HDMI_RX,
  7005. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7006. msm_routing_put_audio_mixer),
  7007. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7008. MSM_BACKEND_DAI_HDMI_RX,
  7009. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7010. msm_routing_put_audio_mixer),
  7011. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7012. MSM_BACKEND_DAI_HDMI_RX,
  7013. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7014. msm_routing_put_audio_mixer),
  7015. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  7016. MSM_BACKEND_DAI_HDMI_RX,
  7017. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7018. msm_routing_put_audio_mixer),
  7019. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  7020. MSM_BACKEND_DAI_HDMI_RX,
  7021. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7022. msm_routing_put_audio_mixer),
  7023. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  7024. MSM_BACKEND_DAI_HDMI_RX,
  7025. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7026. msm_routing_put_audio_mixer),
  7027. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7028. MSM_BACKEND_DAI_HDMI_RX,
  7029. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7030. msm_routing_put_audio_mixer),
  7031. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  7032. MSM_BACKEND_DAI_HDMI_RX,
  7033. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  7034. msm_routing_put_audio_mixer),
  7035. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  7036. MSM_BACKEND_DAI_HDMI_RX,
  7037. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  7038. msm_routing_put_audio_mixer),
  7039. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  7040. MSM_BACKEND_DAI_HDMI_RX,
  7041. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  7042. msm_routing_put_audio_mixer),
  7043. };
  7044. static const struct snd_kcontrol_new display_port_mixer_controls[] = {
  7045. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7046. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7047. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7048. msm_routing_put_audio_mixer),
  7049. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7050. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7051. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7052. msm_routing_put_audio_mixer),
  7053. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7054. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7055. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7056. msm_routing_put_audio_mixer),
  7057. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7058. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7059. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7060. msm_routing_put_audio_mixer),
  7061. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7062. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7063. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7064. msm_routing_put_audio_mixer),
  7065. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7066. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7067. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7068. msm_routing_put_audio_mixer),
  7069. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7070. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7071. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7072. msm_routing_put_audio_mixer),
  7073. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7074. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7075. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7076. msm_routing_put_audio_mixer),
  7077. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7078. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7079. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7080. msm_routing_put_audio_mixer),
  7081. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7082. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7083. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7084. msm_routing_put_audio_mixer),
  7085. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7086. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7087. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7088. msm_routing_put_audio_mixer),
  7089. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7090. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7091. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7092. msm_routing_put_audio_mixer),
  7093. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7094. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7095. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7096. msm_routing_put_audio_mixer),
  7097. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7098. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7099. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7100. msm_routing_put_audio_mixer),
  7101. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7102. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7103. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7104. msm_routing_put_audio_mixer),
  7105. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7106. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7107. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7108. msm_routing_put_audio_mixer),
  7109. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7110. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7111. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7112. msm_routing_put_audio_mixer),
  7113. };
  7114. static const struct snd_kcontrol_new display_port1_mixer_controls[] = {
  7115. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7116. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7117. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7118. msm_routing_put_audio_mixer),
  7119. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7120. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7121. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7122. msm_routing_put_audio_mixer),
  7123. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7124. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7125. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7126. msm_routing_put_audio_mixer),
  7127. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7128. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7129. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7130. msm_routing_put_audio_mixer),
  7131. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7132. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7133. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7134. msm_routing_put_audio_mixer),
  7135. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7136. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7137. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7138. msm_routing_put_audio_mixer),
  7139. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7140. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7141. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7142. msm_routing_put_audio_mixer),
  7143. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7144. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7145. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7146. msm_routing_put_audio_mixer),
  7147. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7148. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7149. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7150. msm_routing_put_audio_mixer),
  7151. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7152. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7153. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7154. msm_routing_put_audio_mixer),
  7155. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7156. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7157. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7158. msm_routing_put_audio_mixer),
  7159. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7160. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7161. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7162. msm_routing_put_audio_mixer),
  7163. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7164. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7165. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7166. msm_routing_put_audio_mixer),
  7167. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7168. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7169. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7170. msm_routing_put_audio_mixer),
  7171. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7172. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7173. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7174. msm_routing_put_audio_mixer),
  7175. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7176. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7177. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7178. msm_routing_put_audio_mixer),
  7179. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7180. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7181. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7182. msm_routing_put_audio_mixer),
  7183. };
  7184. /* incall music delivery mixer */
  7185. static const struct snd_kcontrol_new incall_music_delivery_mixer_controls[] = {
  7186. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7187. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7188. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7189. msm_routing_put_audio_mixer),
  7190. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7191. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7192. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7193. msm_routing_put_audio_mixer),
  7194. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7195. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7196. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7197. msm_routing_put_audio_mixer),
  7198. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7199. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7200. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7201. msm_routing_put_audio_mixer),
  7202. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7203. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7204. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7205. msm_routing_put_audio_mixer),
  7206. };
  7207. static const struct snd_kcontrol_new incall_music2_delivery_mixer_controls[] = {
  7208. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7209. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7210. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7211. msm_routing_put_audio_mixer),
  7212. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7213. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7214. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7215. msm_routing_put_audio_mixer),
  7216. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7217. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7218. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7219. msm_routing_put_audio_mixer),
  7220. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7221. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7222. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7223. msm_routing_put_audio_mixer),
  7224. };
  7225. static const struct snd_kcontrol_new slimbus_4_rx_mixer_controls[] = {
  7226. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7227. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7228. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7229. msm_routing_put_audio_mixer),
  7230. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7231. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7232. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7233. msm_routing_put_audio_mixer),
  7234. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7235. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7236. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7237. msm_routing_put_audio_mixer),
  7238. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7239. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7240. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7241. msm_routing_put_audio_mixer),
  7242. };
  7243. static const struct snd_kcontrol_new slimbus_6_rx_mixer_controls[] = {
  7244. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7245. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7246. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7247. msm_routing_put_audio_mixer),
  7248. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7249. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7250. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7251. msm_routing_put_audio_mixer),
  7252. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7253. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7254. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7255. msm_routing_put_audio_mixer),
  7256. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7257. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7258. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7259. msm_routing_put_audio_mixer),
  7260. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7261. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7262. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7263. msm_routing_put_audio_mixer),
  7264. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7265. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7266. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7267. msm_routing_put_audio_mixer),
  7268. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7269. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7270. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7271. msm_routing_put_audio_mixer),
  7272. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7273. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7274. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7275. msm_routing_put_audio_mixer),
  7276. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7277. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7278. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7279. msm_routing_put_audio_mixer),
  7280. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7281. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7282. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7283. msm_routing_put_audio_mixer),
  7284. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7285. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7286. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7287. msm_routing_put_audio_mixer),
  7288. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7289. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7290. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7291. msm_routing_put_audio_mixer),
  7292. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7293. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7294. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7295. msm_routing_put_audio_mixer),
  7296. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7297. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7298. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7299. msm_routing_put_audio_mixer),
  7300. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7301. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7302. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7303. msm_routing_put_audio_mixer),
  7304. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7305. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7306. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7307. msm_routing_put_audio_mixer),
  7308. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7309. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7310. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7311. msm_routing_put_audio_mixer),
  7312. };
  7313. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_mixer_controls[] = {
  7314. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7315. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  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_WSA_CDC_DMA_RX_0,
  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_WSA_CDC_DMA_RX_0,
  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_WSA_CDC_DMA_RX_0,
  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_WSA_CDC_DMA_RX_0,
  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_WSA_CDC_DMA_RX_0,
  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_WSA_CDC_DMA_RX_0,
  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_WSA_CDC_DMA_RX_0,
  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_WSA_CDC_DMA_RX_0,
  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_WSA_CDC_DMA_RX_0,
  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_WSA_CDC_DMA_RX_0,
  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_WSA_CDC_DMA_RX_0,
  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_WSA_CDC_DMA_RX_0,
  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_WSA_CDC_DMA_RX_0,
  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_WSA_CDC_DMA_RX_0,
  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_WSA_CDC_DMA_RX_0,
  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_WSA_CDC_DMA_RX_0,
  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 wsa_cdc_dma_rx_1_mixer_controls[] = {
  7384. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7385. MSM_BACKEND_DAI_WSA_CDC_DMA_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_WSA_CDC_DMA_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_WSA_CDC_DMA_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_WSA_CDC_DMA_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_WSA_CDC_DMA_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_WSA_CDC_DMA_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_WSA_CDC_DMA_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_WSA_CDC_DMA_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_WSA_CDC_DMA_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_WSA_CDC_DMA_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_WSA_CDC_DMA_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_WSA_CDC_DMA_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_WSA_CDC_DMA_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_WSA_CDC_DMA_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_WSA_CDC_DMA_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_WSA_CDC_DMA_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_WSA_CDC_DMA_RX_1,
  7450. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7451. msm_routing_put_audio_mixer),
  7452. };
  7453. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_mixer_controls[] = {
  7454. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7455. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7456. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7457. msm_routing_put_audio_mixer),
  7458. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7459. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7460. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7461. msm_routing_put_audio_mixer),
  7462. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7463. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7464. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7465. msm_routing_put_audio_mixer),
  7466. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7467. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7468. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7469. msm_routing_put_audio_mixer),
  7470. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7471. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7472. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7473. msm_routing_put_audio_mixer),
  7474. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7475. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7476. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7477. msm_routing_put_audio_mixer),
  7478. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7479. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7480. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7481. msm_routing_put_audio_mixer),
  7482. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7483. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7484. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7485. msm_routing_put_audio_mixer),
  7486. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7487. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7488. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7489. msm_routing_put_audio_mixer),
  7490. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7491. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7492. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7493. msm_routing_put_audio_mixer),
  7494. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7495. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7496. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7497. msm_routing_put_audio_mixer),
  7498. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7499. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7500. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7501. msm_routing_put_audio_mixer),
  7502. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7503. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7504. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7505. msm_routing_put_audio_mixer),
  7506. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7507. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7508. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7509. msm_routing_put_audio_mixer),
  7510. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7511. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7512. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7513. msm_routing_put_audio_mixer),
  7514. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7515. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7516. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7517. msm_routing_put_audio_mixer),
  7518. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7519. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7520. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7521. msm_routing_put_audio_mixer),
  7522. };
  7523. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_mixer_controls[] = {
  7524. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7525. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7526. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7527. msm_routing_put_audio_mixer),
  7528. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7529. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7530. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7531. msm_routing_put_audio_mixer),
  7532. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7533. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7534. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7535. msm_routing_put_audio_mixer),
  7536. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7537. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7538. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7539. msm_routing_put_audio_mixer),
  7540. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7541. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7542. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7543. msm_routing_put_audio_mixer),
  7544. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7545. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7546. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7547. msm_routing_put_audio_mixer),
  7548. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7549. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7550. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7551. msm_routing_put_audio_mixer),
  7552. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7553. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7554. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7555. msm_routing_put_audio_mixer),
  7556. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7557. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7558. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7559. msm_routing_put_audio_mixer),
  7560. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7561. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7562. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7563. msm_routing_put_audio_mixer),
  7564. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7565. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7566. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7567. msm_routing_put_audio_mixer),
  7568. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7569. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7570. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7571. msm_routing_put_audio_mixer),
  7572. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7573. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7574. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7575. msm_routing_put_audio_mixer),
  7576. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7577. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7578. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7579. msm_routing_put_audio_mixer),
  7580. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7581. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7582. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7583. msm_routing_put_audio_mixer),
  7584. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7585. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7586. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7587. msm_routing_put_audio_mixer),
  7588. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7589. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7590. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7591. msm_routing_put_audio_mixer),
  7592. };
  7593. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_mixer_controls[] = {
  7594. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7595. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7596. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7597. msm_routing_put_audio_mixer),
  7598. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7599. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7600. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7601. msm_routing_put_audio_mixer),
  7602. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7603. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7604. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7605. msm_routing_put_audio_mixer),
  7606. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7607. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7608. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7609. msm_routing_put_audio_mixer),
  7610. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7611. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7612. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7613. msm_routing_put_audio_mixer),
  7614. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7615. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7616. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7617. msm_routing_put_audio_mixer),
  7618. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7619. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7620. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7621. msm_routing_put_audio_mixer),
  7622. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7623. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7624. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7625. msm_routing_put_audio_mixer),
  7626. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7627. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7628. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7629. msm_routing_put_audio_mixer),
  7630. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7631. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7632. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7633. msm_routing_put_audio_mixer),
  7634. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7635. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7636. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7637. msm_routing_put_audio_mixer),
  7638. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7639. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7640. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7641. msm_routing_put_audio_mixer),
  7642. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7643. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7644. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7645. msm_routing_put_audio_mixer),
  7646. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7647. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7648. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7649. msm_routing_put_audio_mixer),
  7650. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7651. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7652. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7653. msm_routing_put_audio_mixer),
  7654. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7655. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7656. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7657. msm_routing_put_audio_mixer),
  7658. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7659. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7660. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7661. msm_routing_put_audio_mixer),
  7662. };
  7663. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_mixer_controls[] = {
  7664. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7665. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7666. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7667. msm_routing_put_audio_mixer),
  7668. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7669. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7670. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7671. msm_routing_put_audio_mixer),
  7672. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7673. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7674. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7675. msm_routing_put_audio_mixer),
  7676. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7677. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7678. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7679. msm_routing_put_audio_mixer),
  7680. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7681. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7682. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7683. msm_routing_put_audio_mixer),
  7684. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7685. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7686. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7687. msm_routing_put_audio_mixer),
  7688. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7689. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7690. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7691. msm_routing_put_audio_mixer),
  7692. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7693. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7694. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7695. msm_routing_put_audio_mixer),
  7696. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7697. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7698. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7699. msm_routing_put_audio_mixer),
  7700. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7701. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7702. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7703. msm_routing_put_audio_mixer),
  7704. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7705. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7706. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7707. msm_routing_put_audio_mixer),
  7708. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7709. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7710. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7711. msm_routing_put_audio_mixer),
  7712. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7713. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7714. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7715. msm_routing_put_audio_mixer),
  7716. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7717. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7718. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7719. msm_routing_put_audio_mixer),
  7720. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7721. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7722. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7723. msm_routing_put_audio_mixer),
  7724. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7725. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7726. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7727. msm_routing_put_audio_mixer),
  7728. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7729. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7730. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7731. msm_routing_put_audio_mixer),
  7732. };
  7733. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_mixer_controls[] = {
  7734. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7735. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7736. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7737. msm_routing_put_audio_mixer),
  7738. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7739. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7740. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7741. msm_routing_put_audio_mixer),
  7742. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7743. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7744. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7745. msm_routing_put_audio_mixer),
  7746. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7747. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7748. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7749. msm_routing_put_audio_mixer),
  7750. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7751. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7752. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7753. msm_routing_put_audio_mixer),
  7754. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7755. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7756. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7757. msm_routing_put_audio_mixer),
  7758. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7759. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7760. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7761. msm_routing_put_audio_mixer),
  7762. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7763. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7764. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7765. msm_routing_put_audio_mixer),
  7766. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7767. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7768. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7769. msm_routing_put_audio_mixer),
  7770. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7771. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7772. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7773. msm_routing_put_audio_mixer),
  7774. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7775. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7776. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7777. msm_routing_put_audio_mixer),
  7778. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7779. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7780. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7781. msm_routing_put_audio_mixer),
  7782. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7783. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7784. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7785. msm_routing_put_audio_mixer),
  7786. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7787. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7788. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7789. msm_routing_put_audio_mixer),
  7790. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7791. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7792. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7793. msm_routing_put_audio_mixer),
  7794. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7795. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7796. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7797. msm_routing_put_audio_mixer),
  7798. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7799. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7800. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7801. msm_routing_put_audio_mixer),
  7802. };
  7803. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_mixer_controls[] = {
  7804. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7805. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7806. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7807. msm_routing_put_audio_mixer),
  7808. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7809. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7810. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7811. msm_routing_put_audio_mixer),
  7812. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7813. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7814. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7815. msm_routing_put_audio_mixer),
  7816. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7817. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7818. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7819. msm_routing_put_audio_mixer),
  7820. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7821. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7822. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7823. msm_routing_put_audio_mixer),
  7824. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7825. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7826. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7827. msm_routing_put_audio_mixer),
  7828. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7829. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7830. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7831. msm_routing_put_audio_mixer),
  7832. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7833. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7834. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7835. msm_routing_put_audio_mixer),
  7836. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7837. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7838. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7839. msm_routing_put_audio_mixer),
  7840. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7841. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7842. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7843. msm_routing_put_audio_mixer),
  7844. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7845. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7846. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7847. msm_routing_put_audio_mixer),
  7848. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7849. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7850. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7851. msm_routing_put_audio_mixer),
  7852. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7853. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7854. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7855. msm_routing_put_audio_mixer),
  7856. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7857. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7858. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7859. msm_routing_put_audio_mixer),
  7860. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7861. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7862. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7863. msm_routing_put_audio_mixer),
  7864. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7865. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7866. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7867. msm_routing_put_audio_mixer),
  7868. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7869. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7870. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7871. msm_routing_put_audio_mixer),
  7872. };
  7873. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_mixer_controls[] = {
  7874. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7875. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7876. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7877. msm_routing_put_audio_mixer),
  7878. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7879. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7880. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7881. msm_routing_put_audio_mixer),
  7882. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7883. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7884. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7885. msm_routing_put_audio_mixer),
  7886. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7887. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7888. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7889. msm_routing_put_audio_mixer),
  7890. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7891. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7892. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7893. msm_routing_put_audio_mixer),
  7894. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7895. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7896. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7897. msm_routing_put_audio_mixer),
  7898. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7899. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7900. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7901. msm_routing_put_audio_mixer),
  7902. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7903. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7904. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7905. msm_routing_put_audio_mixer),
  7906. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7907. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7908. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7909. msm_routing_put_audio_mixer),
  7910. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7911. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7912. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7913. msm_routing_put_audio_mixer),
  7914. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7915. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7916. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7917. msm_routing_put_audio_mixer),
  7918. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7919. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7920. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7921. msm_routing_put_audio_mixer),
  7922. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7923. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7924. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7925. msm_routing_put_audio_mixer),
  7926. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7927. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7928. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7929. msm_routing_put_audio_mixer),
  7930. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7931. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7932. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7933. msm_routing_put_audio_mixer),
  7934. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7935. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7936. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7937. msm_routing_put_audio_mixer),
  7938. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7939. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7940. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7941. msm_routing_put_audio_mixer),
  7942. };
  7943. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_mixer_controls[] = {
  7944. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7945. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7946. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7947. msm_routing_put_audio_mixer),
  7948. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7949. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7950. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7951. msm_routing_put_audio_mixer),
  7952. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7953. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7954. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7955. msm_routing_put_audio_mixer),
  7956. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7957. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7958. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7959. msm_routing_put_audio_mixer),
  7960. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7961. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7962. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7963. msm_routing_put_audio_mixer),
  7964. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7965. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7966. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7967. msm_routing_put_audio_mixer),
  7968. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7969. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7970. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7971. msm_routing_put_audio_mixer),
  7972. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7973. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7974. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7975. msm_routing_put_audio_mixer),
  7976. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7977. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7978. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7979. msm_routing_put_audio_mixer),
  7980. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7981. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7982. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7983. msm_routing_put_audio_mixer),
  7984. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7985. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7986. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7987. msm_routing_put_audio_mixer),
  7988. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7989. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7990. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7991. msm_routing_put_audio_mixer),
  7992. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7993. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7994. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7995. msm_routing_put_audio_mixer),
  7996. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7997. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7998. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7999. msm_routing_put_audio_mixer),
  8000. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8001. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8002. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8003. msm_routing_put_audio_mixer),
  8004. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8005. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8006. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8007. msm_routing_put_audio_mixer),
  8008. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8009. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8010. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8011. msm_routing_put_audio_mixer),
  8012. };
  8013. static const struct snd_kcontrol_new slimbus_7_rx_mixer_controls[] = {
  8014. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8015. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8016. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8017. msm_routing_put_audio_mixer),
  8018. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8019. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8020. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8021. msm_routing_put_audio_mixer),
  8022. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8023. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8024. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8025. msm_routing_put_audio_mixer),
  8026. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8027. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8028. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8029. msm_routing_put_audio_mixer),
  8030. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8031. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8032. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8033. msm_routing_put_audio_mixer),
  8034. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8035. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8036. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8037. msm_routing_put_audio_mixer),
  8038. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8039. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8040. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8041. msm_routing_put_audio_mixer),
  8042. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8043. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8044. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8045. msm_routing_put_audio_mixer),
  8046. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8047. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8048. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8049. msm_routing_put_audio_mixer),
  8050. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8051. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8052. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8053. msm_routing_put_audio_mixer),
  8054. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8055. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8056. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8057. msm_routing_put_audio_mixer),
  8058. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8059. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8060. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8061. msm_routing_put_audio_mixer),
  8062. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8063. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8064. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8065. msm_routing_put_audio_mixer),
  8066. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8067. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8068. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8069. msm_routing_put_audio_mixer),
  8070. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8071. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8072. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8073. msm_routing_put_audio_mixer),
  8074. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8075. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8076. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8077. msm_routing_put_audio_mixer),
  8078. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8079. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8080. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8081. msm_routing_put_audio_mixer),
  8082. };
  8083. static const struct snd_kcontrol_new slimbus_9_rx_mixer_controls[] = {
  8084. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8085. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8086. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8087. msm_routing_put_audio_mixer),
  8088. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8089. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8090. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8091. msm_routing_put_audio_mixer),
  8092. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8093. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8094. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8095. msm_routing_put_audio_mixer),
  8096. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8097. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8098. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8099. msm_routing_put_audio_mixer),
  8100. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8101. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8102. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8103. msm_routing_put_audio_mixer),
  8104. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8105. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8106. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8107. msm_routing_put_audio_mixer),
  8108. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8109. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8110. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8111. msm_routing_put_audio_mixer),
  8112. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8113. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8114. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8115. msm_routing_put_audio_mixer),
  8116. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8117. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8118. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8119. msm_routing_put_audio_mixer),
  8120. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8121. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8122. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8123. msm_routing_put_audio_mixer),
  8124. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8125. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8126. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8127. msm_routing_put_audio_mixer),
  8128. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8129. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8130. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8131. msm_routing_put_audio_mixer),
  8132. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8133. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8134. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8135. msm_routing_put_audio_mixer),
  8136. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8137. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8138. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8139. msm_routing_put_audio_mixer),
  8140. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8141. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8142. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8143. msm_routing_put_audio_mixer),
  8144. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8145. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8146. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8147. msm_routing_put_audio_mixer),
  8148. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8149. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8150. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8151. msm_routing_put_audio_mixer),
  8152. };
  8153. static const struct snd_kcontrol_new usb_audio_rx_mixer_controls[] = {
  8154. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8155. MSM_BACKEND_DAI_USB_RX,
  8156. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8157. msm_routing_put_audio_mixer),
  8158. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8159. MSM_BACKEND_DAI_USB_RX,
  8160. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8161. msm_routing_put_audio_mixer),
  8162. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8163. MSM_BACKEND_DAI_USB_RX,
  8164. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8165. msm_routing_put_audio_mixer),
  8166. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8167. MSM_BACKEND_DAI_USB_RX,
  8168. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8169. msm_routing_put_audio_mixer),
  8170. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8171. MSM_BACKEND_DAI_USB_RX,
  8172. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8173. msm_routing_put_audio_mixer),
  8174. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8175. MSM_BACKEND_DAI_USB_RX,
  8176. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8177. msm_routing_put_audio_mixer),
  8178. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8179. MSM_BACKEND_DAI_USB_RX,
  8180. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8181. msm_routing_put_audio_mixer),
  8182. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8183. MSM_BACKEND_DAI_USB_RX,
  8184. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8185. msm_routing_put_audio_mixer),
  8186. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8187. MSM_BACKEND_DAI_USB_RX,
  8188. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8189. msm_routing_put_audio_mixer),
  8190. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8191. MSM_BACKEND_DAI_USB_RX,
  8192. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8193. msm_routing_put_audio_mixer),
  8194. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8195. MSM_BACKEND_DAI_USB_RX,
  8196. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8197. msm_routing_put_audio_mixer),
  8198. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8199. MSM_BACKEND_DAI_USB_RX,
  8200. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8201. msm_routing_put_audio_mixer),
  8202. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8203. MSM_BACKEND_DAI_USB_RX,
  8204. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8205. msm_routing_put_audio_mixer),
  8206. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8207. MSM_BACKEND_DAI_USB_RX,
  8208. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8209. msm_routing_put_audio_mixer),
  8210. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8211. MSM_BACKEND_DAI_USB_RX,
  8212. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8213. msm_routing_put_audio_mixer),
  8214. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8215. MSM_BACKEND_DAI_USB_RX,
  8216. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8217. msm_routing_put_audio_mixer),
  8218. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8219. MSM_BACKEND_DAI_USB_RX,
  8220. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8221. msm_routing_put_audio_mixer),
  8222. };
  8223. static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
  8224. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8225. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8226. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8227. msm_routing_put_audio_mixer),
  8228. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8229. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8230. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8231. msm_routing_put_audio_mixer),
  8232. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8233. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8234. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8235. msm_routing_put_audio_mixer),
  8236. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8237. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8238. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8239. msm_routing_put_audio_mixer),
  8240. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8241. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8242. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8243. msm_routing_put_audio_mixer),
  8244. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8245. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8246. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8247. msm_routing_put_audio_mixer),
  8248. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8249. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8250. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8251. msm_routing_put_audio_mixer),
  8252. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8253. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8254. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8255. msm_routing_put_audio_mixer),
  8256. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8257. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8258. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8259. msm_routing_put_audio_mixer),
  8260. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8261. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8262. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8263. msm_routing_put_audio_mixer),
  8264. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8265. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8266. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8267. msm_routing_put_audio_mixer),
  8268. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8269. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8270. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8271. msm_routing_put_audio_mixer),
  8272. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8273. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8274. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8275. msm_routing_put_audio_mixer),
  8276. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8277. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8278. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8279. msm_routing_put_audio_mixer),
  8280. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8281. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8282. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8283. msm_routing_put_audio_mixer),
  8284. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8285. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8286. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8287. msm_routing_put_audio_mixer),
  8288. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8289. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8290. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8291. msm_routing_put_audio_mixer),
  8292. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8293. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8294. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8295. msm_routing_put_audio_mixer),
  8296. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8297. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8298. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8299. msm_routing_put_audio_mixer),
  8300. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8301. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8302. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8303. msm_routing_put_audio_mixer),
  8304. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8305. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8306. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8307. msm_routing_put_audio_mixer),
  8308. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8309. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8310. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8311. msm_routing_put_audio_mixer),
  8312. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8313. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8314. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8315. msm_routing_put_audio_mixer),
  8316. };
  8317. static const struct snd_kcontrol_new int_bt_a2dp_rx_mixer_controls[] = {
  8318. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8319. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8320. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8321. msm_routing_put_audio_mixer),
  8322. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8323. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8324. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8325. msm_routing_put_audio_mixer),
  8326. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8327. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8328. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8329. msm_routing_put_audio_mixer),
  8330. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8331. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8332. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8333. msm_routing_put_audio_mixer),
  8334. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8335. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8336. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8337. msm_routing_put_audio_mixer),
  8338. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8339. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8340. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8341. msm_routing_put_audio_mixer),
  8342. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8343. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8344. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8345. msm_routing_put_audio_mixer),
  8346. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8347. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8348. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8349. msm_routing_put_audio_mixer),
  8350. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8351. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8352. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8353. msm_routing_put_audio_mixer),
  8354. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8355. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8356. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8357. msm_routing_put_audio_mixer),
  8358. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8359. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8360. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8361. msm_routing_put_audio_mixer),
  8362. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8363. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8364. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8365. msm_routing_put_audio_mixer),
  8366. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8367. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8368. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8369. msm_routing_put_audio_mixer),
  8370. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8371. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8372. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8373. msm_routing_put_audio_mixer),
  8374. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8375. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8376. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8377. msm_routing_put_audio_mixer),
  8378. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8379. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8380. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8381. msm_routing_put_audio_mixer),
  8382. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8383. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8384. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8385. msm_routing_put_audio_mixer),
  8386. };
  8387. static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
  8388. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8389. MSM_BACKEND_DAI_INT_FM_RX,
  8390. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8391. msm_routing_put_audio_mixer),
  8392. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8393. MSM_BACKEND_DAI_INT_FM_RX,
  8394. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8395. msm_routing_put_audio_mixer),
  8396. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8397. MSM_BACKEND_DAI_INT_FM_RX,
  8398. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8399. msm_routing_put_audio_mixer),
  8400. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8401. MSM_BACKEND_DAI_INT_FM_RX,
  8402. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8403. msm_routing_put_audio_mixer),
  8404. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8405. MSM_BACKEND_DAI_INT_FM_RX,
  8406. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8407. msm_routing_put_audio_mixer),
  8408. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8409. MSM_BACKEND_DAI_INT_FM_RX,
  8410. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8411. msm_routing_put_audio_mixer),
  8412. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8413. MSM_BACKEND_DAI_INT_FM_RX,
  8414. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8415. msm_routing_put_audio_mixer),
  8416. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8417. MSM_BACKEND_DAI_INT_FM_RX,
  8418. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8419. msm_routing_put_audio_mixer),
  8420. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8421. MSM_BACKEND_DAI_INT_FM_RX,
  8422. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8423. msm_routing_put_audio_mixer),
  8424. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8425. MSM_BACKEND_DAI_INT_FM_RX,
  8426. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8427. msm_routing_put_audio_mixer),
  8428. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8429. MSM_BACKEND_DAI_INT_FM_RX,
  8430. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8431. msm_routing_put_audio_mixer),
  8432. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8433. MSM_BACKEND_DAI_INT_FM_RX,
  8434. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8435. msm_routing_put_audio_mixer),
  8436. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8437. MSM_BACKEND_DAI_INT_FM_RX,
  8438. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8439. msm_routing_put_audio_mixer),
  8440. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8441. MSM_BACKEND_DAI_INT_FM_RX,
  8442. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8443. msm_routing_put_audio_mixer),
  8444. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8445. MSM_BACKEND_DAI_INT_FM_RX,
  8446. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8447. msm_routing_put_audio_mixer),
  8448. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8449. MSM_BACKEND_DAI_INT_FM_RX,
  8450. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8451. msm_routing_put_audio_mixer),
  8452. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8453. MSM_BACKEND_DAI_INT_FM_RX,
  8454. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8455. msm_routing_put_audio_mixer),
  8456. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8457. MSM_BACKEND_DAI_INT_FM_RX,
  8458. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8459. msm_routing_put_audio_mixer),
  8460. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8461. MSM_BACKEND_DAI_INT_FM_RX,
  8462. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8463. msm_routing_put_audio_mixer),
  8464. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8465. MSM_BACKEND_DAI_INT_FM_RX,
  8466. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8467. msm_routing_put_audio_mixer),
  8468. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8469. MSM_BACKEND_DAI_INT_FM_RX,
  8470. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8471. msm_routing_put_audio_mixer),
  8472. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8473. MSM_BACKEND_DAI_INT_FM_RX,
  8474. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8475. msm_routing_put_audio_mixer),
  8476. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8477. MSM_BACKEND_DAI_INT_FM_RX,
  8478. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8479. msm_routing_put_audio_mixer),
  8480. };
  8481. static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
  8482. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8483. MSM_BACKEND_DAI_AFE_PCM_RX,
  8484. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8485. msm_routing_put_audio_mixer),
  8486. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8487. MSM_BACKEND_DAI_AFE_PCM_RX,
  8488. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8489. msm_routing_put_audio_mixer),
  8490. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8491. MSM_BACKEND_DAI_AFE_PCM_RX,
  8492. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8493. msm_routing_put_audio_mixer),
  8494. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8495. MSM_BACKEND_DAI_AFE_PCM_RX,
  8496. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8497. msm_routing_put_audio_mixer),
  8498. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8499. MSM_BACKEND_DAI_AFE_PCM_RX,
  8500. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8501. msm_routing_put_audio_mixer),
  8502. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8503. MSM_BACKEND_DAI_AFE_PCM_RX,
  8504. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8505. msm_routing_put_audio_mixer),
  8506. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8507. MSM_BACKEND_DAI_AFE_PCM_RX,
  8508. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8509. msm_routing_put_audio_mixer),
  8510. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8511. MSM_BACKEND_DAI_AFE_PCM_RX,
  8512. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8513. msm_routing_put_audio_mixer),
  8514. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8515. MSM_BACKEND_DAI_AFE_PCM_RX,
  8516. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8517. msm_routing_put_audio_mixer),
  8518. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8519. MSM_BACKEND_DAI_AFE_PCM_RX,
  8520. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8521. msm_routing_put_audio_mixer),
  8522. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8523. MSM_BACKEND_DAI_AFE_PCM_RX,
  8524. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8525. msm_routing_put_audio_mixer),
  8526. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8527. MSM_BACKEND_DAI_AFE_PCM_RX,
  8528. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8529. msm_routing_put_audio_mixer),
  8530. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8531. MSM_BACKEND_DAI_AFE_PCM_RX,
  8532. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8533. msm_routing_put_audio_mixer),
  8534. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8535. MSM_BACKEND_DAI_AFE_PCM_RX,
  8536. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8537. msm_routing_put_audio_mixer),
  8538. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8539. MSM_BACKEND_DAI_AFE_PCM_RX,
  8540. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8541. msm_routing_put_audio_mixer),
  8542. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8543. MSM_BACKEND_DAI_AFE_PCM_RX,
  8544. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8545. msm_routing_put_audio_mixer),
  8546. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8547. MSM_BACKEND_DAI_AFE_PCM_RX,
  8548. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8549. msm_routing_put_audio_mixer),
  8550. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8551. MSM_BACKEND_DAI_AFE_PCM_RX,
  8552. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8553. msm_routing_put_audio_mixer),
  8554. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8555. MSM_BACKEND_DAI_AFE_PCM_RX,
  8556. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8557. msm_routing_put_audio_mixer),
  8558. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8559. MSM_BACKEND_DAI_AFE_PCM_RX,
  8560. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8561. msm_routing_put_audio_mixer),
  8562. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8563. MSM_BACKEND_DAI_AFE_PCM_RX,
  8564. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8565. msm_routing_put_audio_mixer),
  8566. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8567. MSM_BACKEND_DAI_AFE_PCM_RX,
  8568. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8569. msm_routing_put_audio_mixer),
  8570. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8571. MSM_BACKEND_DAI_AFE_PCM_RX,
  8572. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8573. msm_routing_put_audio_mixer),
  8574. };
  8575. static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
  8576. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8577. MSM_BACKEND_DAI_AUXPCM_RX,
  8578. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8579. msm_routing_put_audio_mixer),
  8580. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8581. MSM_BACKEND_DAI_AUXPCM_RX,
  8582. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8583. msm_routing_put_audio_mixer),
  8584. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8585. MSM_BACKEND_DAI_AUXPCM_RX,
  8586. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8587. msm_routing_put_audio_mixer),
  8588. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8589. MSM_BACKEND_DAI_AUXPCM_RX,
  8590. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8591. msm_routing_put_audio_mixer),
  8592. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8593. MSM_BACKEND_DAI_AUXPCM_RX,
  8594. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8595. msm_routing_put_audio_mixer),
  8596. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8597. MSM_BACKEND_DAI_AUXPCM_RX,
  8598. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8599. msm_routing_put_audio_mixer),
  8600. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8601. MSM_BACKEND_DAI_AUXPCM_RX,
  8602. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8603. msm_routing_put_audio_mixer),
  8604. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8605. MSM_BACKEND_DAI_AUXPCM_RX,
  8606. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8607. msm_routing_put_audio_mixer),
  8608. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8609. MSM_BACKEND_DAI_AUXPCM_RX,
  8610. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8611. msm_routing_put_audio_mixer),
  8612. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8613. MSM_BACKEND_DAI_AUXPCM_RX,
  8614. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8615. msm_routing_put_audio_mixer),
  8616. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8617. MSM_BACKEND_DAI_AUXPCM_RX,
  8618. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8619. msm_routing_put_audio_mixer),
  8620. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8621. MSM_BACKEND_DAI_AUXPCM_RX,
  8622. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8623. msm_routing_put_audio_mixer),
  8624. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8625. MSM_BACKEND_DAI_AUXPCM_RX,
  8626. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8627. msm_routing_put_audio_mixer),
  8628. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8629. MSM_BACKEND_DAI_AUXPCM_RX,
  8630. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8631. msm_routing_put_audio_mixer),
  8632. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8633. MSM_BACKEND_DAI_AUXPCM_RX,
  8634. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8635. msm_routing_put_audio_mixer),
  8636. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8637. MSM_BACKEND_DAI_AUXPCM_RX,
  8638. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8639. msm_routing_put_audio_mixer),
  8640. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8641. MSM_BACKEND_DAI_AUXPCM_RX,
  8642. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8643. msm_routing_put_audio_mixer),
  8644. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8645. MSM_BACKEND_DAI_AUXPCM_RX,
  8646. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8647. msm_routing_put_audio_mixer),
  8648. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8649. MSM_BACKEND_DAI_AUXPCM_RX,
  8650. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8651. msm_routing_put_audio_mixer),
  8652. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8653. MSM_BACKEND_DAI_AUXPCM_RX,
  8654. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8655. msm_routing_put_audio_mixer),
  8656. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8657. MSM_BACKEND_DAI_AUXPCM_RX,
  8658. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8659. msm_routing_put_audio_mixer),
  8660. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8661. MSM_BACKEND_DAI_AUXPCM_RX,
  8662. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8663. msm_routing_put_audio_mixer),
  8664. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8665. MSM_BACKEND_DAI_AUXPCM_RX,
  8666. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8667. msm_routing_put_audio_mixer),
  8668. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8669. MSM_BACKEND_DAI_AUXPCM_RX,
  8670. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8671. msm_routing_put_audio_mixer),
  8672. };
  8673. static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
  8674. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8675. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8676. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8677. msm_routing_put_audio_mixer),
  8678. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8679. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8680. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8681. msm_routing_put_audio_mixer),
  8682. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8683. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8684. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8685. msm_routing_put_audio_mixer),
  8686. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8687. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8688. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8689. msm_routing_put_audio_mixer),
  8690. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8691. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8692. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8693. msm_routing_put_audio_mixer),
  8694. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8695. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8696. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8697. msm_routing_put_audio_mixer),
  8698. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8699. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8700. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8701. msm_routing_put_audio_mixer),
  8702. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8703. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8704. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8705. msm_routing_put_audio_mixer),
  8706. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8707. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8708. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8709. msm_routing_put_audio_mixer),
  8710. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8711. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8712. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8713. msm_routing_put_audio_mixer),
  8714. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8715. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8716. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8717. msm_routing_put_audio_mixer),
  8718. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8719. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8720. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8721. msm_routing_put_audio_mixer),
  8722. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8723. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8724. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8725. msm_routing_put_audio_mixer),
  8726. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8727. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8728. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8729. msm_routing_put_audio_mixer),
  8730. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8731. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8732. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8733. msm_routing_put_audio_mixer),
  8734. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8735. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8736. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8737. msm_routing_put_audio_mixer),
  8738. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8739. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8740. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8741. msm_routing_put_audio_mixer),
  8742. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8743. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8744. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8745. msm_routing_put_audio_mixer),
  8746. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8747. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8748. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8749. msm_routing_put_audio_mixer),
  8750. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8751. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8752. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8753. msm_routing_put_audio_mixer),
  8754. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8755. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8756. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8757. msm_routing_put_audio_mixer),
  8758. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8759. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8760. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8761. msm_routing_put_audio_mixer),
  8762. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8763. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8764. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8765. msm_routing_put_audio_mixer),
  8766. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8767. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8768. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8769. msm_routing_put_audio_mixer),
  8770. };
  8771. static const struct snd_kcontrol_new tert_auxpcm_rx_mixer_controls[] = {
  8772. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8773. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8774. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8775. msm_routing_put_audio_mixer),
  8776. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8777. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8778. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8779. msm_routing_put_audio_mixer),
  8780. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8781. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8782. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8783. msm_routing_put_audio_mixer),
  8784. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8785. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8786. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8787. msm_routing_put_audio_mixer),
  8788. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8789. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8790. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8791. msm_routing_put_audio_mixer),
  8792. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8793. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8794. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8795. msm_routing_put_audio_mixer),
  8796. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8797. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8798. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8799. msm_routing_put_audio_mixer),
  8800. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8801. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8802. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8803. msm_routing_put_audio_mixer),
  8804. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8805. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8806. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8807. msm_routing_put_audio_mixer),
  8808. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8809. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8810. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8811. msm_routing_put_audio_mixer),
  8812. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8813. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8814. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8815. msm_routing_put_audio_mixer),
  8816. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8817. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8818. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8819. msm_routing_put_audio_mixer),
  8820. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8821. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8822. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8823. msm_routing_put_audio_mixer),
  8824. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8825. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8826. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8827. msm_routing_put_audio_mixer),
  8828. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8829. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8830. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8831. msm_routing_put_audio_mixer),
  8832. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8833. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8834. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8835. msm_routing_put_audio_mixer),
  8836. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8837. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8838. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8839. msm_routing_put_audio_mixer),
  8840. };
  8841. static const struct snd_kcontrol_new quat_auxpcm_rx_mixer_controls[] = {
  8842. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8843. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8844. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8845. msm_routing_put_audio_mixer),
  8846. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8847. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8848. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8849. msm_routing_put_audio_mixer),
  8850. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8851. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8852. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8853. msm_routing_put_audio_mixer),
  8854. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8855. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8856. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8857. msm_routing_put_audio_mixer),
  8858. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8859. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8860. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8861. msm_routing_put_audio_mixer),
  8862. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8863. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8864. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8865. msm_routing_put_audio_mixer),
  8866. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8867. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8868. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8869. msm_routing_put_audio_mixer),
  8870. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8871. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8872. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8873. msm_routing_put_audio_mixer),
  8874. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8875. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8876. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8877. msm_routing_put_audio_mixer),
  8878. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8879. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8880. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8881. msm_routing_put_audio_mixer),
  8882. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8883. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8884. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8885. msm_routing_put_audio_mixer),
  8886. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8887. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8888. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8889. msm_routing_put_audio_mixer),
  8890. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8891. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8892. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8893. msm_routing_put_audio_mixer),
  8894. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8895. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8896. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8897. msm_routing_put_audio_mixer),
  8898. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8899. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8900. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8901. msm_routing_put_audio_mixer),
  8902. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8903. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8904. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8905. msm_routing_put_audio_mixer),
  8906. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8907. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8908. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8909. msm_routing_put_audio_mixer),
  8910. };
  8911. static const struct snd_kcontrol_new quin_auxpcm_rx_mixer_controls[] = {
  8912. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8913. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8914. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8915. msm_routing_put_audio_mixer),
  8916. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8917. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8918. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8919. msm_routing_put_audio_mixer),
  8920. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8921. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8922. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8923. msm_routing_put_audio_mixer),
  8924. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8925. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8926. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8927. msm_routing_put_audio_mixer),
  8928. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8929. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8930. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8931. msm_routing_put_audio_mixer),
  8932. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8933. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8934. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8935. msm_routing_put_audio_mixer),
  8936. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8937. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8938. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8939. msm_routing_put_audio_mixer),
  8940. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8941. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8942. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8943. msm_routing_put_audio_mixer),
  8944. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8945. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8946. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8947. msm_routing_put_audio_mixer),
  8948. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8949. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8950. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8951. msm_routing_put_audio_mixer),
  8952. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8953. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8954. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8955. msm_routing_put_audio_mixer),
  8956. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8957. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8958. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8959. msm_routing_put_audio_mixer),
  8960. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8961. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8962. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8963. msm_routing_put_audio_mixer),
  8964. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8965. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8966. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8967. msm_routing_put_audio_mixer),
  8968. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8969. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8970. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8971. msm_routing_put_audio_mixer),
  8972. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8973. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8974. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8975. msm_routing_put_audio_mixer),
  8976. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8977. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8978. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8979. msm_routing_put_audio_mixer),
  8980. };
  8981. static const struct snd_kcontrol_new sen_auxpcm_rx_mixer_controls[] = {
  8982. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8983. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8984. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8985. msm_routing_put_audio_mixer),
  8986. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8987. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8988. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8989. msm_routing_put_audio_mixer),
  8990. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8991. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8992. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8993. msm_routing_put_audio_mixer),
  8994. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8995. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8996. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8997. msm_routing_put_audio_mixer),
  8998. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8999. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9000. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9001. msm_routing_put_audio_mixer),
  9002. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9003. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9004. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9005. msm_routing_put_audio_mixer),
  9006. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9007. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9008. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9009. msm_routing_put_audio_mixer),
  9010. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9011. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9012. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9013. msm_routing_put_audio_mixer),
  9014. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9015. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9016. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9017. msm_routing_put_audio_mixer),
  9018. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9019. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9020. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9021. msm_routing_put_audio_mixer),
  9022. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9023. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9024. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9025. msm_routing_put_audio_mixer),
  9026. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9027. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9028. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9029. msm_routing_put_audio_mixer),
  9030. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9031. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9032. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9033. msm_routing_put_audio_mixer),
  9034. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9035. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9036. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9037. msm_routing_put_audio_mixer),
  9038. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9039. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9040. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9041. msm_routing_put_audio_mixer),
  9042. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9043. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9044. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9045. msm_routing_put_audio_mixer),
  9046. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  9047. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9048. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  9049. msm_routing_put_audio_mixer),
  9050. };
  9051. static const struct snd_kcontrol_new pri_tdm_rx_0_mixer_controls[] = {
  9052. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9053. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9054. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9055. msm_routing_put_audio_mixer),
  9056. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9057. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9058. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9059. msm_routing_put_audio_mixer),
  9060. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9061. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9062. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9063. msm_routing_put_audio_mixer),
  9064. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9065. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9066. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9067. msm_routing_put_audio_mixer),
  9068. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9069. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9070. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9071. msm_routing_put_audio_mixer),
  9072. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9073. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9074. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9075. msm_routing_put_audio_mixer),
  9076. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9077. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9078. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9079. msm_routing_put_audio_mixer),
  9080. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9081. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9082. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9083. msm_routing_put_audio_mixer),
  9084. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9085. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9086. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9087. msm_routing_put_audio_mixer),
  9088. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9089. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9090. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9091. msm_routing_put_audio_mixer),
  9092. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9093. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9094. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9095. msm_routing_put_audio_mixer),
  9096. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9097. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9098. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9099. msm_routing_put_audio_mixer),
  9100. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9101. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9102. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9103. msm_routing_put_audio_mixer),
  9104. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9105. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9106. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9107. msm_routing_put_audio_mixer),
  9108. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9109. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9110. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9111. msm_routing_put_audio_mixer),
  9112. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9113. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9114. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9115. msm_routing_put_audio_mixer),
  9116. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9117. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9118. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9119. msm_routing_put_audio_mixer),
  9120. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9121. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9122. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9123. msm_routing_put_audio_mixer),
  9124. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9125. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9126. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9127. msm_routing_put_audio_mixer),
  9128. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9129. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9130. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9131. msm_routing_put_audio_mixer),
  9132. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9133. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9134. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9135. msm_routing_put_audio_mixer),
  9136. };
  9137. static const struct snd_kcontrol_new pri_tdm_rx_1_mixer_controls[] = {
  9138. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9139. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9140. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9141. msm_routing_put_audio_mixer),
  9142. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9143. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9144. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9145. msm_routing_put_audio_mixer),
  9146. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9147. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9148. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9149. msm_routing_put_audio_mixer),
  9150. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9151. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9152. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9153. msm_routing_put_audio_mixer),
  9154. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9155. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9156. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9157. msm_routing_put_audio_mixer),
  9158. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9159. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9160. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9161. msm_routing_put_audio_mixer),
  9162. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9163. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9164. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9165. msm_routing_put_audio_mixer),
  9166. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9167. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9168. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9169. msm_routing_put_audio_mixer),
  9170. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9171. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9172. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9173. msm_routing_put_audio_mixer),
  9174. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9175. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9176. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9177. msm_routing_put_audio_mixer),
  9178. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9179. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9180. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9181. msm_routing_put_audio_mixer),
  9182. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9183. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9184. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9185. msm_routing_put_audio_mixer),
  9186. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9187. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9188. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9189. msm_routing_put_audio_mixer),
  9190. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9191. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9192. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9193. msm_routing_put_audio_mixer),
  9194. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9195. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9196. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9197. msm_routing_put_audio_mixer),
  9198. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9199. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9200. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9201. msm_routing_put_audio_mixer),
  9202. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9203. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9204. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9205. msm_routing_put_audio_mixer),
  9206. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9207. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9208. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9209. msm_routing_put_audio_mixer),
  9210. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9211. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9212. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9213. msm_routing_put_audio_mixer),
  9214. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9215. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9216. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9217. msm_routing_put_audio_mixer),
  9218. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9219. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9220. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9221. msm_routing_put_audio_mixer),
  9222. };
  9223. static const struct snd_kcontrol_new pri_tdm_rx_2_mixer_controls[] = {
  9224. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9225. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9226. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9227. msm_routing_put_audio_mixer),
  9228. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9229. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9230. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9231. msm_routing_put_audio_mixer),
  9232. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9233. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9234. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9235. msm_routing_put_audio_mixer),
  9236. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9237. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9238. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9239. msm_routing_put_audio_mixer),
  9240. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9241. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9242. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9243. msm_routing_put_audio_mixer),
  9244. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9245. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9246. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9247. msm_routing_put_audio_mixer),
  9248. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9249. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9250. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9251. msm_routing_put_audio_mixer),
  9252. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9253. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9254. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9255. msm_routing_put_audio_mixer),
  9256. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9257. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9258. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9259. msm_routing_put_audio_mixer),
  9260. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9261. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9262. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9263. msm_routing_put_audio_mixer),
  9264. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9265. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9266. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9267. msm_routing_put_audio_mixer),
  9268. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9269. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9270. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9271. msm_routing_put_audio_mixer),
  9272. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9273. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9274. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9275. msm_routing_put_audio_mixer),
  9276. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9277. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9278. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9279. msm_routing_put_audio_mixer),
  9280. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9281. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9282. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9283. msm_routing_put_audio_mixer),
  9284. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9285. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9286. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9287. msm_routing_put_audio_mixer),
  9288. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9289. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9290. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9291. msm_routing_put_audio_mixer),
  9292. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9293. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9294. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9295. msm_routing_put_audio_mixer),
  9296. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9297. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9298. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9299. msm_routing_put_audio_mixer),
  9300. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9301. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9302. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9303. msm_routing_put_audio_mixer),
  9304. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9305. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9306. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9307. msm_routing_put_audio_mixer),
  9308. };
  9309. static const struct snd_kcontrol_new pri_tdm_rx_3_mixer_controls[] = {
  9310. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9311. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9312. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9313. msm_routing_put_audio_mixer),
  9314. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9315. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9316. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9317. msm_routing_put_audio_mixer),
  9318. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9319. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9320. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9321. msm_routing_put_audio_mixer),
  9322. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9323. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9324. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9325. msm_routing_put_audio_mixer),
  9326. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9327. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9328. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9329. msm_routing_put_audio_mixer),
  9330. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9331. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9332. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9333. msm_routing_put_audio_mixer),
  9334. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9335. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9336. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9337. msm_routing_put_audio_mixer),
  9338. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9339. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9340. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9341. msm_routing_put_audio_mixer),
  9342. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9343. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9344. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9345. msm_routing_put_audio_mixer),
  9346. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9347. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9348. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9349. msm_routing_put_audio_mixer),
  9350. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9351. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9352. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9353. msm_routing_put_audio_mixer),
  9354. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9355. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9356. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9357. msm_routing_put_audio_mixer),
  9358. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9359. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9360. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9361. msm_routing_put_audio_mixer),
  9362. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9363. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9364. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9365. msm_routing_put_audio_mixer),
  9366. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9367. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9368. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9369. msm_routing_put_audio_mixer),
  9370. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9371. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9372. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9373. msm_routing_put_audio_mixer),
  9374. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9375. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9376. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9377. msm_routing_put_audio_mixer),
  9378. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9379. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9380. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9381. msm_routing_put_audio_mixer),
  9382. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9383. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9384. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9385. msm_routing_put_audio_mixer),
  9386. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9387. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9388. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9389. msm_routing_put_audio_mixer),
  9390. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9391. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9392. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9393. msm_routing_put_audio_mixer),
  9394. };
  9395. static const struct snd_kcontrol_new pri_tdm_tx_0_mixer_controls[] = {
  9396. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9397. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9398. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9399. msm_routing_put_audio_mixer),
  9400. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9401. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9402. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9403. msm_routing_put_audio_mixer),
  9404. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9405. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9406. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9407. msm_routing_put_audio_mixer),
  9408. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9409. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9410. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9411. msm_routing_put_audio_mixer),
  9412. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9413. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9414. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9415. msm_routing_put_audio_mixer),
  9416. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9417. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9418. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9419. msm_routing_put_audio_mixer),
  9420. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9421. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9422. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9423. msm_routing_put_audio_mixer),
  9424. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9425. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9426. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9427. msm_routing_put_audio_mixer),
  9428. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9429. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9430. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9431. msm_routing_put_audio_mixer),
  9432. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9433. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9434. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9435. msm_routing_put_audio_mixer),
  9436. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9437. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9438. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9439. msm_routing_put_audio_mixer),
  9440. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9441. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9442. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9443. msm_routing_put_audio_mixer),
  9444. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9445. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9446. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9447. msm_routing_put_audio_mixer),
  9448. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9449. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9450. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9451. msm_routing_put_audio_mixer),
  9452. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9453. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9454. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9455. msm_routing_put_audio_mixer),
  9456. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9457. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9458. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9459. msm_routing_put_audio_mixer),
  9460. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9461. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9462. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9463. msm_routing_put_audio_mixer),
  9464. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9465. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9466. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9467. msm_routing_put_audio_mixer),
  9468. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9469. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9470. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9471. msm_routing_put_audio_mixer),
  9472. };
  9473. static const struct snd_kcontrol_new sec_tdm_rx_0_mixer_controls[] = {
  9474. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9475. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9476. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9477. msm_routing_put_audio_mixer),
  9478. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9479. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9480. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9481. msm_routing_put_audio_mixer),
  9482. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9483. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9484. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9485. msm_routing_put_audio_mixer),
  9486. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9487. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9488. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9489. msm_routing_put_audio_mixer),
  9490. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9491. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9492. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9493. msm_routing_put_audio_mixer),
  9494. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9495. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9496. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9497. msm_routing_put_audio_mixer),
  9498. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9499. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9500. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9501. msm_routing_put_audio_mixer),
  9502. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9503. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9504. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9505. msm_routing_put_audio_mixer),
  9506. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9507. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9508. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9509. msm_routing_put_audio_mixer),
  9510. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9511. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9512. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9513. msm_routing_put_audio_mixer),
  9514. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9515. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9516. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9517. msm_routing_put_audio_mixer),
  9518. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9519. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9520. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9521. msm_routing_put_audio_mixer),
  9522. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9523. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9524. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9525. msm_routing_put_audio_mixer),
  9526. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9527. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9528. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9529. msm_routing_put_audio_mixer),
  9530. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9531. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9532. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9533. msm_routing_put_audio_mixer),
  9534. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9535. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9536. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9537. msm_routing_put_audio_mixer),
  9538. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9539. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9540. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9541. msm_routing_put_audio_mixer),
  9542. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9543. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9544. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9545. msm_routing_put_audio_mixer),
  9546. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9547. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9548. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9549. msm_routing_put_audio_mixer),
  9550. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9551. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9552. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9553. msm_routing_put_audio_mixer),
  9554. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9555. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9556. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9557. msm_routing_put_audio_mixer),
  9558. };
  9559. static const struct snd_kcontrol_new sec_tdm_rx_1_mixer_controls[] = {
  9560. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9561. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9562. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9563. msm_routing_put_audio_mixer),
  9564. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9565. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9566. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9567. msm_routing_put_audio_mixer),
  9568. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9569. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9570. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9571. msm_routing_put_audio_mixer),
  9572. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9573. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9574. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9575. msm_routing_put_audio_mixer),
  9576. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9577. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9578. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9579. msm_routing_put_audio_mixer),
  9580. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9581. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9582. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9583. msm_routing_put_audio_mixer),
  9584. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9585. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9586. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9587. msm_routing_put_audio_mixer),
  9588. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9589. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9590. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9591. msm_routing_put_audio_mixer),
  9592. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9593. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9594. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9595. msm_routing_put_audio_mixer),
  9596. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9597. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9598. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9599. msm_routing_put_audio_mixer),
  9600. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9601. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9602. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9603. msm_routing_put_audio_mixer),
  9604. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9605. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9606. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9607. msm_routing_put_audio_mixer),
  9608. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9609. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9610. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9611. msm_routing_put_audio_mixer),
  9612. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9613. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9614. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9615. msm_routing_put_audio_mixer),
  9616. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9617. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9618. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9619. msm_routing_put_audio_mixer),
  9620. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9621. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9622. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9623. msm_routing_put_audio_mixer),
  9624. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9625. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9626. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9627. msm_routing_put_audio_mixer),
  9628. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9629. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9630. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9631. msm_routing_put_audio_mixer),
  9632. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9633. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9634. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9635. msm_routing_put_audio_mixer),
  9636. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9637. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9638. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9639. msm_routing_put_audio_mixer),
  9640. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9641. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9642. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9643. msm_routing_put_audio_mixer),
  9644. };
  9645. static const struct snd_kcontrol_new sec_tdm_rx_2_mixer_controls[] = {
  9646. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9647. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9648. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9649. msm_routing_put_audio_mixer),
  9650. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9651. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9652. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9653. msm_routing_put_audio_mixer),
  9654. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9655. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9656. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9657. msm_routing_put_audio_mixer),
  9658. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9659. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9660. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9661. msm_routing_put_audio_mixer),
  9662. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9663. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9664. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9665. msm_routing_put_audio_mixer),
  9666. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9667. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9668. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9669. msm_routing_put_audio_mixer),
  9670. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9671. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9672. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9673. msm_routing_put_audio_mixer),
  9674. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9675. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9676. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9677. msm_routing_put_audio_mixer),
  9678. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9679. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9680. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9681. msm_routing_put_audio_mixer),
  9682. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9683. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9684. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9685. msm_routing_put_audio_mixer),
  9686. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9687. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9688. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9689. msm_routing_put_audio_mixer),
  9690. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9691. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9692. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9693. msm_routing_put_audio_mixer),
  9694. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9695. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9696. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9697. msm_routing_put_audio_mixer),
  9698. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9699. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9700. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9701. msm_routing_put_audio_mixer),
  9702. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9703. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9704. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9705. msm_routing_put_audio_mixer),
  9706. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9707. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9708. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9709. msm_routing_put_audio_mixer),
  9710. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9711. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9712. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9713. msm_routing_put_audio_mixer),
  9714. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9715. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9716. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9717. msm_routing_put_audio_mixer),
  9718. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9719. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9720. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9721. msm_routing_put_audio_mixer),
  9722. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9723. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9724. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9725. msm_routing_put_audio_mixer),
  9726. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9727. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9728. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9729. msm_routing_put_audio_mixer),
  9730. };
  9731. static const struct snd_kcontrol_new sec_tdm_rx_3_mixer_controls[] = {
  9732. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9733. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9734. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9735. msm_routing_put_audio_mixer),
  9736. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9737. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9738. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9739. msm_routing_put_audio_mixer),
  9740. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9741. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9742. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9743. msm_routing_put_audio_mixer),
  9744. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9745. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9746. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9747. msm_routing_put_audio_mixer),
  9748. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9749. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9750. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9751. msm_routing_put_audio_mixer),
  9752. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9753. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9754. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9755. msm_routing_put_audio_mixer),
  9756. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9757. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9758. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9759. msm_routing_put_audio_mixer),
  9760. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9761. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9762. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9763. msm_routing_put_audio_mixer),
  9764. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9765. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9766. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9767. msm_routing_put_audio_mixer),
  9768. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9769. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9770. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9771. msm_routing_put_audio_mixer),
  9772. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9773. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9774. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9775. msm_routing_put_audio_mixer),
  9776. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9777. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9778. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9779. msm_routing_put_audio_mixer),
  9780. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9781. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9782. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9783. msm_routing_put_audio_mixer),
  9784. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9785. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9786. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9787. msm_routing_put_audio_mixer),
  9788. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9789. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9790. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9791. msm_routing_put_audio_mixer),
  9792. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9793. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9794. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9795. msm_routing_put_audio_mixer),
  9796. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9797. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9798. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9799. msm_routing_put_audio_mixer),
  9800. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9801. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9802. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9803. msm_routing_put_audio_mixer),
  9804. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9805. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9806. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9807. msm_routing_put_audio_mixer),
  9808. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9809. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9810. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9811. msm_routing_put_audio_mixer),
  9812. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9813. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9814. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9815. msm_routing_put_audio_mixer),
  9816. };
  9817. static const struct snd_kcontrol_new sec_tdm_tx_0_mixer_controls[] = {
  9818. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9819. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9820. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9821. msm_routing_put_audio_mixer),
  9822. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9823. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9824. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9825. msm_routing_put_audio_mixer),
  9826. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9827. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9828. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9829. msm_routing_put_audio_mixer),
  9830. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9831. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9832. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9833. msm_routing_put_audio_mixer),
  9834. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9835. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9836. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9837. msm_routing_put_audio_mixer),
  9838. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9839. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9840. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9841. msm_routing_put_audio_mixer),
  9842. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9843. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9844. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9845. msm_routing_put_audio_mixer),
  9846. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9847. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9848. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9849. msm_routing_put_audio_mixer),
  9850. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9851. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9852. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9853. msm_routing_put_audio_mixer),
  9854. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9855. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9856. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9857. msm_routing_put_audio_mixer),
  9858. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9859. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9860. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9861. msm_routing_put_audio_mixer),
  9862. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9863. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9864. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9865. msm_routing_put_audio_mixer),
  9866. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9867. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9868. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9869. msm_routing_put_audio_mixer),
  9870. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9871. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9872. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9873. msm_routing_put_audio_mixer),
  9874. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9875. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9876. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9877. msm_routing_put_audio_mixer),
  9878. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9879. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9880. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9881. msm_routing_put_audio_mixer),
  9882. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9883. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9884. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9885. msm_routing_put_audio_mixer),
  9886. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9887. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9888. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9889. msm_routing_put_audio_mixer),
  9890. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9891. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9892. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9893. msm_routing_put_audio_mixer),
  9894. };
  9895. static const struct snd_kcontrol_new tert_tdm_rx_0_mixer_controls[] = {
  9896. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9897. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9898. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9899. msm_routing_put_audio_mixer),
  9900. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9901. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9902. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9903. msm_routing_put_audio_mixer),
  9904. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9905. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9906. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9907. msm_routing_put_audio_mixer),
  9908. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9909. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9910. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9911. msm_routing_put_audio_mixer),
  9912. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9913. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9914. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9915. msm_routing_put_audio_mixer),
  9916. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9917. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9918. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9919. msm_routing_put_audio_mixer),
  9920. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9921. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9922. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9923. msm_routing_put_audio_mixer),
  9924. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9925. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9926. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9927. msm_routing_put_audio_mixer),
  9928. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9929. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9930. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9931. msm_routing_put_audio_mixer),
  9932. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9933. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9934. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9935. msm_routing_put_audio_mixer),
  9936. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9937. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9938. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9939. msm_routing_put_audio_mixer),
  9940. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9941. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9942. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9943. msm_routing_put_audio_mixer),
  9944. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9945. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9946. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9947. msm_routing_put_audio_mixer),
  9948. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9949. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9950. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9951. msm_routing_put_audio_mixer),
  9952. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9953. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9954. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9955. msm_routing_put_audio_mixer),
  9956. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9957. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9958. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9959. msm_routing_put_audio_mixer),
  9960. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9961. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9962. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9963. msm_routing_put_audio_mixer),
  9964. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9965. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9966. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9967. msm_routing_put_audio_mixer),
  9968. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9969. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9970. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9971. msm_routing_put_audio_mixer),
  9972. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9973. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9974. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9975. msm_routing_put_audio_mixer),
  9976. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9977. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9978. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9979. msm_routing_put_audio_mixer),
  9980. };
  9981. static const struct snd_kcontrol_new tert_tdm_tx_0_mixer_controls[] = {
  9982. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9983. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9984. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9985. msm_routing_put_audio_mixer),
  9986. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9987. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9988. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9989. msm_routing_put_audio_mixer),
  9990. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9991. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9992. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9993. msm_routing_put_audio_mixer),
  9994. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9995. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9996. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9997. msm_routing_put_audio_mixer),
  9998. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9999. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10000. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10001. msm_routing_put_audio_mixer),
  10002. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10003. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10004. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10005. msm_routing_put_audio_mixer),
  10006. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10007. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10008. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10009. msm_routing_put_audio_mixer),
  10010. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10011. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10012. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10013. msm_routing_put_audio_mixer),
  10014. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10015. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10016. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10017. msm_routing_put_audio_mixer),
  10018. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10019. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10020. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10021. msm_routing_put_audio_mixer),
  10022. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10023. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10024. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10025. msm_routing_put_audio_mixer),
  10026. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10027. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10028. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10029. msm_routing_put_audio_mixer),
  10030. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10031. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10032. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10033. msm_routing_put_audio_mixer),
  10034. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10035. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10036. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10037. msm_routing_put_audio_mixer),
  10038. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10039. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10040. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10041. msm_routing_put_audio_mixer),
  10042. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10043. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10044. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10045. msm_routing_put_audio_mixer),
  10046. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10047. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10048. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10049. msm_routing_put_audio_mixer),
  10050. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10051. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10052. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10053. msm_routing_put_audio_mixer),
  10054. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10055. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10056. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10057. msm_routing_put_audio_mixer),
  10058. };
  10059. static const struct snd_kcontrol_new tert_tdm_rx_1_mixer_controls[] = {
  10060. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10061. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10062. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10063. msm_routing_put_audio_mixer),
  10064. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10065. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10066. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10067. msm_routing_put_audio_mixer),
  10068. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10069. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10070. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10071. msm_routing_put_audio_mixer),
  10072. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10073. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10074. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10075. msm_routing_put_audio_mixer),
  10076. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10077. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10078. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10079. msm_routing_put_audio_mixer),
  10080. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10081. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10082. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10083. msm_routing_put_audio_mixer),
  10084. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10085. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10086. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10087. msm_routing_put_audio_mixer),
  10088. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10089. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10090. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10091. msm_routing_put_audio_mixer),
  10092. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10093. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10094. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10095. msm_routing_put_audio_mixer),
  10096. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10097. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10098. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10099. msm_routing_put_audio_mixer),
  10100. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10101. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10102. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10103. msm_routing_put_audio_mixer),
  10104. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10105. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10106. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10107. msm_routing_put_audio_mixer),
  10108. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10109. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10110. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10111. msm_routing_put_audio_mixer),
  10112. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10113. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10114. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10115. msm_routing_put_audio_mixer),
  10116. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10117. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10118. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10119. msm_routing_put_audio_mixer),
  10120. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10121. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10122. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10123. msm_routing_put_audio_mixer),
  10124. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10125. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10126. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10127. msm_routing_put_audio_mixer),
  10128. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10129. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10130. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10131. msm_routing_put_audio_mixer),
  10132. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10133. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10134. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10135. msm_routing_put_audio_mixer),
  10136. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10137. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10138. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10139. msm_routing_put_audio_mixer),
  10140. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10141. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10142. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10143. msm_routing_put_audio_mixer),
  10144. };
  10145. static const struct snd_kcontrol_new tert_tdm_rx_2_mixer_controls[] = {
  10146. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10147. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10148. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10149. msm_routing_put_audio_mixer),
  10150. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10151. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10152. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10153. msm_routing_put_audio_mixer),
  10154. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10155. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10156. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10157. msm_routing_put_audio_mixer),
  10158. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10159. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10160. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10161. msm_routing_put_audio_mixer),
  10162. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10163. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10164. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10165. msm_routing_put_audio_mixer),
  10166. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10167. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10168. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10169. msm_routing_put_audio_mixer),
  10170. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10171. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10172. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10173. msm_routing_put_audio_mixer),
  10174. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10175. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10176. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10177. msm_routing_put_audio_mixer),
  10178. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10179. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10180. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10181. msm_routing_put_audio_mixer),
  10182. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10183. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10184. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10185. msm_routing_put_audio_mixer),
  10186. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10187. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10188. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10189. msm_routing_put_audio_mixer),
  10190. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10191. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10192. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10193. msm_routing_put_audio_mixer),
  10194. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10195. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10196. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10197. msm_routing_put_audio_mixer),
  10198. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10199. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10200. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10201. msm_routing_put_audio_mixer),
  10202. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10203. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10204. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10205. msm_routing_put_audio_mixer),
  10206. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10207. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10208. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10209. msm_routing_put_audio_mixer),
  10210. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10211. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10212. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10213. msm_routing_put_audio_mixer),
  10214. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10215. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10216. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10217. msm_routing_put_audio_mixer),
  10218. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10219. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10220. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10221. msm_routing_put_audio_mixer),
  10222. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10223. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10224. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10225. msm_routing_put_audio_mixer),
  10226. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10227. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10228. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10229. msm_routing_put_audio_mixer),
  10230. };
  10231. static const struct snd_kcontrol_new tert_tdm_rx_3_mixer_controls[] = {
  10232. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10233. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10234. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10235. msm_routing_put_audio_mixer),
  10236. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10237. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10238. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10239. msm_routing_put_audio_mixer),
  10240. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10241. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10242. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10243. msm_routing_put_audio_mixer),
  10244. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10245. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10246. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10247. msm_routing_put_audio_mixer),
  10248. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10249. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10250. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10251. msm_routing_put_audio_mixer),
  10252. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10253. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10254. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10255. msm_routing_put_audio_mixer),
  10256. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10257. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10258. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10259. msm_routing_put_audio_mixer),
  10260. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10261. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10262. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10263. msm_routing_put_audio_mixer),
  10264. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10265. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10266. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10267. msm_routing_put_audio_mixer),
  10268. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10269. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10270. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10271. msm_routing_put_audio_mixer),
  10272. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10273. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10274. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10275. msm_routing_put_audio_mixer),
  10276. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10277. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10278. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10279. msm_routing_put_audio_mixer),
  10280. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10281. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10282. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10283. msm_routing_put_audio_mixer),
  10284. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10285. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10286. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10287. msm_routing_put_audio_mixer),
  10288. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10289. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10290. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10291. msm_routing_put_audio_mixer),
  10292. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10293. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10294. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10295. msm_routing_put_audio_mixer),
  10296. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10297. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10298. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10299. msm_routing_put_audio_mixer),
  10300. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10301. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10302. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10303. msm_routing_put_audio_mixer),
  10304. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10305. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10306. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10307. msm_routing_put_audio_mixer),
  10308. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10309. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10310. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10311. msm_routing_put_audio_mixer),
  10312. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10313. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10314. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10315. msm_routing_put_audio_mixer),
  10316. };
  10317. static const struct snd_kcontrol_new tert_tdm_rx_4_mixer_controls[] = {
  10318. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10319. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10320. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10321. msm_routing_put_audio_mixer),
  10322. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10323. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10324. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10325. msm_routing_put_audio_mixer),
  10326. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10327. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10328. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10329. msm_routing_put_audio_mixer),
  10330. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10331. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10332. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10333. msm_routing_put_audio_mixer),
  10334. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10335. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10336. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10337. msm_routing_put_audio_mixer),
  10338. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10339. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10340. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10341. msm_routing_put_audio_mixer),
  10342. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10343. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10344. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10345. msm_routing_put_audio_mixer),
  10346. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10347. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10348. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10349. msm_routing_put_audio_mixer),
  10350. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10351. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10352. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10353. msm_routing_put_audio_mixer),
  10354. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10355. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10356. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10357. msm_routing_put_audio_mixer),
  10358. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10359. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10360. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10361. msm_routing_put_audio_mixer),
  10362. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10363. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10364. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10365. msm_routing_put_audio_mixer),
  10366. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10367. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10368. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10369. msm_routing_put_audio_mixer),
  10370. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10371. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10372. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10373. msm_routing_put_audio_mixer),
  10374. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10375. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10376. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10377. msm_routing_put_audio_mixer),
  10378. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10379. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10380. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10381. msm_routing_put_audio_mixer),
  10382. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10383. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10384. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10385. msm_routing_put_audio_mixer),
  10386. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10387. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10388. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10389. msm_routing_put_audio_mixer),
  10390. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10391. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10392. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10393. msm_routing_put_audio_mixer),
  10394. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10395. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10396. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10397. msm_routing_put_audio_mixer),
  10398. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10399. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10400. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10401. msm_routing_put_audio_mixer),
  10402. };
  10403. static const struct snd_kcontrol_new quat_tdm_rx_0_mixer_controls[] = {
  10404. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10405. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10406. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10407. msm_routing_put_audio_mixer),
  10408. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10409. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10410. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10411. msm_routing_put_audio_mixer),
  10412. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10413. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10414. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10415. msm_routing_put_audio_mixer),
  10416. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10417. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10418. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10419. msm_routing_put_audio_mixer),
  10420. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10421. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10422. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10423. msm_routing_put_audio_mixer),
  10424. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10425. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10426. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10427. msm_routing_put_audio_mixer),
  10428. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10429. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10430. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10431. msm_routing_put_audio_mixer),
  10432. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10433. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10434. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10435. msm_routing_put_audio_mixer),
  10436. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10437. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10438. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10439. msm_routing_put_audio_mixer),
  10440. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10441. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10442. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10443. msm_routing_put_audio_mixer),
  10444. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10445. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10446. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10447. msm_routing_put_audio_mixer),
  10448. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10449. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10450. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10451. msm_routing_put_audio_mixer),
  10452. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10453. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10454. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10455. msm_routing_put_audio_mixer),
  10456. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10457. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10458. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10459. msm_routing_put_audio_mixer),
  10460. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10461. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10462. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10463. msm_routing_put_audio_mixer),
  10464. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10465. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10466. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10467. msm_routing_put_audio_mixer),
  10468. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10469. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10470. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10471. msm_routing_put_audio_mixer),
  10472. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10473. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10474. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10475. msm_routing_put_audio_mixer),
  10476. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10477. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10478. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10479. msm_routing_put_audio_mixer),
  10480. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10481. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10482. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10483. msm_routing_put_audio_mixer),
  10484. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10485. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10486. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10487. msm_routing_put_audio_mixer),
  10488. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10489. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10490. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10491. msm_routing_put_audio_mixer),
  10492. };
  10493. static const struct snd_kcontrol_new quat_tdm_tx_0_mixer_controls[] = {
  10494. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10495. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10496. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10497. msm_routing_put_audio_mixer),
  10498. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10499. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10500. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10501. msm_routing_put_audio_mixer),
  10502. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10503. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10504. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10505. msm_routing_put_audio_mixer),
  10506. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10507. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10508. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10509. msm_routing_put_audio_mixer),
  10510. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10511. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10512. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10513. msm_routing_put_audio_mixer),
  10514. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10515. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10516. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10517. msm_routing_put_audio_mixer),
  10518. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10519. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10520. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10521. msm_routing_put_audio_mixer),
  10522. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10523. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10524. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10525. msm_routing_put_audio_mixer),
  10526. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10527. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10528. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10529. msm_routing_put_audio_mixer),
  10530. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10531. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10532. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10533. msm_routing_put_audio_mixer),
  10534. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10535. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10536. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10537. msm_routing_put_audio_mixer),
  10538. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10539. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10540. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10541. msm_routing_put_audio_mixer),
  10542. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10543. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10544. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10545. msm_routing_put_audio_mixer),
  10546. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10547. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10548. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10549. msm_routing_put_audio_mixer),
  10550. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10551. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10552. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10553. msm_routing_put_audio_mixer),
  10554. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10555. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10556. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10557. msm_routing_put_audio_mixer),
  10558. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10559. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10560. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10561. msm_routing_put_audio_mixer),
  10562. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10563. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10564. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10565. msm_routing_put_audio_mixer),
  10566. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10567. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10568. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10569. msm_routing_put_audio_mixer),
  10570. };
  10571. static const struct snd_kcontrol_new quat_tdm_rx_1_mixer_controls[] = {
  10572. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10573. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10574. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10575. msm_routing_put_audio_mixer),
  10576. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10577. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10578. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10579. msm_routing_put_audio_mixer),
  10580. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10581. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10582. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10583. msm_routing_put_audio_mixer),
  10584. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10585. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10586. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10587. msm_routing_put_audio_mixer),
  10588. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10589. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10590. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10591. msm_routing_put_audio_mixer),
  10592. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10593. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10594. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10595. msm_routing_put_audio_mixer),
  10596. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10597. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10598. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10599. msm_routing_put_audio_mixer),
  10600. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10601. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10602. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10603. msm_routing_put_audio_mixer),
  10604. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10605. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10606. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10607. msm_routing_put_audio_mixer),
  10608. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10609. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10610. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10611. msm_routing_put_audio_mixer),
  10612. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10613. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10614. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10615. msm_routing_put_audio_mixer),
  10616. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10617. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10618. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10619. msm_routing_put_audio_mixer),
  10620. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10621. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10622. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10623. msm_routing_put_audio_mixer),
  10624. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10625. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10626. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10627. msm_routing_put_audio_mixer),
  10628. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10629. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10630. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10631. msm_routing_put_audio_mixer),
  10632. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10633. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10634. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10635. msm_routing_put_audio_mixer),
  10636. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10637. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10638. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10639. msm_routing_put_audio_mixer),
  10640. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10641. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10642. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10643. msm_routing_put_audio_mixer),
  10644. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10645. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10646. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10647. msm_routing_put_audio_mixer),
  10648. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10649. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10650. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10651. msm_routing_put_audio_mixer),
  10652. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10653. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10654. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10655. msm_routing_put_audio_mixer),
  10656. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10657. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10658. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10659. msm_routing_put_audio_mixer),
  10660. };
  10661. static const struct snd_kcontrol_new quat_tdm_rx_2_mixer_controls[] = {
  10662. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10663. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10664. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10665. msm_routing_put_audio_mixer),
  10666. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10667. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10668. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10669. msm_routing_put_audio_mixer),
  10670. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10671. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10672. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10673. msm_routing_put_audio_mixer),
  10674. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10675. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10676. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10677. msm_routing_put_audio_mixer),
  10678. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10679. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10680. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10681. msm_routing_put_audio_mixer),
  10682. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10683. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10684. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10685. msm_routing_put_audio_mixer),
  10686. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10687. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10688. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10689. msm_routing_put_audio_mixer),
  10690. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10691. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10692. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10693. msm_routing_put_audio_mixer),
  10694. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10695. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10696. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10697. msm_routing_put_audio_mixer),
  10698. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10699. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10700. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10701. msm_routing_put_audio_mixer),
  10702. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10703. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10704. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10705. msm_routing_put_audio_mixer),
  10706. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10707. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10708. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10709. msm_routing_put_audio_mixer),
  10710. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10711. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10712. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10713. msm_routing_put_audio_mixer),
  10714. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10715. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10716. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10717. msm_routing_put_audio_mixer),
  10718. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10719. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10720. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10721. msm_routing_put_audio_mixer),
  10722. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10723. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10724. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10725. msm_routing_put_audio_mixer),
  10726. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10727. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10728. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10729. msm_routing_put_audio_mixer),
  10730. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10731. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10732. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10733. msm_routing_put_audio_mixer),
  10734. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10735. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10736. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10737. msm_routing_put_audio_mixer),
  10738. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10739. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10740. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10741. msm_routing_put_audio_mixer),
  10742. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10743. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10744. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10745. msm_routing_put_audio_mixer),
  10746. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10747. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10748. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10749. msm_routing_put_audio_mixer),
  10750. };
  10751. static const struct snd_kcontrol_new quat_tdm_rx_3_mixer_controls[] = {
  10752. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10753. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10754. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10755. msm_routing_put_audio_mixer),
  10756. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10757. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10758. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10759. msm_routing_put_audio_mixer),
  10760. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10761. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10762. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10763. msm_routing_put_audio_mixer),
  10764. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10765. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10766. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10767. msm_routing_put_audio_mixer),
  10768. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10769. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10770. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10771. msm_routing_put_audio_mixer),
  10772. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10773. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10774. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10775. msm_routing_put_audio_mixer),
  10776. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10777. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10778. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10779. msm_routing_put_audio_mixer),
  10780. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10781. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10782. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10783. msm_routing_put_audio_mixer),
  10784. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10785. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10786. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10787. msm_routing_put_audio_mixer),
  10788. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10789. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10790. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10791. msm_routing_put_audio_mixer),
  10792. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10793. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10794. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10795. msm_routing_put_audio_mixer),
  10796. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10797. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10798. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10799. msm_routing_put_audio_mixer),
  10800. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10801. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10802. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10803. msm_routing_put_audio_mixer),
  10804. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10805. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10806. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10807. msm_routing_put_audio_mixer),
  10808. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10809. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10810. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10811. msm_routing_put_audio_mixer),
  10812. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10813. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10814. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10815. msm_routing_put_audio_mixer),
  10816. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10817. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10818. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10819. msm_routing_put_audio_mixer),
  10820. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10821. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10822. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10823. msm_routing_put_audio_mixer),
  10824. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10825. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10826. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10827. msm_routing_put_audio_mixer),
  10828. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10829. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10830. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10831. msm_routing_put_audio_mixer),
  10832. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10833. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10834. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10835. msm_routing_put_audio_mixer),
  10836. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10837. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10838. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10839. msm_routing_put_audio_mixer),
  10840. };
  10841. static const struct snd_kcontrol_new quin_tdm_rx_0_mixer_controls[] = {
  10842. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10843. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10844. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10845. msm_routing_put_audio_mixer),
  10846. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10847. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10848. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10849. msm_routing_put_audio_mixer),
  10850. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10851. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10852. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10853. msm_routing_put_audio_mixer),
  10854. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10855. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10856. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10857. msm_routing_put_audio_mixer),
  10858. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10859. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10860. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10861. msm_routing_put_audio_mixer),
  10862. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10863. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10864. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10865. msm_routing_put_audio_mixer),
  10866. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10867. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10868. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10869. msm_routing_put_audio_mixer),
  10870. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10871. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10872. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10873. msm_routing_put_audio_mixer),
  10874. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10875. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10876. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10877. msm_routing_put_audio_mixer),
  10878. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10879. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10880. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10881. msm_routing_put_audio_mixer),
  10882. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10883. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10884. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10885. msm_routing_put_audio_mixer),
  10886. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10887. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10888. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10889. msm_routing_put_audio_mixer),
  10890. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10891. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10892. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10893. msm_routing_put_audio_mixer),
  10894. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10895. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10896. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10897. msm_routing_put_audio_mixer),
  10898. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10899. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10900. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10901. msm_routing_put_audio_mixer),
  10902. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10903. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10904. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10905. msm_routing_put_audio_mixer),
  10906. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10907. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10908. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10909. msm_routing_put_audio_mixer),
  10910. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10911. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10912. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10913. msm_routing_put_audio_mixer),
  10914. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10915. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10916. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10917. msm_routing_put_audio_mixer),
  10918. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10919. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10920. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10921. msm_routing_put_audio_mixer),
  10922. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10923. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10924. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10925. msm_routing_put_audio_mixer),
  10926. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10927. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10928. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10929. msm_routing_put_audio_mixer),
  10930. };
  10931. static const struct snd_kcontrol_new quin_tdm_tx_0_mixer_controls[] = {
  10932. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10933. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10934. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10935. msm_routing_put_audio_mixer),
  10936. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10937. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10938. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10939. msm_routing_put_audio_mixer),
  10940. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10941. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10942. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10943. msm_routing_put_audio_mixer),
  10944. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10945. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10946. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10947. msm_routing_put_audio_mixer),
  10948. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10949. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10950. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10951. msm_routing_put_audio_mixer),
  10952. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10953. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10954. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10955. msm_routing_put_audio_mixer),
  10956. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10957. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10958. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10959. msm_routing_put_audio_mixer),
  10960. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10961. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10962. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10963. msm_routing_put_audio_mixer),
  10964. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10965. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10966. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10967. msm_routing_put_audio_mixer),
  10968. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10969. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10970. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10971. msm_routing_put_audio_mixer),
  10972. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10973. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10974. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10975. msm_routing_put_audio_mixer),
  10976. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10977. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10978. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10979. msm_routing_put_audio_mixer),
  10980. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10981. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10982. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10983. msm_routing_put_audio_mixer),
  10984. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10985. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10986. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10987. msm_routing_put_audio_mixer),
  10988. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10989. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10990. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10991. msm_routing_put_audio_mixer),
  10992. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10993. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10994. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10995. msm_routing_put_audio_mixer),
  10996. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10997. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10998. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10999. msm_routing_put_audio_mixer),
  11000. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11001. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11002. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11003. msm_routing_put_audio_mixer),
  11004. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11005. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11006. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11007. msm_routing_put_audio_mixer),
  11008. };
  11009. static const struct snd_kcontrol_new quin_tdm_tx_1_mixer_controls[] = {
  11010. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11011. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11012. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11013. msm_routing_put_audio_mixer),
  11014. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11015. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11016. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11017. msm_routing_put_audio_mixer),
  11018. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11019. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11020. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11021. msm_routing_put_audio_mixer),
  11022. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11023. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11024. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11025. msm_routing_put_audio_mixer),
  11026. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11027. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11028. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11029. msm_routing_put_audio_mixer),
  11030. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11031. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11032. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11033. msm_routing_put_audio_mixer),
  11034. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11035. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11036. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11037. msm_routing_put_audio_mixer),
  11038. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11039. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11040. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11041. msm_routing_put_audio_mixer),
  11042. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11043. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11044. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11045. msm_routing_put_audio_mixer),
  11046. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11047. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11048. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11049. msm_routing_put_audio_mixer),
  11050. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11051. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11052. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11053. msm_routing_put_audio_mixer),
  11054. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11055. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11056. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11057. msm_routing_put_audio_mixer),
  11058. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11059. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11060. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11061. msm_routing_put_audio_mixer),
  11062. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11063. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11064. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11065. msm_routing_put_audio_mixer),
  11066. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11067. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11068. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11069. msm_routing_put_audio_mixer),
  11070. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11071. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11072. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11073. msm_routing_put_audio_mixer),
  11074. };
  11075. static const struct snd_kcontrol_new quin_tdm_rx_1_mixer_controls[] = {
  11076. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11077. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11078. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11079. msm_routing_put_audio_mixer),
  11080. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11081. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11082. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11083. msm_routing_put_audio_mixer),
  11084. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11085. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11086. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11087. msm_routing_put_audio_mixer),
  11088. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11089. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11090. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11091. msm_routing_put_audio_mixer),
  11092. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11093. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11094. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11095. msm_routing_put_audio_mixer),
  11096. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11097. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11098. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11099. msm_routing_put_audio_mixer),
  11100. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11101. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11102. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11103. msm_routing_put_audio_mixer),
  11104. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11105. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11106. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11107. msm_routing_put_audio_mixer),
  11108. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11109. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11110. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11111. msm_routing_put_audio_mixer),
  11112. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11113. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11114. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11115. msm_routing_put_audio_mixer),
  11116. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11117. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11118. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11119. msm_routing_put_audio_mixer),
  11120. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11121. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11122. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11123. msm_routing_put_audio_mixer),
  11124. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11125. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11126. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11127. msm_routing_put_audio_mixer),
  11128. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11129. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11130. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11131. msm_routing_put_audio_mixer),
  11132. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11133. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11134. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11135. msm_routing_put_audio_mixer),
  11136. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11137. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11138. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11139. msm_routing_put_audio_mixer),
  11140. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11141. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11142. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11143. msm_routing_put_audio_mixer),
  11144. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11145. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11146. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11147. msm_routing_put_audio_mixer),
  11148. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11149. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11150. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11151. msm_routing_put_audio_mixer),
  11152. };
  11153. static const struct snd_kcontrol_new quin_tdm_tx_2_mixer_controls[] = {
  11154. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11155. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11156. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11157. msm_routing_put_audio_mixer),
  11158. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11159. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11160. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11161. msm_routing_put_audio_mixer),
  11162. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11163. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11164. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11165. msm_routing_put_audio_mixer),
  11166. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11167. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11168. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11169. msm_routing_put_audio_mixer),
  11170. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11171. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11172. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11173. msm_routing_put_audio_mixer),
  11174. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11175. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11176. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11177. msm_routing_put_audio_mixer),
  11178. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11179. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11180. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11181. msm_routing_put_audio_mixer),
  11182. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11183. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11184. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11185. msm_routing_put_audio_mixer),
  11186. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11187. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11188. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11189. msm_routing_put_audio_mixer),
  11190. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11191. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11192. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11193. msm_routing_put_audio_mixer),
  11194. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11195. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11196. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11197. msm_routing_put_audio_mixer),
  11198. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11199. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11200. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11201. msm_routing_put_audio_mixer),
  11202. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11203. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11204. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11205. msm_routing_put_audio_mixer),
  11206. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11207. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11208. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11209. msm_routing_put_audio_mixer),
  11210. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11211. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11212. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11213. msm_routing_put_audio_mixer),
  11214. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11215. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11216. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11217. msm_routing_put_audio_mixer),
  11218. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11219. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11220. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11221. msm_routing_put_audio_mixer),
  11222. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11223. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11224. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11225. msm_routing_put_audio_mixer),
  11226. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11227. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11228. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11229. msm_routing_put_audio_mixer),
  11230. };
  11231. static const struct snd_kcontrol_new quin_tdm_rx_2_mixer_controls[] = {
  11232. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11233. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11234. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11235. msm_routing_put_audio_mixer),
  11236. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11237. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11238. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11239. msm_routing_put_audio_mixer),
  11240. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11241. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11242. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11243. msm_routing_put_audio_mixer),
  11244. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11245. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11246. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11247. msm_routing_put_audio_mixer),
  11248. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11249. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11250. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11251. msm_routing_put_audio_mixer),
  11252. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11253. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11254. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11255. msm_routing_put_audio_mixer),
  11256. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11257. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11258. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11259. msm_routing_put_audio_mixer),
  11260. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11261. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11262. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11263. msm_routing_put_audio_mixer),
  11264. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11265. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11266. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11267. msm_routing_put_audio_mixer),
  11268. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11269. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11270. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11271. msm_routing_put_audio_mixer),
  11272. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11273. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11274. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11275. msm_routing_put_audio_mixer),
  11276. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11277. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11278. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11279. msm_routing_put_audio_mixer),
  11280. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11281. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11282. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11283. msm_routing_put_audio_mixer),
  11284. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11285. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11286. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11287. msm_routing_put_audio_mixer),
  11288. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11289. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11290. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11291. msm_routing_put_audio_mixer),
  11292. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11293. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11294. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11295. msm_routing_put_audio_mixer),
  11296. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11297. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11298. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11299. msm_routing_put_audio_mixer),
  11300. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11301. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11302. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11303. msm_routing_put_audio_mixer),
  11304. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11305. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11306. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11307. msm_routing_put_audio_mixer),
  11308. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11309. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11310. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11311. msm_routing_put_audio_mixer),
  11312. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11313. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11314. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11315. msm_routing_put_audio_mixer),
  11316. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11317. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11318. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11319. msm_routing_put_audio_mixer),
  11320. };
  11321. static const struct snd_kcontrol_new quin_tdm_tx_3_mixer_controls[] = {
  11322. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11323. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11324. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11325. msm_routing_put_audio_mixer),
  11326. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11327. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11328. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11329. msm_routing_put_audio_mixer),
  11330. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11331. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11332. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11333. msm_routing_put_audio_mixer),
  11334. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11335. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11336. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11337. msm_routing_put_audio_mixer),
  11338. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11339. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11340. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11341. msm_routing_put_audio_mixer),
  11342. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11343. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11344. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11345. msm_routing_put_audio_mixer),
  11346. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11347. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11348. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11349. msm_routing_put_audio_mixer),
  11350. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11351. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11352. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11353. msm_routing_put_audio_mixer),
  11354. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11355. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11356. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11357. msm_routing_put_audio_mixer),
  11358. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11359. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11360. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11361. msm_routing_put_audio_mixer),
  11362. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11363. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11364. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11365. msm_routing_put_audio_mixer),
  11366. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11367. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11368. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11369. msm_routing_put_audio_mixer),
  11370. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11371. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11372. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11373. msm_routing_put_audio_mixer),
  11374. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11375. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11376. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11377. msm_routing_put_audio_mixer),
  11378. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11379. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11380. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11381. msm_routing_put_audio_mixer),
  11382. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11383. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11384. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11385. msm_routing_put_audio_mixer),
  11386. };
  11387. static const struct snd_kcontrol_new quin_tdm_rx_3_mixer_controls[] = {
  11388. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11389. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11390. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11391. msm_routing_put_audio_mixer),
  11392. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11393. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11394. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11395. msm_routing_put_audio_mixer),
  11396. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11397. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11398. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11399. msm_routing_put_audio_mixer),
  11400. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11401. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11402. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11403. msm_routing_put_audio_mixer),
  11404. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11405. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11406. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11407. msm_routing_put_audio_mixer),
  11408. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11409. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11410. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11411. msm_routing_put_audio_mixer),
  11412. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11413. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11414. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11415. msm_routing_put_audio_mixer),
  11416. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11417. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11418. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11419. msm_routing_put_audio_mixer),
  11420. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11421. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11422. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11423. msm_routing_put_audio_mixer),
  11424. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11425. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11426. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11427. msm_routing_put_audio_mixer),
  11428. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11429. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11430. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11431. msm_routing_put_audio_mixer),
  11432. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11433. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11434. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11435. msm_routing_put_audio_mixer),
  11436. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11437. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11438. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11439. msm_routing_put_audio_mixer),
  11440. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11441. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11442. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11443. msm_routing_put_audio_mixer),
  11444. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11445. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11446. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11447. msm_routing_put_audio_mixer),
  11448. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11449. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11450. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11451. msm_routing_put_audio_mixer),
  11452. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11453. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11454. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11455. msm_routing_put_audio_mixer),
  11456. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11457. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11458. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11459. msm_routing_put_audio_mixer),
  11460. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11461. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11462. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11463. msm_routing_put_audio_mixer),
  11464. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11465. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11466. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11467. msm_routing_put_audio_mixer),
  11468. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11469. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11470. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11471. msm_routing_put_audio_mixer),
  11472. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11473. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11474. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11475. msm_routing_put_audio_mixer),
  11476. };
  11477. static const struct snd_kcontrol_new sen_tdm_rx_0_mixer_controls[] = {
  11478. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11479. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11480. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11481. msm_routing_put_audio_mixer),
  11482. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11483. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11484. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11485. msm_routing_put_audio_mixer),
  11486. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11487. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11488. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11489. msm_routing_put_audio_mixer),
  11490. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11491. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11492. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11493. msm_routing_put_audio_mixer),
  11494. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11495. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11496. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11497. msm_routing_put_audio_mixer),
  11498. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11499. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11500. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11501. msm_routing_put_audio_mixer),
  11502. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11503. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11504. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11505. msm_routing_put_audio_mixer),
  11506. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11507. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11508. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11509. msm_routing_put_audio_mixer),
  11510. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11511. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11512. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11513. msm_routing_put_audio_mixer),
  11514. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11515. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11516. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11517. msm_routing_put_audio_mixer),
  11518. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11519. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11520. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11521. msm_routing_put_audio_mixer),
  11522. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11523. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11524. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11525. msm_routing_put_audio_mixer),
  11526. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11527. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11528. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11529. msm_routing_put_audio_mixer),
  11530. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11531. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11532. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11533. msm_routing_put_audio_mixer),
  11534. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11535. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11536. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11537. msm_routing_put_audio_mixer),
  11538. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11539. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11540. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11541. msm_routing_put_audio_mixer),
  11542. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11543. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11544. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11545. msm_routing_put_audio_mixer),
  11546. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11547. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11548. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11549. msm_routing_put_audio_mixer),
  11550. };
  11551. static const struct snd_kcontrol_new sen_tdm_tx_0_mixer_controls[] = {
  11552. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11553. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11554. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11555. msm_routing_put_audio_mixer),
  11556. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11557. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11558. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11559. msm_routing_put_audio_mixer),
  11560. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11561. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11562. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11563. msm_routing_put_audio_mixer),
  11564. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11565. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11566. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11567. msm_routing_put_audio_mixer),
  11568. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11569. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11570. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11571. msm_routing_put_audio_mixer),
  11572. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11573. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11574. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11575. msm_routing_put_audio_mixer),
  11576. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11577. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11578. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11579. msm_routing_put_audio_mixer),
  11580. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11581. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11582. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11583. msm_routing_put_audio_mixer),
  11584. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11585. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11586. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11587. msm_routing_put_audio_mixer),
  11588. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11589. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11590. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11591. msm_routing_put_audio_mixer),
  11592. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11593. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11594. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11595. msm_routing_put_audio_mixer),
  11596. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11597. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11598. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11599. msm_routing_put_audio_mixer),
  11600. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11601. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11602. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11603. msm_routing_put_audio_mixer),
  11604. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11605. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11606. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11607. msm_routing_put_audio_mixer),
  11608. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11609. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11610. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11611. msm_routing_put_audio_mixer),
  11612. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11613. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11614. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11615. msm_routing_put_audio_mixer),
  11616. };
  11617. static const struct snd_kcontrol_new sen_tdm_rx_1_mixer_controls[] = {
  11618. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11619. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11620. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11621. msm_routing_put_audio_mixer),
  11622. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11623. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11624. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11625. msm_routing_put_audio_mixer),
  11626. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11627. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11628. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11629. msm_routing_put_audio_mixer),
  11630. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11631. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11632. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11633. msm_routing_put_audio_mixer),
  11634. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11635. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11636. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11637. msm_routing_put_audio_mixer),
  11638. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11639. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11640. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11641. msm_routing_put_audio_mixer),
  11642. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11643. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11644. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11645. msm_routing_put_audio_mixer),
  11646. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11647. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11648. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11649. msm_routing_put_audio_mixer),
  11650. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11651. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11652. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11653. msm_routing_put_audio_mixer),
  11654. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11655. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11656. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11657. msm_routing_put_audio_mixer),
  11658. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11659. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11660. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11661. msm_routing_put_audio_mixer),
  11662. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11663. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11664. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11665. msm_routing_put_audio_mixer),
  11666. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11667. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11668. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11669. msm_routing_put_audio_mixer),
  11670. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11671. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11672. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11673. msm_routing_put_audio_mixer),
  11674. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11675. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11676. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11677. msm_routing_put_audio_mixer),
  11678. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11679. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11680. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11681. msm_routing_put_audio_mixer),
  11682. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11683. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11684. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11685. msm_routing_put_audio_mixer),
  11686. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11687. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11688. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11689. msm_routing_put_audio_mixer),
  11690. };
  11691. static const struct snd_kcontrol_new sen_tdm_rx_2_mixer_controls[] = {
  11692. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11693. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11694. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11695. msm_routing_put_audio_mixer),
  11696. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11697. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11698. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11699. msm_routing_put_audio_mixer),
  11700. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11701. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11702. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11703. msm_routing_put_audio_mixer),
  11704. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11705. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11706. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11707. msm_routing_put_audio_mixer),
  11708. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11709. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11710. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11711. msm_routing_put_audio_mixer),
  11712. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11713. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11714. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11715. msm_routing_put_audio_mixer),
  11716. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11717. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11718. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11719. msm_routing_put_audio_mixer),
  11720. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11721. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11722. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11723. msm_routing_put_audio_mixer),
  11724. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11725. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11726. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11727. msm_routing_put_audio_mixer),
  11728. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11729. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11730. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11731. msm_routing_put_audio_mixer),
  11732. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11733. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11734. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11735. msm_routing_put_audio_mixer),
  11736. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11737. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11738. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11739. msm_routing_put_audio_mixer),
  11740. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11741. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11742. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11743. msm_routing_put_audio_mixer),
  11744. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11745. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11746. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11747. msm_routing_put_audio_mixer),
  11748. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11749. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11750. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11751. msm_routing_put_audio_mixer),
  11752. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11753. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11754. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11755. msm_routing_put_audio_mixer),
  11756. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11757. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11758. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11759. msm_routing_put_audio_mixer),
  11760. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11761. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11762. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11763. msm_routing_put_audio_mixer),
  11764. };
  11765. static const struct snd_kcontrol_new sen_tdm_rx_3_mixer_controls[] = {
  11766. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11767. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11768. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11769. msm_routing_put_audio_mixer),
  11770. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11771. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11772. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11773. msm_routing_put_audio_mixer),
  11774. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11775. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11776. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11777. msm_routing_put_audio_mixer),
  11778. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11779. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11780. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11781. msm_routing_put_audio_mixer),
  11782. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11783. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11784. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11785. msm_routing_put_audio_mixer),
  11786. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11787. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11788. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11789. msm_routing_put_audio_mixer),
  11790. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11791. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11792. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11793. msm_routing_put_audio_mixer),
  11794. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11795. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11796. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11797. msm_routing_put_audio_mixer),
  11798. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11799. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11800. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11801. msm_routing_put_audio_mixer),
  11802. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11803. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11804. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11805. msm_routing_put_audio_mixer),
  11806. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11807. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11808. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11809. msm_routing_put_audio_mixer),
  11810. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11811. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11812. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11813. msm_routing_put_audio_mixer),
  11814. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11815. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11816. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11817. msm_routing_put_audio_mixer),
  11818. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11819. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11820. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11821. msm_routing_put_audio_mixer),
  11822. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11823. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11824. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11825. msm_routing_put_audio_mixer),
  11826. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11827. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11828. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11829. msm_routing_put_audio_mixer),
  11830. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11831. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11832. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11833. msm_routing_put_audio_mixer),
  11834. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11835. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11836. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11837. msm_routing_put_audio_mixer),
  11838. };
  11839. static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
  11840. SOC_DOUBLE_EXT("PRI_TX", SND_SOC_NOPM,
  11841. MSM_BACKEND_DAI_PRI_I2S_TX,
  11842. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11843. msm_routing_put_audio_mixer),
  11844. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11845. MSM_BACKEND_DAI_MI2S_TX,
  11846. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11847. msm_routing_put_audio_mixer),
  11848. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11849. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11850. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11851. msm_routing_put_audio_mixer),
  11852. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11853. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11854. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11855. msm_routing_put_audio_mixer),
  11856. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11857. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11858. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11859. msm_routing_put_audio_mixer),
  11860. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11861. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11862. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11863. msm_routing_put_audio_mixer),
  11864. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11865. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11866. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11867. msm_routing_put_audio_mixer),
  11868. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11869. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11870. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11871. msm_routing_put_audio_mixer),
  11872. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11873. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11874. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11875. msm_routing_put_audio_mixer),
  11876. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11877. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11878. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11879. msm_routing_put_audio_mixer),
  11880. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11881. MSM_BACKEND_DAI_AUXPCM_TX,
  11882. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11883. msm_routing_put_audio_mixer),
  11884. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11885. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11886. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11887. msm_routing_put_audio_mixer),
  11888. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11889. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  11890. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11891. msm_routing_put_audio_mixer),
  11892. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11893. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  11894. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11895. msm_routing_put_audio_mixer),
  11896. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  11897. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  11898. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11899. msm_routing_put_audio_mixer),
  11900. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  11901. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  11902. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11903. msm_routing_put_audio_mixer),
  11904. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11905. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11906. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11907. msm_routing_put_audio_mixer),
  11908. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11909. MSM_BACKEND_DAI_INT_FM_TX,
  11910. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11911. msm_routing_put_audio_mixer),
  11912. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11913. MSM_BACKEND_DAI_AFE_PCM_TX,
  11914. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11915. msm_routing_put_audio_mixer),
  11916. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11917. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11918. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11919. msm_routing_put_audio_mixer),
  11920. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11921. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11922. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11923. msm_routing_put_audio_mixer),
  11924. SOC_DOUBLE_EXT("SLIM_4_TX", SND_SOC_NOPM,
  11925. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  11926. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11927. msm_routing_put_audio_mixer),
  11928. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  11929. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  11930. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11931. msm_routing_put_audio_mixer),
  11932. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11933. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  11934. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11935. msm_routing_put_audio_mixer),
  11936. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  11937. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  11938. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11939. msm_routing_put_audio_mixer),
  11940. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11941. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11942. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11943. msm_routing_put_audio_mixer),
  11944. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11945. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11946. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11947. msm_routing_put_audio_mixer),
  11948. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11949. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11950. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11951. msm_routing_put_audio_mixer),
  11952. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11953. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11954. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11955. msm_routing_put_audio_mixer),
  11956. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11957. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11958. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11959. msm_routing_put_audio_mixer),
  11960. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11961. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11962. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11963. msm_routing_put_audio_mixer),
  11964. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11965. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11966. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11967. msm_routing_put_audio_mixer),
  11968. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11969. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11970. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11971. msm_routing_put_audio_mixer),
  11972. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11973. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11974. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11975. msm_routing_put_audio_mixer),
  11976. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11977. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11978. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11979. msm_routing_put_audio_mixer),
  11980. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11981. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11982. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11983. msm_routing_put_audio_mixer),
  11984. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11985. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11986. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11987. msm_routing_put_audio_mixer),
  11988. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11989. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11990. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11991. msm_routing_put_audio_mixer),
  11992. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11993. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11994. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11995. msm_routing_put_audio_mixer),
  11996. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11997. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11998. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11999. msm_routing_put_audio_mixer),
  12000. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12001. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12002. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12003. msm_routing_put_audio_mixer),
  12004. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12005. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12006. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12007. msm_routing_put_audio_mixer),
  12008. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12009. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12010. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12011. msm_routing_put_audio_mixer),
  12012. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12013. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12014. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12015. msm_routing_put_audio_mixer),
  12016. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12017. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12018. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12019. msm_routing_put_audio_mixer),
  12020. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12021. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12022. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12023. msm_routing_put_audio_mixer),
  12024. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12025. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12026. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12027. msm_routing_put_audio_mixer),
  12028. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12029. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12030. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12031. msm_routing_put_audio_mixer),
  12032. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12033. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12034. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12035. msm_routing_put_audio_mixer),
  12036. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12037. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12038. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12039. msm_routing_put_audio_mixer),
  12040. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12041. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12042. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12043. msm_routing_put_audio_mixer),
  12044. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12045. MSM_BACKEND_DAI_USB_TX,
  12046. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12047. msm_routing_put_audio_mixer),
  12048. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12049. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12050. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12051. msm_routing_put_audio_mixer),
  12052. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12053. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12054. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12055. msm_routing_put_audio_mixer),
  12056. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12057. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12058. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12059. msm_routing_put_audio_mixer),
  12060. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12061. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12062. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12063. msm_routing_put_audio_mixer),
  12064. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12065. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12066. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12067. msm_routing_put_audio_mixer),
  12068. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12069. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12070. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12071. msm_routing_put_audio_mixer),
  12072. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12073. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12074. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12075. msm_routing_put_audio_mixer),
  12076. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12077. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12078. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12079. msm_routing_put_audio_mixer),
  12080. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12081. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12082. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12083. msm_routing_put_audio_mixer),
  12084. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12085. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12086. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12087. msm_routing_put_audio_mixer),
  12088. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12089. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12090. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12091. msm_routing_put_audio_mixer),
  12092. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12093. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12094. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12095. msm_routing_put_audio_mixer),
  12096. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12097. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12098. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12099. msm_routing_put_audio_mixer),
  12100. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12101. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12102. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12103. msm_routing_put_audio_mixer),
  12104. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  12105. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  12106. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12107. msm_routing_put_audio_mixer),
  12108. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12109. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12110. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12111. msm_routing_put_audio_mixer),
  12112. };
  12113. static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
  12114. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12115. MSM_BACKEND_DAI_INT_FM_TX,
  12116. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12117. msm_routing_put_audio_mixer),
  12118. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12119. MSM_BACKEND_DAI_MI2S_TX,
  12120. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12121. msm_routing_put_audio_mixer),
  12122. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12123. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12124. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12125. msm_routing_put_audio_mixer),
  12126. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12127. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12128. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12129. msm_routing_put_audio_mixer),
  12130. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12131. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12132. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12133. msm_routing_put_audio_mixer),
  12134. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12135. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12136. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12137. msm_routing_put_audio_mixer),
  12138. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12139. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12140. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12141. msm_routing_put_audio_mixer),
  12142. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12143. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12144. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12145. msm_routing_put_audio_mixer),
  12146. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12147. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12148. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12149. msm_routing_put_audio_mixer),
  12150. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  12151. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  12152. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12153. msm_routing_put_audio_mixer),
  12154. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12155. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12156. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12157. msm_routing_put_audio_mixer),
  12158. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  12159. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  12160. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12161. msm_routing_put_audio_mixer),
  12162. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  12163. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  12164. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12165. msm_routing_put_audio_mixer),
  12166. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12167. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12168. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12169. msm_routing_put_audio_mixer),
  12170. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12171. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12172. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12173. msm_routing_put_audio_mixer),
  12174. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12175. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12176. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12177. msm_routing_put_audio_mixer),
  12178. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12179. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12180. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12181. msm_routing_put_audio_mixer),
  12182. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12183. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12184. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12185. msm_routing_put_audio_mixer),
  12186. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12187. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12188. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12189. msm_routing_put_audio_mixer),
  12190. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12191. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12192. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12193. msm_routing_put_audio_mixer),
  12194. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12195. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12196. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12197. msm_routing_put_audio_mixer),
  12198. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12199. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12200. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12201. msm_routing_put_audio_mixer),
  12202. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12203. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12204. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12205. msm_routing_put_audio_mixer),
  12206. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12207. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12208. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12209. msm_routing_put_audio_mixer),
  12210. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12211. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12212. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12213. msm_routing_put_audio_mixer),
  12214. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12215. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12216. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12217. msm_routing_put_audio_mixer),
  12218. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12219. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12220. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12221. msm_routing_put_audio_mixer),
  12222. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12223. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12224. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12225. msm_routing_put_audio_mixer),
  12226. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12227. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12228. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12229. msm_routing_put_audio_mixer),
  12230. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12231. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12232. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12233. msm_routing_put_audio_mixer),
  12234. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12235. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12236. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12237. msm_routing_put_audio_mixer),
  12238. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12239. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12240. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12241. msm_routing_put_audio_mixer),
  12242. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12243. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12244. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12245. msm_routing_put_audio_mixer),
  12246. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12247. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12248. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12249. msm_routing_put_audio_mixer),
  12250. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12251. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12252. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12253. msm_routing_put_audio_mixer),
  12254. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12255. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12256. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12257. msm_routing_put_audio_mixer),
  12258. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12259. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12260. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12261. msm_routing_put_audio_mixer),
  12262. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12263. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12264. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12265. msm_routing_put_audio_mixer),
  12266. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12267. MSM_BACKEND_DAI_USB_TX,
  12268. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12269. msm_routing_put_audio_mixer),
  12270. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12271. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12272. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12273. msm_routing_put_audio_mixer),
  12274. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12275. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12276. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12277. msm_routing_put_audio_mixer),
  12278. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12279. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12280. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12281. msm_routing_put_audio_mixer),
  12282. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12283. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12284. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12285. msm_routing_put_audio_mixer),
  12286. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12287. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12288. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12289. msm_routing_put_audio_mixer),
  12290. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12291. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12292. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12293. msm_routing_put_audio_mixer),
  12294. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12295. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12296. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12297. msm_routing_put_audio_mixer),
  12298. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12299. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12300. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12301. msm_routing_put_audio_mixer),
  12302. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12303. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12304. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12305. msm_routing_put_audio_mixer),
  12306. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12307. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12308. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12309. msm_routing_put_audio_mixer),
  12310. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12311. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12312. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12313. msm_routing_put_audio_mixer),
  12314. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12315. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12316. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12317. msm_routing_put_audio_mixer),
  12318. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12319. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12320. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12321. msm_routing_put_audio_mixer),
  12322. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12323. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12324. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12325. msm_routing_put_audio_mixer),
  12326. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  12327. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  12328. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12329. msm_routing_put_audio_mixer),
  12330. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12331. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12332. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12333. msm_routing_put_audio_mixer),
  12334. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  12335. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12336. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12337. msm_routing_put_audio_mixer),
  12338. };
  12339. static const struct snd_kcontrol_new mmul3_mixer_controls[] = {
  12340. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12341. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12342. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12343. msm_routing_put_audio_mixer),
  12344. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12345. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12346. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12347. msm_routing_put_audio_mixer),
  12348. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12349. MSM_BACKEND_DAI_INT_FM_TX,
  12350. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12351. msm_routing_put_audio_mixer),
  12352. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12353. MSM_BACKEND_DAI_MI2S_TX,
  12354. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12355. msm_routing_put_audio_mixer),
  12356. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12357. MSM_BACKEND_DAI_AFE_PCM_TX,
  12358. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12359. msm_routing_put_audio_mixer),
  12360. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12361. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12362. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12363. msm_routing_put_audio_mixer),
  12364. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  12365. MSM_BACKEND_DAI_AUXPCM_TX,
  12366. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12367. msm_routing_put_audio_mixer),
  12368. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  12369. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12370. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12371. msm_routing_put_audio_mixer),
  12372. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  12373. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12374. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12375. msm_routing_put_audio_mixer),
  12376. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  12377. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12378. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12379. msm_routing_put_audio_mixer),
  12380. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  12381. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12382. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12383. msm_routing_put_audio_mixer),
  12384. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX", SND_SOC_NOPM,
  12385. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  12386. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12387. msm_routing_put_audio_mixer),
  12388. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12389. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12390. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12391. msm_routing_put_audio_mixer),
  12392. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12393. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12394. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12395. msm_routing_put_audio_mixer),
  12396. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12397. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12398. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12399. msm_routing_put_audio_mixer),
  12400. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12401. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12402. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12403. msm_routing_put_audio_mixer),
  12404. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12405. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12406. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12407. msm_routing_put_audio_mixer),
  12408. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12409. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12410. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12411. msm_routing_put_audio_mixer),
  12412. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12413. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12414. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12415. msm_routing_put_audio_mixer),
  12416. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12417. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12418. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12419. msm_routing_put_audio_mixer),
  12420. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12421. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12422. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12423. msm_routing_put_audio_mixer),
  12424. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12425. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12426. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12427. msm_routing_put_audio_mixer),
  12428. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12429. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12430. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12431. msm_routing_put_audio_mixer),
  12432. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12433. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12434. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12435. msm_routing_put_audio_mixer),
  12436. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12437. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12438. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12439. msm_routing_put_audio_mixer),
  12440. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12441. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12442. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12443. msm_routing_put_audio_mixer),
  12444. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12445. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12446. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12447. msm_routing_put_audio_mixer),
  12448. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12449. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12450. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12451. msm_routing_put_audio_mixer),
  12452. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12453. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12454. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12455. msm_routing_put_audio_mixer),
  12456. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12457. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12458. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12459. msm_routing_put_audio_mixer),
  12460. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12461. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12462. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12463. msm_routing_put_audio_mixer),
  12464. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12465. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12466. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12467. msm_routing_put_audio_mixer),
  12468. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12469. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12470. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12471. msm_routing_put_audio_mixer),
  12472. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12473. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12474. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12475. msm_routing_put_audio_mixer),
  12476. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12477. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12478. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12479. msm_routing_put_audio_mixer),
  12480. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12481. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12482. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12483. msm_routing_put_audio_mixer),
  12484. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12485. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12486. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12487. msm_routing_put_audio_mixer),
  12488. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12489. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12490. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12491. msm_routing_put_audio_mixer),
  12492. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12493. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12494. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12495. msm_routing_put_audio_mixer),
  12496. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12497. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12498. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12499. msm_routing_put_audio_mixer),
  12500. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12501. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12502. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12503. msm_routing_put_audio_mixer),
  12504. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12505. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12506. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12507. msm_routing_put_audio_mixer),
  12508. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12509. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12510. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12511. msm_routing_put_audio_mixer),
  12512. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12513. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12514. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12515. msm_routing_put_audio_mixer),
  12516. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12517. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12518. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12519. msm_routing_put_audio_mixer),
  12520. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12521. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12522. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12523. msm_routing_put_audio_mixer),
  12524. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12525. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12526. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12527. msm_routing_put_audio_mixer),
  12528. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12529. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12530. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12531. msm_routing_put_audio_mixer),
  12532. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12533. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12534. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12535. msm_routing_put_audio_mixer),
  12536. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12537. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12538. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12539. msm_routing_put_audio_mixer),
  12540. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12541. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12542. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12543. msm_routing_put_audio_mixer),
  12544. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12545. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12546. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12547. msm_routing_put_audio_mixer),
  12548. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12549. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12550. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12551. msm_routing_put_audio_mixer),
  12552. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12553. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12554. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12555. msm_routing_put_audio_mixer),
  12556. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12557. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12558. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12559. msm_routing_put_audio_mixer),
  12560. };
  12561. static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
  12562. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12563. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12564. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12565. msm_routing_put_audio_mixer),
  12566. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12567. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12568. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12569. msm_routing_put_audio_mixer),
  12570. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12571. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12572. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12573. msm_routing_put_audio_mixer),
  12574. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12575. MSM_BACKEND_DAI_INT_FM_TX,
  12576. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12577. msm_routing_put_audio_mixer),
  12578. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12579. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12580. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12581. msm_routing_put_audio_mixer),
  12582. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12583. MSM_BACKEND_DAI_AFE_PCM_TX,
  12584. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12585. msm_routing_put_audio_mixer),
  12586. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12587. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12588. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12589. msm_routing_put_audio_mixer),
  12590. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12591. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12592. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12593. msm_routing_put_audio_mixer),
  12594. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12595. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12596. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12597. msm_routing_put_audio_mixer),
  12598. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12599. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12600. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12601. msm_routing_put_audio_mixer),
  12602. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12603. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12604. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12605. msm_routing_put_audio_mixer),
  12606. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12607. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12608. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12609. msm_routing_put_audio_mixer),
  12610. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12611. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12612. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12613. msm_routing_put_audio_mixer),
  12614. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12615. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12616. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12617. msm_routing_put_audio_mixer),
  12618. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12619. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12620. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12621. msm_routing_put_audio_mixer),
  12622. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12623. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12624. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12625. msm_routing_put_audio_mixer),
  12626. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12627. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12628. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12629. msm_routing_put_audio_mixer),
  12630. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12631. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12632. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12633. msm_routing_put_audio_mixer),
  12634. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12635. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12636. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12637. msm_routing_put_audio_mixer),
  12638. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12639. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12640. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12641. msm_routing_put_audio_mixer),
  12642. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12643. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12644. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12645. msm_routing_put_audio_mixer),
  12646. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12647. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12648. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12649. msm_routing_put_audio_mixer),
  12650. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12651. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12652. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12653. msm_routing_put_audio_mixer),
  12654. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12655. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12656. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12657. msm_routing_put_audio_mixer),
  12658. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12659. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12660. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12661. msm_routing_put_audio_mixer),
  12662. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12663. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12664. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12665. msm_routing_put_audio_mixer),
  12666. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12667. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12668. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12669. msm_routing_put_audio_mixer),
  12670. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12671. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12672. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12673. msm_routing_put_audio_mixer),
  12674. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12675. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12676. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12677. msm_routing_put_audio_mixer),
  12678. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12679. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12680. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12681. msm_routing_put_audio_mixer),
  12682. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12683. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12684. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12685. msm_routing_put_audio_mixer),
  12686. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12687. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12688. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12689. msm_routing_put_audio_mixer),
  12690. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12691. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12692. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12693. msm_routing_put_audio_mixer),
  12694. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12695. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12696. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12697. msm_routing_put_audio_mixer),
  12698. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12699. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12700. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12701. msm_routing_put_audio_mixer),
  12702. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12703. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12704. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12705. msm_routing_put_audio_mixer),
  12706. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12707. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12708. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12709. msm_routing_put_audio_mixer),
  12710. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12711. MSM_BACKEND_DAI_USB_TX,
  12712. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12713. msm_routing_put_audio_mixer),
  12714. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12715. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12716. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12717. msm_routing_put_audio_mixer),
  12718. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12719. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12720. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12721. msm_routing_put_audio_mixer),
  12722. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12723. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12724. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12725. msm_routing_put_audio_mixer),
  12726. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12727. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12728. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12729. msm_routing_put_audio_mixer),
  12730. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12731. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12732. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12733. msm_routing_put_audio_mixer),
  12734. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12735. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12736. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12737. msm_routing_put_audio_mixer),
  12738. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12739. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12740. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12741. msm_routing_put_audio_mixer),
  12742. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12743. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12744. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12745. msm_routing_put_audio_mixer),
  12746. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12747. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12748. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12749. msm_routing_put_audio_mixer),
  12750. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12751. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12752. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12753. msm_routing_put_audio_mixer),
  12754. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12755. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12756. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12757. msm_routing_put_audio_mixer),
  12758. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12759. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12760. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12761. msm_routing_put_audio_mixer),
  12762. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12763. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12764. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12765. msm_routing_put_audio_mixer),
  12766. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12767. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12768. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12769. msm_routing_put_audio_mixer),
  12770. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12771. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12772. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12773. msm_routing_put_audio_mixer),
  12774. };
  12775. static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
  12776. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12777. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12778. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12779. msm_routing_put_audio_mixer),
  12780. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12781. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12782. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12783. msm_routing_put_audio_mixer),
  12784. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12785. MSM_BACKEND_DAI_INT_FM_TX,
  12786. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12787. msm_routing_put_audio_mixer),
  12788. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12789. MSM_BACKEND_DAI_MI2S_TX,
  12790. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12791. msm_routing_put_audio_mixer),
  12792. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12793. MSM_BACKEND_DAI_AFE_PCM_TX,
  12794. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12795. msm_routing_put_audio_mixer),
  12796. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12797. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12798. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12799. msm_routing_put_audio_mixer),
  12800. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12801. MSM_BACKEND_DAI_AUXPCM_TX,
  12802. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12803. msm_routing_put_audio_mixer),
  12804. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  12805. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12806. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12807. msm_routing_put_audio_mixer),
  12808. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  12809. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12810. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12811. msm_routing_put_audio_mixer),
  12812. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  12813. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12814. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12815. msm_routing_put_audio_mixer),
  12816. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  12817. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12818. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12819. msm_routing_put_audio_mixer),
  12820. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX", SND_SOC_NOPM,
  12821. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  12822. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12823. msm_routing_put_audio_mixer),
  12824. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12825. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12826. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12827. msm_routing_put_audio_mixer),
  12828. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12829. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12830. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12831. msm_routing_put_audio_mixer),
  12832. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12833. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12834. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12835. msm_routing_put_audio_mixer),
  12836. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12837. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12838. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12839. msm_routing_put_audio_mixer),
  12840. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12841. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12842. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12843. msm_routing_put_audio_mixer),
  12844. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12845. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12846. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12847. msm_routing_put_audio_mixer),
  12848. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12849. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12850. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12851. msm_routing_put_audio_mixer),
  12852. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12853. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12854. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12855. msm_routing_put_audio_mixer),
  12856. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12857. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12858. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12859. msm_routing_put_audio_mixer),
  12860. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12861. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12862. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12863. msm_routing_put_audio_mixer),
  12864. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12865. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12866. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12867. msm_routing_put_audio_mixer),
  12868. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12869. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12870. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12871. msm_routing_put_audio_mixer),
  12872. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12873. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12874. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12875. msm_routing_put_audio_mixer),
  12876. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12877. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12878. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12879. msm_routing_put_audio_mixer),
  12880. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12881. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12882. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12883. msm_routing_put_audio_mixer),
  12884. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12885. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12886. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12887. msm_routing_put_audio_mixer),
  12888. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12889. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12890. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12891. msm_routing_put_audio_mixer),
  12892. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12893. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12894. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12895. msm_routing_put_audio_mixer),
  12896. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12897. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12898. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12899. msm_routing_put_audio_mixer),
  12900. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12901. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12902. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12903. msm_routing_put_audio_mixer),
  12904. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12905. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12906. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12907. msm_routing_put_audio_mixer),
  12908. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12909. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12910. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12911. msm_routing_put_audio_mixer),
  12912. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12913. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12914. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12915. msm_routing_put_audio_mixer),
  12916. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12917. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12918. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12919. msm_routing_put_audio_mixer),
  12920. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12921. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12922. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12923. msm_routing_put_audio_mixer),
  12924. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12925. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12926. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12927. msm_routing_put_audio_mixer),
  12928. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12929. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12930. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12931. msm_routing_put_audio_mixer),
  12932. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12933. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12934. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12935. msm_routing_put_audio_mixer),
  12936. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12937. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12938. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12939. msm_routing_put_audio_mixer),
  12940. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12941. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12942. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12943. msm_routing_put_audio_mixer),
  12944. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12945. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12946. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12947. msm_routing_put_audio_mixer),
  12948. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12949. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12950. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12951. msm_routing_put_audio_mixer),
  12952. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12953. MSM_BACKEND_DAI_USB_TX,
  12954. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12955. msm_routing_put_audio_mixer),
  12956. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12957. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12958. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12959. msm_routing_put_audio_mixer),
  12960. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12961. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12962. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12963. msm_routing_put_audio_mixer),
  12964. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12965. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12966. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12967. msm_routing_put_audio_mixer),
  12968. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12969. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12970. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12971. msm_routing_put_audio_mixer),
  12972. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12973. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12974. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12975. msm_routing_put_audio_mixer),
  12976. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12977. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12978. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12979. msm_routing_put_audio_mixer),
  12980. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12981. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12982. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12983. msm_routing_put_audio_mixer),
  12984. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12985. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12986. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12987. msm_routing_put_audio_mixer),
  12988. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12989. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12990. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12991. msm_routing_put_audio_mixer),
  12992. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12993. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12994. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12995. msm_routing_put_audio_mixer),
  12996. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12997. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12998. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12999. msm_routing_put_audio_mixer),
  13000. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13001. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13002. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13003. msm_routing_put_audio_mixer),
  13004. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13005. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13006. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13007. msm_routing_put_audio_mixer),
  13008. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13009. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13010. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13011. msm_routing_put_audio_mixer),
  13012. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13013. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13014. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13015. msm_routing_put_audio_mixer),
  13016. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13017. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13018. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13019. msm_routing_put_audio_mixer),
  13020. };
  13021. static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
  13022. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13023. MSM_BACKEND_DAI_INT_FM_TX,
  13024. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13025. msm_routing_put_audio_mixer),
  13026. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13027. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13028. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13029. msm_routing_put_audio_mixer),
  13030. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13031. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13032. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13033. msm_routing_put_audio_mixer),
  13034. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13035. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13036. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13037. msm_routing_put_audio_mixer),
  13038. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13039. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13040. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13041. msm_routing_put_audio_mixer),
  13042. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13043. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13044. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13045. msm_routing_put_audio_mixer),
  13046. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13047. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13048. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13049. msm_routing_put_audio_mixer),
  13050. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13051. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13052. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13053. msm_routing_put_audio_mixer),
  13054. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13055. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13056. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13057. msm_routing_put_audio_mixer),
  13058. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13059. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  13060. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13061. msm_routing_put_audio_mixer),
  13062. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  13063. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  13064. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13065. msm_routing_put_audio_mixer),
  13066. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13067. MSM_BACKEND_DAI_AUXPCM_TX,
  13068. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13069. msm_routing_put_audio_mixer),
  13070. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13071. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13072. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13073. msm_routing_put_audio_mixer),
  13074. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13075. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  13076. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13077. msm_routing_put_audio_mixer),
  13078. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13079. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13080. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13081. msm_routing_put_audio_mixer),
  13082. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13083. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13084. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13085. msm_routing_put_audio_mixer),
  13086. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13087. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13088. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13089. msm_routing_put_audio_mixer),
  13090. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13091. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13092. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13093. msm_routing_put_audio_mixer),
  13094. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13095. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13096. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13097. msm_routing_put_audio_mixer),
  13098. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13099. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13100. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13101. msm_routing_put_audio_mixer),
  13102. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13103. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13104. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13105. msm_routing_put_audio_mixer),
  13106. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13107. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13108. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13109. msm_routing_put_audio_mixer),
  13110. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13111. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13112. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13113. msm_routing_put_audio_mixer),
  13114. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13115. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13116. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13117. msm_routing_put_audio_mixer),
  13118. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13119. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13120. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13121. msm_routing_put_audio_mixer),
  13122. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13123. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13124. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13125. msm_routing_put_audio_mixer),
  13126. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13127. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13128. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13129. msm_routing_put_audio_mixer),
  13130. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13131. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13132. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13133. msm_routing_put_audio_mixer),
  13134. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13135. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13136. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13137. msm_routing_put_audio_mixer),
  13138. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13139. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13140. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13141. msm_routing_put_audio_mixer),
  13142. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13143. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13144. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13145. msm_routing_put_audio_mixer),
  13146. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13147. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13148. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13149. msm_routing_put_audio_mixer),
  13150. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13151. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13152. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13153. msm_routing_put_audio_mixer),
  13154. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13155. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13156. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13157. msm_routing_put_audio_mixer),
  13158. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13159. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13160. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13161. msm_routing_put_audio_mixer),
  13162. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13163. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13164. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13165. msm_routing_put_audio_mixer),
  13166. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13167. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13168. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13169. msm_routing_put_audio_mixer),
  13170. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13171. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13172. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13173. msm_routing_put_audio_mixer),
  13174. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13175. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13176. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13177. msm_routing_put_audio_mixer),
  13178. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13179. MSM_BACKEND_DAI_USB_TX,
  13180. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13181. msm_routing_put_audio_mixer),
  13182. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13183. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13184. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13185. msm_routing_put_audio_mixer),
  13186. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13187. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13188. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13189. msm_routing_put_audio_mixer),
  13190. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13191. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13192. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13193. msm_routing_put_audio_mixer),
  13194. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13195. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13196. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13197. msm_routing_put_audio_mixer),
  13198. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13199. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13200. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13201. msm_routing_put_audio_mixer),
  13202. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13203. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13204. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13205. msm_routing_put_audio_mixer),
  13206. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13207. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13208. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13209. msm_routing_put_audio_mixer),
  13210. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13211. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13212. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13213. msm_routing_put_audio_mixer),
  13214. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13215. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13216. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13217. msm_routing_put_audio_mixer),
  13218. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13219. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13220. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13221. msm_routing_put_audio_mixer),
  13222. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13223. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13224. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13225. msm_routing_put_audio_mixer),
  13226. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13227. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13228. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13229. msm_routing_put_audio_mixer),
  13230. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13231. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13232. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13233. msm_routing_put_audio_mixer),
  13234. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13235. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13236. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13237. msm_routing_put_audio_mixer),
  13238. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13239. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13240. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13241. msm_routing_put_audio_mixer),
  13242. };
  13243. static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
  13244. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13245. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13246. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13247. msm_routing_put_audio_mixer),
  13248. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13249. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13250. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13251. msm_routing_put_audio_mixer),
  13252. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13253. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13254. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13255. msm_routing_put_audio_mixer),
  13256. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13257. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13258. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13259. msm_routing_put_audio_mixer),
  13260. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13261. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13262. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13263. msm_routing_put_audio_mixer),
  13264. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13265. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13266. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13267. msm_routing_put_audio_mixer),
  13268. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13269. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13270. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13271. msm_routing_put_audio_mixer),
  13272. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13273. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13274. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13275. msm_routing_put_audio_mixer),
  13276. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13277. MSM_BACKEND_DAI_INT_FM_TX,
  13278. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13279. msm_routing_put_audio_mixer),
  13280. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13281. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13282. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13283. msm_routing_put_audio_mixer),
  13284. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13285. MSM_BACKEND_DAI_AFE_PCM_TX,
  13286. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13287. msm_routing_put_audio_mixer),
  13288. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13289. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13290. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13291. msm_routing_put_audio_mixer),
  13292. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13293. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13294. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13295. msm_routing_put_audio_mixer),
  13296. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13297. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13298. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13299. msm_routing_put_audio_mixer),
  13300. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13301. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13302. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13303. msm_routing_put_audio_mixer),
  13304. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13305. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13306. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13307. msm_routing_put_audio_mixer),
  13308. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13309. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13310. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13311. msm_routing_put_audio_mixer),
  13312. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13313. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13314. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13315. msm_routing_put_audio_mixer),
  13316. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13317. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13318. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13319. msm_routing_put_audio_mixer),
  13320. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13321. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13322. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13323. msm_routing_put_audio_mixer),
  13324. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13325. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13326. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13327. msm_routing_put_audio_mixer),
  13328. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13329. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13330. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13331. msm_routing_put_audio_mixer),
  13332. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13333. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13334. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13335. msm_routing_put_audio_mixer),
  13336. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13337. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13338. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13339. msm_routing_put_audio_mixer),
  13340. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13341. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13342. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13343. msm_routing_put_audio_mixer),
  13344. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13345. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13346. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13347. msm_routing_put_audio_mixer),
  13348. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13349. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13350. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13351. msm_routing_put_audio_mixer),
  13352. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13353. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13354. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13355. msm_routing_put_audio_mixer),
  13356. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13357. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13358. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13359. msm_routing_put_audio_mixer),
  13360. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13361. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13362. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13363. msm_routing_put_audio_mixer),
  13364. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13365. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13366. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13367. msm_routing_put_audio_mixer),
  13368. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13369. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13370. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13371. msm_routing_put_audio_mixer),
  13372. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13373. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13374. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13375. msm_routing_put_audio_mixer),
  13376. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13377. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13378. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13379. msm_routing_put_audio_mixer),
  13380. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13381. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13382. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13383. msm_routing_put_audio_mixer),
  13384. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13385. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13386. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13387. msm_routing_put_audio_mixer),
  13388. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13389. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13390. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13391. msm_routing_put_audio_mixer),
  13392. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13393. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13394. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13395. msm_routing_put_audio_mixer),
  13396. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13397. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13398. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13399. msm_routing_put_audio_mixer),
  13400. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13401. MSM_BACKEND_DAI_USB_TX,
  13402. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13403. msm_routing_put_audio_mixer),
  13404. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13405. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13406. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13407. msm_routing_put_audio_mixer),
  13408. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13409. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13410. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13411. msm_routing_put_audio_mixer),
  13412. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13413. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13414. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13415. msm_routing_put_audio_mixer),
  13416. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13417. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13418. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13419. msm_routing_put_audio_mixer),
  13420. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13421. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13422. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13423. msm_routing_put_audio_mixer),
  13424. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13425. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13426. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13427. msm_routing_put_audio_mixer),
  13428. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13429. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13430. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13431. msm_routing_put_audio_mixer),
  13432. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13433. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13434. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13435. msm_routing_put_audio_mixer),
  13436. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13437. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13438. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13439. msm_routing_put_audio_mixer),
  13440. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13441. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13442. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13443. msm_routing_put_audio_mixer),
  13444. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13445. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13446. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13447. msm_routing_put_audio_mixer),
  13448. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13449. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13450. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13451. msm_routing_put_audio_mixer),
  13452. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13453. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13454. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13455. msm_routing_put_audio_mixer),
  13456. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13457. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13458. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13459. msm_routing_put_audio_mixer),
  13460. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13461. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13462. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13463. msm_routing_put_audio_mixer),
  13464. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13465. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13466. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13467. msm_routing_put_audio_mixer),
  13468. };
  13469. static const struct snd_kcontrol_new mmul16_mixer_controls[] = {
  13470. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13471. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13472. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13473. msm_routing_put_audio_mixer),
  13474. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13475. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13476. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13477. msm_routing_put_audio_mixer),
  13478. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13479. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13480. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13481. msm_routing_put_audio_mixer),
  13482. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13483. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13484. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13485. msm_routing_put_audio_mixer),
  13486. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13487. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13488. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13489. msm_routing_put_audio_mixer),
  13490. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13491. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13492. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13493. msm_routing_put_audio_mixer),
  13494. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13495. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13496. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13497. msm_routing_put_audio_mixer),
  13498. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13499. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13500. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13501. msm_routing_put_audio_mixer),
  13502. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13503. MSM_BACKEND_DAI_INT_FM_TX,
  13504. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13505. msm_routing_put_audio_mixer),
  13506. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13507. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13508. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13509. msm_routing_put_audio_mixer),
  13510. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13511. MSM_BACKEND_DAI_AFE_PCM_TX,
  13512. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13513. msm_routing_put_audio_mixer),
  13514. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13515. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13516. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13517. msm_routing_put_audio_mixer),
  13518. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13519. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13520. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13521. msm_routing_put_audio_mixer),
  13522. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13523. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13524. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13525. msm_routing_put_audio_mixer),
  13526. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13527. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13528. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13529. msm_routing_put_audio_mixer),
  13530. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13531. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13532. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13533. msm_routing_put_audio_mixer),
  13534. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13535. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13536. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13537. msm_routing_put_audio_mixer),
  13538. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13539. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13540. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13541. msm_routing_put_audio_mixer),
  13542. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13543. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13544. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13545. msm_routing_put_audio_mixer),
  13546. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13547. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13548. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13549. msm_routing_put_audio_mixer),
  13550. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13551. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13552. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13553. msm_routing_put_audio_mixer),
  13554. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13555. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13556. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13557. msm_routing_put_audio_mixer),
  13558. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13559. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13560. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13561. msm_routing_put_audio_mixer),
  13562. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13563. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13564. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13565. msm_routing_put_audio_mixer),
  13566. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13567. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13568. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13569. msm_routing_put_audio_mixer),
  13570. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13571. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13572. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13573. msm_routing_put_audio_mixer),
  13574. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13575. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13576. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13577. msm_routing_put_audio_mixer),
  13578. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13579. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13580. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13581. msm_routing_put_audio_mixer),
  13582. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13583. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13584. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13585. msm_routing_put_audio_mixer),
  13586. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13587. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13588. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13589. msm_routing_put_audio_mixer),
  13590. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13591. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13592. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13593. msm_routing_put_audio_mixer),
  13594. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13595. MSM_BACKEND_DAI_USB_TX,
  13596. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13597. msm_routing_put_audio_mixer),
  13598. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13599. MSM_BACKEND_DAI_MI2S_TX,
  13600. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13601. msm_routing_put_audio_mixer),
  13602. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  13603. MSM_BACKEND_DAI_AUXPCM_TX,
  13604. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13605. msm_routing_put_audio_mixer),
  13606. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  13607. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13608. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13609. msm_routing_put_audio_mixer),
  13610. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  13611. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13612. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13613. msm_routing_put_audio_mixer),
  13614. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13615. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13616. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13617. msm_routing_put_audio_mixer),
  13618. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13619. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13620. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13621. msm_routing_put_audio_mixer),
  13622. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13623. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13624. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13625. msm_routing_put_audio_mixer),
  13626. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13627. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13628. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13629. msm_routing_put_audio_mixer),
  13630. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13631. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13632. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13633. msm_routing_put_audio_mixer),
  13634. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13635. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13636. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13637. msm_routing_put_audio_mixer),
  13638. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13639. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13640. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13641. msm_routing_get_audio_mixer,
  13642. msm_routing_put_audio_mixer),
  13643. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13644. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13645. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13646. msm_routing_get_audio_mixer,
  13647. msm_routing_put_audio_mixer),
  13648. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13649. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13650. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13651. msm_routing_get_audio_mixer,
  13652. msm_routing_put_audio_mixer),
  13653. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13654. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13655. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13656. msm_routing_get_audio_mixer,
  13657. msm_routing_put_audio_mixer),
  13658. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13659. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13660. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13661. msm_routing_get_audio_mixer,
  13662. msm_routing_put_audio_mixer),
  13663. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13664. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13665. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13666. msm_routing_get_audio_mixer,
  13667. msm_routing_put_audio_mixer),
  13668. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13669. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13670. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13671. msm_routing_put_audio_mixer),
  13672. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13673. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13674. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13675. msm_routing_put_audio_mixer),
  13676. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13677. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13678. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13679. msm_routing_put_audio_mixer),
  13680. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13681. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13682. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13683. msm_routing_put_audio_mixer),
  13684. };
  13685. static const struct snd_kcontrol_new mmul9_mixer_controls[] = {
  13686. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13687. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13688. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13689. msm_routing_put_audio_mixer),
  13690. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13691. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13692. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13693. msm_routing_put_audio_mixer),
  13694. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13695. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13696. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13697. msm_routing_put_audio_mixer),
  13698. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13699. MSM_BACKEND_DAI_INT_FM_TX,
  13700. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13701. msm_routing_put_audio_mixer),
  13702. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13703. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13704. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13705. msm_routing_put_audio_mixer),
  13706. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13707. MSM_BACKEND_DAI_AFE_PCM_TX,
  13708. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13709. msm_routing_put_audio_mixer),
  13710. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13711. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13712. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13713. msm_routing_put_audio_mixer),
  13714. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13715. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13716. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13717. msm_routing_put_audio_mixer),
  13718. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13719. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13720. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13721. msm_routing_put_audio_mixer),
  13722. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13723. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13724. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13725. msm_routing_put_audio_mixer),
  13726. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13727. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13728. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13729. msm_routing_put_audio_mixer),
  13730. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13731. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13732. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13733. msm_routing_put_audio_mixer),
  13734. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13735. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13736. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13737. msm_routing_put_audio_mixer),
  13738. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13739. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13740. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13741. msm_routing_put_audio_mixer),
  13742. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13743. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13744. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13745. msm_routing_put_audio_mixer),
  13746. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13747. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13748. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13749. msm_routing_put_audio_mixer),
  13750. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13751. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13752. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13753. msm_routing_put_audio_mixer),
  13754. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13755. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13756. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13757. msm_routing_put_audio_mixer),
  13758. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13759. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13760. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13761. msm_routing_put_audio_mixer),
  13762. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13763. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13764. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13765. msm_routing_put_audio_mixer),
  13766. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13767. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13768. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13769. msm_routing_put_audio_mixer),
  13770. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13771. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13772. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13773. msm_routing_put_audio_mixer),
  13774. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13775. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13776. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13777. msm_routing_put_audio_mixer),
  13778. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13779. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13780. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13781. msm_routing_put_audio_mixer),
  13782. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13783. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13784. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13785. msm_routing_put_audio_mixer),
  13786. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13787. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13788. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13789. msm_routing_put_audio_mixer),
  13790. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13791. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13792. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13793. msm_routing_put_audio_mixer),
  13794. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13795. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13796. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13797. msm_routing_put_audio_mixer),
  13798. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13799. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13800. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13801. msm_routing_put_audio_mixer),
  13802. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13803. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13804. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13805. msm_routing_put_audio_mixer),
  13806. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13807. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13808. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13809. msm_routing_put_audio_mixer),
  13810. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13811. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13812. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13813. msm_routing_put_audio_mixer),
  13814. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13815. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13816. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13817. msm_routing_put_audio_mixer),
  13818. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13819. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13820. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13821. msm_routing_put_audio_mixer),
  13822. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13823. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13824. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13825. msm_routing_put_audio_mixer),
  13826. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13827. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13828. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13829. msm_routing_put_audio_mixer),
  13830. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13831. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13832. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13833. msm_routing_put_audio_mixer),
  13834. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13835. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13836. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13837. msm_routing_put_audio_mixer),
  13838. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13839. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13840. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13841. msm_routing_put_audio_mixer),
  13842. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13843. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13844. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13845. msm_routing_put_audio_mixer),
  13846. };
  13847. static const struct snd_kcontrol_new mmul10_mixer_controls[] = {
  13848. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13849. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13850. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13851. msm_routing_put_audio_mixer),
  13852. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13853. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13854. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13855. msm_routing_put_audio_mixer),
  13856. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13857. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13858. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13859. msm_routing_put_audio_mixer),
  13860. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13861. MSM_BACKEND_DAI_INT_FM_TX,
  13862. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13863. msm_routing_put_audio_mixer),
  13864. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13865. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13866. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13867. msm_routing_put_audio_mixer),
  13868. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13869. MSM_BACKEND_DAI_AFE_PCM_TX,
  13870. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13871. msm_routing_put_audio_mixer),
  13872. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13873. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13874. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13875. msm_routing_put_audio_mixer),
  13876. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13877. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13878. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13879. msm_routing_put_audio_mixer),
  13880. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13881. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13882. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13883. msm_routing_put_audio_mixer),
  13884. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13885. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13886. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13887. msm_routing_put_audio_mixer),
  13888. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13889. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13890. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13891. msm_routing_put_audio_mixer),
  13892. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13893. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13894. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13895. msm_routing_put_audio_mixer),
  13896. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13897. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13898. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13899. msm_routing_put_audio_mixer),
  13900. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13901. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13902. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13903. msm_routing_put_audio_mixer),
  13904. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13905. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13906. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13907. msm_routing_put_audio_mixer),
  13908. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13909. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13910. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13911. msm_routing_put_audio_mixer),
  13912. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13913. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13914. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13915. msm_routing_put_audio_mixer),
  13916. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13917. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13918. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13919. msm_routing_put_audio_mixer),
  13920. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13921. MSM_BACKEND_DAI_USB_TX,
  13922. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13923. msm_routing_put_audio_mixer),
  13924. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13925. MSM_BACKEND_DAI_MI2S_TX,
  13926. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13927. msm_routing_put_audio_mixer),
  13928. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  13929. MSM_BACKEND_DAI_AUXPCM_TX,
  13930. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13931. msm_routing_put_audio_mixer),
  13932. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  13933. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13934. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13935. msm_routing_put_audio_mixer),
  13936. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  13937. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  13938. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13939. msm_routing_put_audio_mixer),
  13940. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  13941. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13942. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13943. msm_routing_put_audio_mixer),
  13944. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13945. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13946. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13947. msm_routing_put_audio_mixer),
  13948. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13949. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13950. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13951. msm_routing_put_audio_mixer),
  13952. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13953. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13954. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13955. msm_routing_put_audio_mixer),
  13956. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13957. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13958. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13959. msm_routing_put_audio_mixer),
  13960. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13961. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13962. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13963. msm_routing_put_audio_mixer),
  13964. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13965. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13966. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13967. msm_routing_put_audio_mixer),
  13968. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13969. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13970. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13971. msm_routing_put_audio_mixer),
  13972. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13973. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13974. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13975. msm_routing_put_audio_mixer),
  13976. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13977. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13978. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13979. msm_routing_put_audio_mixer),
  13980. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13981. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13982. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13983. msm_routing_get_audio_mixer,
  13984. msm_routing_put_audio_mixer),
  13985. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13986. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13987. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13988. msm_routing_get_audio_mixer,
  13989. msm_routing_put_audio_mixer),
  13990. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13991. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13992. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13993. msm_routing_get_audio_mixer,
  13994. msm_routing_put_audio_mixer),
  13995. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13996. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13997. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13998. msm_routing_get_audio_mixer,
  13999. msm_routing_put_audio_mixer),
  14000. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14001. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14002. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  14003. msm_routing_get_audio_mixer,
  14004. msm_routing_put_audio_mixer),
  14005. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14006. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14007. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  14008. msm_routing_get_audio_mixer,
  14009. msm_routing_put_audio_mixer),
  14010. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14011. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14012. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14013. msm_routing_put_audio_mixer),
  14014. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14015. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14016. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14017. msm_routing_put_audio_mixer),
  14018. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  14019. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  14020. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14021. msm_routing_put_audio_mixer),
  14022. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14023. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14024. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14025. msm_routing_put_audio_mixer),
  14026. };
  14027. static const struct snd_kcontrol_new mmul17_mixer_controls[] = {
  14028. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14029. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14030. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14031. msm_routing_put_audio_mixer),
  14032. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14033. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14034. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14035. msm_routing_put_audio_mixer),
  14036. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14037. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14038. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14039. msm_routing_put_audio_mixer),
  14040. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14041. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14042. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14043. msm_routing_put_audio_mixer),
  14044. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14045. MSM_BACKEND_DAI_INT_FM_TX,
  14046. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14047. msm_routing_put_audio_mixer),
  14048. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14049. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14050. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14051. msm_routing_put_audio_mixer),
  14052. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14053. MSM_BACKEND_DAI_AFE_PCM_TX,
  14054. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14055. msm_routing_put_audio_mixer),
  14056. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14057. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14058. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14059. msm_routing_put_audio_mixer),
  14060. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14061. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14062. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14063. msm_routing_put_audio_mixer),
  14064. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14065. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14066. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14067. msm_routing_put_audio_mixer),
  14068. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14069. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14070. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14071. msm_routing_put_audio_mixer),
  14072. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14073. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14074. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14075. msm_routing_put_audio_mixer),
  14076. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14077. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14078. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14079. msm_routing_put_audio_mixer),
  14080. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14081. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14082. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14083. msm_routing_put_audio_mixer),
  14084. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14085. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14086. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14087. msm_routing_put_audio_mixer),
  14088. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14089. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14090. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14091. msm_routing_put_audio_mixer),
  14092. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14093. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14094. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14095. msm_routing_put_audio_mixer),
  14096. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14097. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14098. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14099. msm_routing_get_audio_mixer,
  14100. msm_routing_put_audio_mixer),
  14101. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14102. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14103. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14104. msm_routing_get_audio_mixer,
  14105. msm_routing_put_audio_mixer),
  14106. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14107. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14108. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14109. msm_routing_get_audio_mixer,
  14110. msm_routing_put_audio_mixer),
  14111. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14112. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14113. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14114. msm_routing_get_audio_mixer,
  14115. msm_routing_put_audio_mixer),
  14116. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14117. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14118. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14119. msm_routing_get_audio_mixer,
  14120. msm_routing_put_audio_mixer),
  14121. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14122. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14123. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14124. msm_routing_get_audio_mixer,
  14125. msm_routing_put_audio_mixer),
  14126. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14127. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14128. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14129. msm_routing_put_audio_mixer),
  14130. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14131. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14132. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14133. msm_routing_put_audio_mixer),
  14134. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14135. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14136. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14137. msm_routing_put_audio_mixer),
  14138. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  14139. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  14140. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14141. msm_routing_put_audio_mixer),
  14142. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  14143. MSM_BACKEND_DAI_USB_TX,
  14144. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14145. msm_routing_put_audio_mixer),
  14146. };
  14147. static const struct snd_kcontrol_new mmul18_mixer_controls[] = {
  14148. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14149. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14150. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14151. msm_routing_put_audio_mixer),
  14152. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14153. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14154. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14155. msm_routing_put_audio_mixer),
  14156. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14157. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14158. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14159. msm_routing_put_audio_mixer),
  14160. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14161. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14162. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14163. msm_routing_put_audio_mixer),
  14164. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14165. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14166. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14167. msm_routing_put_audio_mixer),
  14168. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14169. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14170. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14171. msm_routing_put_audio_mixer),
  14172. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14173. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14174. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14175. msm_routing_put_audio_mixer),
  14176. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14177. MSM_BACKEND_DAI_INT_FM_TX,
  14178. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14179. msm_routing_put_audio_mixer),
  14180. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14181. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14182. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14183. msm_routing_put_audio_mixer),
  14184. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14185. MSM_BACKEND_DAI_AFE_PCM_TX,
  14186. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14187. msm_routing_put_audio_mixer),
  14188. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14189. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14190. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14191. msm_routing_put_audio_mixer),
  14192. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14193. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14194. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14195. msm_routing_put_audio_mixer),
  14196. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14197. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14198. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14199. msm_routing_put_audio_mixer),
  14200. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14201. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14202. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14203. msm_routing_put_audio_mixer),
  14204. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14205. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14206. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14207. msm_routing_put_audio_mixer),
  14208. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14209. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14210. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14211. msm_routing_put_audio_mixer),
  14212. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14213. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14214. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14215. msm_routing_put_audio_mixer),
  14216. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14217. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14218. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14219. msm_routing_put_audio_mixer),
  14220. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14221. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14222. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14223. msm_routing_get_audio_mixer,
  14224. msm_routing_put_audio_mixer),
  14225. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14226. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14227. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14228. msm_routing_get_audio_mixer,
  14229. msm_routing_put_audio_mixer),
  14230. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14231. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14232. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14233. msm_routing_get_audio_mixer,
  14234. msm_routing_put_audio_mixer),
  14235. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14236. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14237. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14238. msm_routing_get_audio_mixer,
  14239. msm_routing_put_audio_mixer),
  14240. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14241. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14242. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14243. msm_routing_get_audio_mixer,
  14244. msm_routing_put_audio_mixer),
  14245. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14246. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14247. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14248. msm_routing_get_audio_mixer,
  14249. msm_routing_put_audio_mixer),
  14250. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14251. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14252. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14253. msm_routing_put_audio_mixer),
  14254. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14255. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14256. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14257. msm_routing_put_audio_mixer),
  14258. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14259. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14260. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14261. msm_routing_put_audio_mixer),
  14262. };
  14263. static const struct snd_kcontrol_new mmul19_mixer_controls[] = {
  14264. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14265. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14266. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14267. msm_routing_put_audio_mixer),
  14268. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14269. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14270. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14271. msm_routing_put_audio_mixer),
  14272. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14273. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14274. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14275. msm_routing_put_audio_mixer),
  14276. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14277. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14278. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14279. msm_routing_put_audio_mixer),
  14280. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14281. MSM_BACKEND_DAI_INT_FM_TX,
  14282. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14283. msm_routing_put_audio_mixer),
  14284. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14285. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14286. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14287. msm_routing_put_audio_mixer),
  14288. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14289. MSM_BACKEND_DAI_AFE_PCM_TX,
  14290. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14291. msm_routing_put_audio_mixer),
  14292. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14293. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14294. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14295. msm_routing_put_audio_mixer),
  14296. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14297. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14298. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14299. msm_routing_put_audio_mixer),
  14300. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14301. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14302. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14303. msm_routing_put_audio_mixer),
  14304. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14305. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14306. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14307. msm_routing_put_audio_mixer),
  14308. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14309. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14310. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14311. msm_routing_put_audio_mixer),
  14312. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14313. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14314. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14315. msm_routing_put_audio_mixer),
  14316. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14317. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14318. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14319. msm_routing_put_audio_mixer),
  14320. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14321. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14322. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14323. msm_routing_put_audio_mixer),
  14324. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14325. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14326. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14327. msm_routing_put_audio_mixer),
  14328. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14329. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14330. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14331. msm_routing_put_audio_mixer),
  14332. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14333. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14334. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14335. msm_routing_put_audio_mixer),
  14336. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14337. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14338. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14339. msm_routing_get_audio_mixer,
  14340. msm_routing_put_audio_mixer),
  14341. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14342. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14343. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14344. msm_routing_get_audio_mixer,
  14345. msm_routing_put_audio_mixer),
  14346. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14347. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14348. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14349. msm_routing_get_audio_mixer,
  14350. msm_routing_put_audio_mixer),
  14351. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14352. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14353. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14354. msm_routing_get_audio_mixer,
  14355. msm_routing_put_audio_mixer),
  14356. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14357. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14358. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14359. msm_routing_get_audio_mixer,
  14360. msm_routing_put_audio_mixer),
  14361. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14362. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14363. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14364. msm_routing_get_audio_mixer,
  14365. msm_routing_put_audio_mixer),
  14366. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14367. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14368. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14369. msm_routing_put_audio_mixer),
  14370. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14371. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14372. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14373. msm_routing_put_audio_mixer),
  14374. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14375. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14376. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14377. msm_routing_put_audio_mixer),
  14378. };
  14379. static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
  14380. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14381. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14382. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14383. msm_routing_put_audio_mixer),
  14384. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14385. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14386. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14387. msm_routing_put_audio_mixer),
  14388. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14389. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14390. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14391. msm_routing_put_audio_mixer),
  14392. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14393. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14394. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14395. msm_routing_put_audio_mixer),
  14396. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  14397. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  14398. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14399. msm_routing_put_audio_mixer),
  14400. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  14401. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  14402. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14403. msm_routing_put_audio_mixer),
  14404. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14405. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14406. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14407. msm_routing_put_audio_mixer),
  14408. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14409. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14410. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14411. msm_routing_put_audio_mixer),
  14412. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14413. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14414. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14415. msm_routing_put_audio_mixer),
  14416. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14417. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14418. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14419. msm_routing_put_audio_mixer),
  14420. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14421. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14422. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14423. msm_routing_put_audio_mixer),
  14424. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14425. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14426. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14427. msm_routing_put_audio_mixer),
  14428. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14429. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14430. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14431. msm_routing_put_audio_mixer),
  14432. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14433. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14434. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14435. msm_routing_put_audio_mixer),
  14436. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14437. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14438. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14439. msm_routing_put_audio_mixer),
  14440. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14441. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14442. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14443. msm_routing_put_audio_mixer),
  14444. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14445. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14446. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14447. msm_routing_put_audio_mixer),
  14448. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14449. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14450. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14451. msm_routing_put_audio_mixer),
  14452. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14453. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14454. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14455. msm_routing_put_audio_mixer),
  14456. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14457. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14458. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14459. msm_routing_put_audio_mixer),
  14460. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14461. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14462. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14463. msm_routing_put_audio_mixer),
  14464. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14465. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14466. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14467. msm_routing_put_audio_mixer),
  14468. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14469. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14470. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14471. msm_routing_put_audio_mixer),
  14472. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14473. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14474. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14475. msm_routing_put_audio_mixer),
  14476. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14477. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14478. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14479. msm_routing_put_audio_mixer),
  14480. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14481. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14482. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14483. msm_routing_put_audio_mixer),
  14484. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  14485. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  14486. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14487. msm_routing_put_audio_mixer),
  14488. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  14489. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  14490. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14491. msm_routing_put_audio_mixer),
  14492. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  14493. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  14494. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14495. msm_routing_put_audio_mixer),
  14496. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  14497. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  14498. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14499. msm_routing_put_audio_mixer),
  14500. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14501. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14502. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14503. msm_routing_put_audio_mixer),
  14504. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14505. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14506. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14507. msm_routing_put_audio_mixer),
  14508. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14509. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14510. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14511. msm_routing_put_audio_mixer),
  14512. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14513. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14514. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14515. msm_routing_put_audio_mixer),
  14516. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14517. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14518. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14519. msm_routing_put_audio_mixer),
  14520. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14521. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14522. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14523. msm_routing_put_audio_mixer),
  14524. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14525. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14526. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14527. msm_routing_put_audio_mixer),
  14528. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14529. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14530. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14531. msm_routing_put_audio_mixer),
  14532. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14533. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14534. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14535. msm_routing_put_audio_mixer),
  14536. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14537. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14538. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14539. msm_routing_put_audio_mixer),
  14540. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14541. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14542. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14543. msm_routing_put_audio_mixer),
  14544. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14545. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14546. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14547. msm_routing_put_audio_mixer),
  14548. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14549. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14550. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14551. msm_routing_put_audio_mixer),
  14552. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14553. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14554. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14555. msm_routing_put_audio_mixer),
  14556. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14557. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14558. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14559. msm_routing_put_audio_mixer),
  14560. };
  14561. static const struct snd_kcontrol_new mmul21_mixer_controls[] = {
  14562. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14563. MSM_BACKEND_DAI_AUXPCM_TX,
  14564. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14565. msm_routing_put_audio_mixer),
  14566. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14567. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  14568. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14569. msm_routing_put_audio_mixer),
  14570. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14571. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14572. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14573. msm_routing_put_audio_mixer),
  14574. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14575. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14576. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14577. msm_routing_put_audio_mixer),
  14578. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14579. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14580. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14581. msm_routing_put_audio_mixer),
  14582. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14583. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14584. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14585. msm_routing_put_audio_mixer),
  14586. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14587. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14588. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14589. msm_routing_put_audio_mixer),
  14590. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14591. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14592. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14593. msm_routing_put_audio_mixer),
  14594. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14595. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14596. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14597. msm_routing_put_audio_mixer),
  14598. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14599. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14600. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14601. msm_routing_put_audio_mixer),
  14602. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14603. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14604. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14605. msm_routing_put_audio_mixer),
  14606. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14607. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14608. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14609. msm_routing_put_audio_mixer),
  14610. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14611. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14612. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14613. msm_routing_put_audio_mixer),
  14614. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14615. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14616. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14617. msm_routing_put_audio_mixer),
  14618. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14619. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14620. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14621. msm_routing_put_audio_mixer),
  14622. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14623. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14624. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14625. msm_routing_put_audio_mixer),
  14626. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14627. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14628. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14629. msm_routing_put_audio_mixer),
  14630. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14631. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14632. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14633. msm_routing_put_audio_mixer),
  14634. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14635. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14636. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14637. msm_routing_put_audio_mixer),
  14638. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14639. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14640. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14641. msm_routing_put_audio_mixer),
  14642. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14643. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14644. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14645. msm_routing_put_audio_mixer),
  14646. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14647. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14648. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14649. msm_routing_put_audio_mixer),
  14650. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  14651. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  14652. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14653. msm_routing_put_audio_mixer),
  14654. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  14655. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  14656. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14657. msm_routing_put_audio_mixer),
  14658. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  14659. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  14660. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14661. msm_routing_put_audio_mixer),
  14662. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  14663. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  14664. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14665. msm_routing_put_audio_mixer),
  14666. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14667. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14668. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14669. msm_routing_put_audio_mixer),
  14670. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14671. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14672. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14673. msm_routing_put_audio_mixer),
  14674. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14675. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14676. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14677. msm_routing_put_audio_mixer),
  14678. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14679. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14680. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14681. msm_routing_put_audio_mixer),
  14682. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14683. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14684. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14685. msm_routing_put_audio_mixer),
  14686. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14687. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14688. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14689. msm_routing_put_audio_mixer),
  14690. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14691. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14692. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14693. msm_routing_put_audio_mixer),
  14694. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14695. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14696. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14697. msm_routing_put_audio_mixer),
  14698. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14699. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14700. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14701. msm_routing_put_audio_mixer),
  14702. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14703. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14704. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14705. msm_routing_put_audio_mixer),
  14706. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14707. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14708. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, 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_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14713. msm_routing_put_audio_mixer),
  14714. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14715. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14716. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14717. msm_routing_put_audio_mixer),
  14718. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14719. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14720. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14721. msm_routing_put_audio_mixer),
  14722. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14723. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14724. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14725. msm_routing_put_audio_mixer),
  14726. };
  14727. static const struct snd_kcontrol_new mmul22_mixer_controls[] = {
  14728. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14729. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14730. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14731. msm_routing_put_audio_mixer),
  14732. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14733. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14734. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14735. msm_routing_put_audio_mixer),
  14736. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14737. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14738. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14739. msm_routing_put_audio_mixer),
  14740. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14741. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14742. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14743. msm_routing_put_audio_mixer),
  14744. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14745. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14746. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14747. msm_routing_put_audio_mixer),
  14748. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14749. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14750. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14751. msm_routing_put_audio_mixer),
  14752. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14753. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14754. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14755. msm_routing_put_audio_mixer),
  14756. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14757. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14758. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14759. msm_routing_put_audio_mixer),
  14760. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14761. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14762. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14763. msm_routing_put_audio_mixer),
  14764. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14765. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14766. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14767. msm_routing_put_audio_mixer),
  14768. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14769. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14770. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14771. msm_routing_put_audio_mixer),
  14772. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14773. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14774. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14775. msm_routing_put_audio_mixer),
  14776. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14777. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14778. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14779. msm_routing_put_audio_mixer),
  14780. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14781. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14782. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14783. msm_routing_put_audio_mixer),
  14784. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14785. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14786. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14787. msm_routing_put_audio_mixer),
  14788. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14789. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14790. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14791. msm_routing_put_audio_mixer),
  14792. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14793. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14794. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14795. msm_routing_put_audio_mixer),
  14796. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14797. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14798. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14799. msm_routing_put_audio_mixer),
  14800. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14801. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14802. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14803. msm_routing_put_audio_mixer),
  14804. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14805. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14806. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14807. msm_routing_put_audio_mixer),
  14808. };
  14809. static const struct snd_kcontrol_new mmul23_mixer_controls[] = {
  14810. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14811. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14812. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14813. msm_routing_put_audio_mixer),
  14814. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14815. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14816. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14817. msm_routing_put_audio_mixer),
  14818. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14819. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14820. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14821. msm_routing_put_audio_mixer),
  14822. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14823. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14824. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14825. msm_routing_put_audio_mixer),
  14826. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14827. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14828. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14829. msm_routing_put_audio_mixer),
  14830. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14831. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14832. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14833. msm_routing_put_audio_mixer),
  14834. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14835. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14836. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14837. msm_routing_put_audio_mixer),
  14838. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14839. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14840. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14841. msm_routing_put_audio_mixer),
  14842. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14843. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14844. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14845. msm_routing_put_audio_mixer),
  14846. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14847. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14848. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14849. msm_routing_put_audio_mixer),
  14850. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14851. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14852. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14853. msm_routing_put_audio_mixer),
  14854. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14855. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14856. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14857. msm_routing_put_audio_mixer),
  14858. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14859. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14860. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14861. msm_routing_put_audio_mixer),
  14862. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14863. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14864. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14865. msm_routing_put_audio_mixer),
  14866. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14867. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14868. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14869. msm_routing_put_audio_mixer),
  14870. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14871. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14872. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14873. msm_routing_put_audio_mixer),
  14874. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14875. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14876. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14877. msm_routing_put_audio_mixer),
  14878. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14879. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14880. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14881. msm_routing_put_audio_mixer),
  14882. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14883. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14884. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14885. msm_routing_put_audio_mixer),
  14886. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14887. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14888. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14889. msm_routing_put_audio_mixer),
  14890. };
  14891. static const struct snd_kcontrol_new mmul24_mixer_controls[] = {
  14892. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14893. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14894. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14895. msm_routing_put_audio_mixer),
  14896. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14897. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14898. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14899. msm_routing_put_audio_mixer),
  14900. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14901. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14902. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14903. msm_routing_put_audio_mixer),
  14904. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14905. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14906. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14907. msm_routing_put_audio_mixer),
  14908. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14909. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14910. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14911. msm_routing_put_audio_mixer),
  14912. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14913. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14914. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14915. msm_routing_put_audio_mixer),
  14916. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14917. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14918. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14919. msm_routing_put_audio_mixer),
  14920. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14921. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14922. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14923. msm_routing_put_audio_mixer),
  14924. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14925. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14926. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14927. msm_routing_put_audio_mixer),
  14928. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14929. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14930. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14931. msm_routing_put_audio_mixer),
  14932. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14933. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14934. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14935. msm_routing_put_audio_mixer),
  14936. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14937. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14938. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14939. msm_routing_put_audio_mixer),
  14940. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14941. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14942. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14943. msm_routing_put_audio_mixer),
  14944. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14945. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14946. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14947. msm_routing_put_audio_mixer),
  14948. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14949. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14950. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14951. msm_routing_put_audio_mixer),
  14952. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14953. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14954. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14955. msm_routing_put_audio_mixer),
  14956. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14957. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14958. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14959. msm_routing_put_audio_mixer),
  14960. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14961. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14962. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14963. msm_routing_put_audio_mixer),
  14964. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14965. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14966. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14967. msm_routing_put_audio_mixer),
  14968. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14969. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14970. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14971. msm_routing_put_audio_mixer),
  14972. };
  14973. static const struct snd_kcontrol_new mmul25_mixer_controls[] = {
  14974. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14975. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14976. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  14977. msm_routing_put_audio_mixer),
  14978. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14979. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14980. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  14981. msm_routing_put_audio_mixer),
  14982. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14983. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14984. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  14985. msm_routing_put_audio_mixer),
  14986. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14987. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14988. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  14989. msm_routing_put_audio_mixer),
  14990. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14991. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14992. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  14993. msm_routing_put_audio_mixer),
  14994. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14995. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14996. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  14997. msm_routing_put_audio_mixer),
  14998. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14999. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  15000. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15001. msm_routing_put_audio_mixer),
  15002. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  15003. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  15004. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15005. msm_routing_put_audio_mixer),
  15006. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15007. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  15008. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15009. msm_routing_put_audio_mixer),
  15010. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15011. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  15012. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15013. msm_routing_put_audio_mixer),
  15014. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15015. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  15016. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15017. msm_routing_put_audio_mixer),
  15018. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15019. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  15020. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15021. msm_routing_put_audio_mixer),
  15022. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15023. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  15024. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15025. msm_routing_put_audio_mixer),
  15026. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15027. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  15028. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15029. msm_routing_put_audio_mixer),
  15030. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15031. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  15032. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15033. msm_routing_put_audio_mixer),
  15034. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15035. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  15036. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15037. msm_routing_put_audio_mixer),
  15038. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15039. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15040. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15041. msm_routing_put_audio_mixer),
  15042. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15043. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  15044. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15045. msm_routing_put_audio_mixer),
  15046. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15047. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  15048. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15049. msm_routing_put_audio_mixer),
  15050. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15051. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  15052. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15053. msm_routing_put_audio_mixer),
  15054. };
  15055. static const struct snd_kcontrol_new mmul27_mixer_controls[] = {
  15056. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15057. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15058. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15059. msm_routing_put_audio_mixer),
  15060. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15061. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15062. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15063. msm_routing_put_audio_mixer),
  15064. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  15065. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  15066. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15067. msm_routing_put_audio_mixer),
  15068. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  15069. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  15070. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15071. msm_routing_put_audio_mixer),
  15072. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15073. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15074. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15075. msm_routing_put_audio_mixer),
  15076. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15077. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  15078. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15079. msm_routing_put_audio_mixer),
  15080. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15081. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15082. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15083. msm_routing_put_audio_mixer),
  15084. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15085. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15086. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15087. msm_routing_put_audio_mixer),
  15088. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  15089. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  15090. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15091. msm_routing_put_audio_mixer),
  15092. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  15093. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  15094. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15095. msm_routing_put_audio_mixer),
  15096. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  15097. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  15098. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15099. msm_routing_put_audio_mixer),
  15100. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  15101. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  15102. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15103. msm_routing_put_audio_mixer),
  15104. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  15105. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  15106. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15107. msm_routing_put_audio_mixer),
  15108. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  15109. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  15110. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15111. msm_routing_put_audio_mixer),
  15112. };
  15113. static const struct snd_kcontrol_new mmul28_mixer_controls[] = {
  15114. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15115. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15116. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15117. msm_routing_put_audio_mixer),
  15118. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15119. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15120. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15121. msm_routing_put_audio_mixer),
  15122. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15123. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15124. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15125. msm_routing_put_audio_mixer),
  15126. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15127. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15128. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15129. msm_routing_put_audio_mixer),
  15130. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15131. MSM_BACKEND_DAI_INT_FM_TX,
  15132. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15133. msm_routing_put_audio_mixer),
  15134. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15135. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  15136. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15137. msm_routing_put_audio_mixer),
  15138. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15139. MSM_BACKEND_DAI_AFE_PCM_TX,
  15140. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15141. msm_routing_put_audio_mixer),
  15142. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  15143. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  15144. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15145. msm_routing_put_audio_mixer),
  15146. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  15147. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  15148. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15149. msm_routing_put_audio_mixer),
  15150. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15151. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  15152. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15153. msm_routing_put_audio_mixer),
  15154. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15155. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15156. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15157. msm_routing_put_audio_mixer),
  15158. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15159. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15160. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15161. msm_routing_put_audio_mixer),
  15162. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15163. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  15164. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15165. msm_routing_put_audio_mixer),
  15166. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15167. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  15168. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15169. msm_routing_put_audio_mixer),
  15170. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15171. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  15172. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15173. msm_routing_put_audio_mixer),
  15174. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15175. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15176. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15177. msm_routing_put_audio_mixer),
  15178. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15179. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15180. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15181. msm_routing_put_audio_mixer),
  15182. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15183. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  15184. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15185. msm_routing_put_audio_mixer),
  15186. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  15187. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  15188. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15189. msm_routing_get_audio_mixer,
  15190. msm_routing_put_audio_mixer),
  15191. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  15192. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  15193. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15194. msm_routing_get_audio_mixer,
  15195. msm_routing_put_audio_mixer),
  15196. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  15197. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  15198. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15199. msm_routing_get_audio_mixer,
  15200. msm_routing_put_audio_mixer),
  15201. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15202. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15203. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15204. msm_routing_get_audio_mixer,
  15205. msm_routing_put_audio_mixer),
  15206. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  15207. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  15208. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15209. msm_routing_get_audio_mixer,
  15210. msm_routing_put_audio_mixer),
  15211. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  15212. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  15213. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15214. msm_routing_get_audio_mixer,
  15215. msm_routing_put_audio_mixer),
  15216. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  15217. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  15218. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15219. msm_routing_put_audio_mixer),
  15220. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  15221. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  15222. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15223. msm_routing_put_audio_mixer),
  15224. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  15225. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  15226. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15227. msm_routing_put_audio_mixer),
  15228. };
  15229. static const struct snd_kcontrol_new mmul29_mixer_controls[] = {
  15230. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15231. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15232. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15233. msm_routing_put_audio_mixer),
  15234. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15235. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15236. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15237. msm_routing_put_audio_mixer),
  15238. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15239. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15240. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15241. msm_routing_put_audio_mixer),
  15242. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15243. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15244. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15245. msm_routing_put_audio_mixer),
  15246. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15247. MSM_BACKEND_DAI_INT_FM_TX,
  15248. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15249. msm_routing_put_audio_mixer),
  15250. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15251. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  15252. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15253. msm_routing_put_audio_mixer),
  15254. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15255. MSM_BACKEND_DAI_AFE_PCM_TX,
  15256. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15257. msm_routing_put_audio_mixer),
  15258. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  15259. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  15260. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15261. msm_routing_put_audio_mixer),
  15262. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  15263. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  15264. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15265. msm_routing_put_audio_mixer),
  15266. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15267. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  15268. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15269. msm_routing_put_audio_mixer),
  15270. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15271. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15272. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15273. msm_routing_put_audio_mixer),
  15274. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15275. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15276. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15277. msm_routing_put_audio_mixer),
  15278. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15279. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  15280. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15281. msm_routing_put_audio_mixer),
  15282. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15283. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  15284. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15285. msm_routing_put_audio_mixer),
  15286. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15287. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  15288. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15289. msm_routing_put_audio_mixer),
  15290. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15291. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15292. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15293. msm_routing_put_audio_mixer),
  15294. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15295. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15296. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15297. msm_routing_put_audio_mixer),
  15298. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15299. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  15300. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15301. msm_routing_put_audio_mixer),
  15302. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  15303. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  15304. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15305. msm_routing_get_audio_mixer,
  15306. msm_routing_put_audio_mixer),
  15307. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  15308. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  15309. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15310. msm_routing_get_audio_mixer,
  15311. msm_routing_put_audio_mixer),
  15312. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  15313. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  15314. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15315. msm_routing_get_audio_mixer,
  15316. msm_routing_put_audio_mixer),
  15317. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15318. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15319. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15320. msm_routing_get_audio_mixer,
  15321. msm_routing_put_audio_mixer),
  15322. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  15323. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  15324. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15325. msm_routing_get_audio_mixer,
  15326. msm_routing_put_audio_mixer),
  15327. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  15328. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  15329. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15330. msm_routing_get_audio_mixer,
  15331. msm_routing_put_audio_mixer),
  15332. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  15333. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  15334. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15335. msm_routing_put_audio_mixer),
  15336. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  15337. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  15338. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15339. msm_routing_put_audio_mixer),
  15340. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  15341. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  15342. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15343. msm_routing_put_audio_mixer),
  15344. };
  15345. static const struct snd_kcontrol_new mmul30_mixer_controls[] = {
  15346. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15347. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15348. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15349. msm_routing_put_audio_mixer),
  15350. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15351. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15352. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15353. msm_routing_put_audio_mixer),
  15354. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15355. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15356. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15357. msm_routing_put_audio_mixer),
  15358. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15359. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15360. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15361. msm_routing_put_audio_mixer),
  15362. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15363. MSM_BACKEND_DAI_INT_FM_TX,
  15364. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15365. msm_routing_put_audio_mixer),
  15366. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15367. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  15368. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15369. msm_routing_put_audio_mixer),
  15370. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15371. MSM_BACKEND_DAI_AFE_PCM_TX,
  15372. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15373. msm_routing_put_audio_mixer),
  15374. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  15375. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  15376. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15377. msm_routing_put_audio_mixer),
  15378. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  15379. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  15380. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15381. msm_routing_put_audio_mixer),
  15382. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15383. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  15384. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15385. msm_routing_put_audio_mixer),
  15386. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15387. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15388. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15389. msm_routing_put_audio_mixer),
  15390. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15391. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15392. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15393. msm_routing_put_audio_mixer),
  15394. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15395. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  15396. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15397. msm_routing_put_audio_mixer),
  15398. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15399. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  15400. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15401. msm_routing_put_audio_mixer),
  15402. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15403. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  15404. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15405. msm_routing_put_audio_mixer),
  15406. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15407. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15408. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15409. msm_routing_put_audio_mixer),
  15410. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15411. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15412. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15413. msm_routing_put_audio_mixer),
  15414. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  15415. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  15416. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15417. msm_routing_get_audio_mixer,
  15418. msm_routing_put_audio_mixer),
  15419. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  15420. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  15421. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15422. msm_routing_get_audio_mixer,
  15423. msm_routing_put_audio_mixer),
  15424. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  15425. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  15426. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15427. msm_routing_get_audio_mixer,
  15428. msm_routing_put_audio_mixer),
  15429. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15430. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15431. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15432. msm_routing_get_audio_mixer,
  15433. msm_routing_put_audio_mixer),
  15434. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  15435. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  15436. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15437. msm_routing_get_audio_mixer,
  15438. msm_routing_put_audio_mixer),
  15439. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  15440. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  15441. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15442. msm_routing_get_audio_mixer,
  15443. msm_routing_put_audio_mixer),
  15444. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  15445. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  15446. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15447. msm_routing_put_audio_mixer),
  15448. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  15449. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  15450. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15451. msm_routing_put_audio_mixer),
  15452. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  15453. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  15454. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15455. msm_routing_put_audio_mixer),
  15456. };
  15457. static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
  15458. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15459. MSM_BACKEND_DAI_PRI_I2S_RX,
  15460. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15461. msm_routing_put_voice_mixer),
  15462. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15463. MSM_BACKEND_DAI_PRI_I2S_RX,
  15464. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15465. msm_routing_put_voice_mixer),
  15466. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15467. MSM_BACKEND_DAI_PRI_I2S_RX,
  15468. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15469. msm_routing_put_voice_mixer),
  15470. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15471. MSM_BACKEND_DAI_PRI_I2S_RX,
  15472. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15473. msm_routing_put_voice_mixer),
  15474. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15475. MSM_BACKEND_DAI_PRI_I2S_RX,
  15476. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15477. msm_routing_put_voice_mixer),
  15478. };
  15479. static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
  15480. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15481. MSM_BACKEND_DAI_SEC_I2S_RX,
  15482. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15483. msm_routing_put_voice_mixer),
  15484. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15485. MSM_BACKEND_DAI_SEC_I2S_RX,
  15486. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15487. msm_routing_put_voice_mixer),
  15488. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15489. MSM_BACKEND_DAI_SEC_I2S_RX,
  15490. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15491. msm_routing_put_voice_mixer),
  15492. };
  15493. static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
  15494. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15495. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15496. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15497. msm_routing_put_voice_mixer),
  15498. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15499. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15500. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15501. msm_routing_put_voice_mixer),
  15502. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15503. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15504. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15505. msm_routing_put_voice_mixer),
  15506. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15507. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15508. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15509. msm_routing_put_voice_mixer),
  15510. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15511. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15512. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15513. msm_routing_put_voice_mixer),
  15514. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15515. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15516. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15517. msm_routing_put_voice_mixer),
  15518. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15519. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15520. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15521. msm_routing_put_voice_mixer),
  15522. };
  15523. static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
  15524. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15525. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15526. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15527. msm_routing_put_voice_mixer),
  15528. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15529. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15530. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15531. msm_routing_put_voice_mixer),
  15532. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15533. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15534. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15535. msm_routing_put_voice_mixer),
  15536. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15537. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15538. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15539. msm_routing_put_voice_mixer),
  15540. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15541. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15542. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15543. msm_routing_put_voice_mixer),
  15544. };
  15545. static const struct snd_kcontrol_new slimbus_6_rx_voice_mixer_controls[] = {
  15546. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15547. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15548. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15549. msm_routing_put_voice_mixer),
  15550. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15551. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15552. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15553. msm_routing_put_voice_mixer),
  15554. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15555. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15556. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15557. msm_routing_put_voice_mixer),
  15558. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15559. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15560. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15561. msm_routing_put_voice_mixer),
  15562. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15563. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15564. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15565. msm_routing_put_voice_mixer),
  15566. };
  15567. static const struct snd_kcontrol_new usb_audio_rx_voice_mixer_controls[] = {
  15568. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15569. MSM_BACKEND_DAI_USB_RX,
  15570. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15571. msm_routing_put_voice_mixer),
  15572. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15573. MSM_BACKEND_DAI_USB_RX,
  15574. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15575. msm_routing_put_voice_mixer),
  15576. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15577. MSM_BACKEND_DAI_USB_RX,
  15578. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15579. msm_routing_put_voice_mixer),
  15580. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15581. MSM_BACKEND_DAI_USB_RX,
  15582. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15583. msm_routing_put_voice_mixer),
  15584. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15585. MSM_BACKEND_DAI_USB_RX,
  15586. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15587. msm_routing_put_voice_mixer),
  15588. };
  15589. static const struct snd_kcontrol_new display_port_rx_voice_mixer_controls[] = {
  15590. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15591. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15592. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15593. msm_routing_put_voice_mixer),
  15594. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15595. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15596. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15597. msm_routing_put_voice_mixer),
  15598. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15599. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15600. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15601. msm_routing_put_voice_mixer),
  15602. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15603. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15604. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15605. msm_routing_put_voice_mixer),
  15606. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15607. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15608. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15609. msm_routing_put_voice_mixer),
  15610. };
  15611. static const struct snd_kcontrol_new display_port_rx1_voice_mixer_controls[] = {
  15612. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15613. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15614. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15615. msm_routing_put_voice_mixer),
  15616. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15617. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15618. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15619. msm_routing_put_voice_mixer),
  15620. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15621. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15622. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15623. msm_routing_put_voice_mixer),
  15624. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15625. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15626. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15627. msm_routing_put_voice_mixer),
  15628. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15629. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15630. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15631. msm_routing_put_voice_mixer),
  15632. };
  15633. static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
  15634. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15635. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15636. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15637. msm_routing_put_voice_mixer),
  15638. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15639. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15640. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15641. msm_routing_put_voice_mixer),
  15642. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15643. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15644. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15645. msm_routing_put_voice_mixer),
  15646. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15647. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15648. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15649. msm_routing_put_voice_mixer),
  15650. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15651. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15652. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15653. msm_routing_put_voice_mixer),
  15654. };
  15655. static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
  15656. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15657. MSM_BACKEND_DAI_MI2S_RX,
  15658. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15659. msm_routing_put_voice_mixer),
  15660. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15661. MSM_BACKEND_DAI_MI2S_RX,
  15662. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15663. msm_routing_put_voice_mixer),
  15664. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15665. MSM_BACKEND_DAI_MI2S_RX,
  15666. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15667. msm_routing_put_voice_mixer),
  15668. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15669. MSM_BACKEND_DAI_MI2S_RX,
  15670. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15671. msm_routing_put_voice_mixer),
  15672. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15673. MSM_BACKEND_DAI_MI2S_RX,
  15674. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15675. msm_routing_put_voice_mixer),
  15676. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15677. MSM_BACKEND_DAI_MI2S_RX,
  15678. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15679. msm_routing_put_voice_mixer),
  15680. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15681. MSM_BACKEND_DAI_MI2S_RX,
  15682. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15683. msm_routing_put_voice_mixer),
  15684. };
  15685. static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
  15686. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15687. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15688. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15689. msm_routing_put_voice_mixer),
  15690. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15691. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15692. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15693. msm_routing_put_voice_mixer),
  15694. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15695. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15696. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15697. msm_routing_put_voice_mixer),
  15698. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15699. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15700. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15701. msm_routing_put_voice_mixer),
  15702. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15703. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15704. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15705. msm_routing_put_voice_mixer),
  15706. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15707. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15708. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15709. msm_routing_put_voice_mixer),
  15710. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15711. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15712. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15713. msm_routing_put_voice_mixer),
  15714. };
  15715. static const struct snd_kcontrol_new int0_mi2s_rx_voice_mixer_controls[] = {
  15716. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15717. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15718. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15719. msm_routing_put_voice_mixer),
  15720. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15721. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15722. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15723. msm_routing_put_voice_mixer),
  15724. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15725. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15726. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15727. msm_routing_put_voice_mixer),
  15728. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15729. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15730. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15731. msm_routing_put_voice_mixer),
  15732. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15733. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15734. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15735. msm_routing_put_voice_mixer),
  15736. };
  15737. static const struct snd_kcontrol_new int4_mi2s_rx_voice_mixer_controls[] = {
  15738. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15739. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15740. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15741. msm_routing_put_voice_mixer),
  15742. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15743. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15744. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15745. msm_routing_put_voice_mixer),
  15746. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15747. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15748. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15749. msm_routing_put_voice_mixer),
  15750. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15751. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15752. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15753. msm_routing_put_voice_mixer),
  15754. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15755. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15756. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15757. msm_routing_put_voice_mixer),
  15758. };
  15759. static const struct snd_kcontrol_new tert_mi2s_rx_voice_mixer_controls[] = {
  15760. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15761. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15762. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15763. msm_routing_put_voice_mixer),
  15764. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15765. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15766. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15767. msm_routing_put_voice_mixer),
  15768. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15769. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15770. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15771. msm_routing_put_voice_mixer),
  15772. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15773. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15774. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15775. msm_routing_put_voice_mixer),
  15776. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15777. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15778. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15779. msm_routing_put_voice_mixer),
  15780. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15781. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15782. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15783. msm_routing_put_voice_mixer),
  15784. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15785. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15786. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15787. msm_routing_put_voice_mixer),
  15788. };
  15789. static const struct snd_kcontrol_new quat_mi2s_rx_voice_mixer_controls[] = {
  15790. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15791. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15792. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15793. msm_routing_put_voice_mixer),
  15794. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15795. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15796. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15797. msm_routing_put_voice_mixer),
  15798. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15799. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15800. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15801. msm_routing_put_voice_mixer),
  15802. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15803. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15804. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15805. msm_routing_put_voice_mixer),
  15806. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15807. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15808. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15809. msm_routing_put_voice_mixer),
  15810. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15811. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15812. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15813. msm_routing_put_voice_mixer),
  15814. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15815. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15816. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15817. msm_routing_put_voice_mixer),
  15818. };
  15819. static const struct snd_kcontrol_new quin_mi2s_rx_voice_mixer_controls[] = {
  15820. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15821. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15822. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15823. msm_routing_put_voice_mixer),
  15824. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15825. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15826. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15827. msm_routing_put_voice_stub_mixer),
  15828. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15829. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15830. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15831. msm_routing_put_voice_stub_mixer),
  15832. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15833. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15834. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15835. msm_routing_put_voice_mixer),
  15836. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15837. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15838. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15839. msm_routing_put_voice_mixer),
  15840. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15841. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15842. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15843. msm_routing_put_voice_mixer),
  15844. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15845. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15846. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15847. msm_routing_put_voice_mixer),
  15848. };
  15849. static const struct snd_kcontrol_new sen_mi2s_rx_voice_mixer_controls[] = {
  15850. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15851. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15852. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15853. msm_routing_put_voice_mixer),
  15854. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15855. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15856. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15857. msm_routing_put_voice_mixer),
  15858. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15859. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15860. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15861. msm_routing_put_voice_mixer),
  15862. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15863. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15864. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15865. msm_routing_put_voice_mixer),
  15866. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15867. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15868. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15869. msm_routing_put_voice_mixer),
  15870. };
  15871. static const struct snd_kcontrol_new afe_pcm_rx_voice_mixer_controls[] = {
  15872. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15873. MSM_BACKEND_DAI_AFE_PCM_RX,
  15874. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15875. msm_routing_put_voice_mixer),
  15876. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15877. MSM_BACKEND_DAI_AFE_PCM_RX,
  15878. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15879. msm_routing_put_voice_mixer),
  15880. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15881. MSM_BACKEND_DAI_AFE_PCM_RX,
  15882. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15883. msm_routing_put_voice_mixer),
  15884. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15885. MSM_BACKEND_DAI_AFE_PCM_RX,
  15886. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15887. msm_routing_put_voice_mixer),
  15888. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15889. MSM_BACKEND_DAI_AFE_PCM_RX,
  15890. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15891. msm_routing_put_voice_mixer),
  15892. };
  15893. static const struct snd_kcontrol_new aux_pcm_rx_voice_mixer_controls[] = {
  15894. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15895. MSM_BACKEND_DAI_AUXPCM_RX,
  15896. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15897. msm_routing_put_voice_mixer),
  15898. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15899. MSM_BACKEND_DAI_AUXPCM_RX,
  15900. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15901. msm_routing_put_voice_mixer),
  15902. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15903. MSM_BACKEND_DAI_AUXPCM_RX,
  15904. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15905. msm_routing_put_voice_mixer),
  15906. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15907. MSM_BACKEND_DAI_AUXPCM_RX,
  15908. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15909. msm_routing_put_voice_mixer),
  15910. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15911. MSM_BACKEND_DAI_AUXPCM_RX,
  15912. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15913. msm_routing_put_voice_mixer),
  15914. };
  15915. static const struct snd_kcontrol_new sec_aux_pcm_rx_voice_mixer_controls[] = {
  15916. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15917. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15918. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15919. msm_routing_put_voice_mixer),
  15920. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15921. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15922. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15923. msm_routing_put_voice_mixer),
  15924. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15925. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15926. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15927. msm_routing_put_voice_mixer),
  15928. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15929. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15930. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15931. msm_routing_put_voice_mixer),
  15932. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15933. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15934. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15935. msm_routing_put_voice_mixer),
  15936. };
  15937. static const struct snd_kcontrol_new tert_aux_pcm_rx_voice_mixer_controls[] = {
  15938. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15939. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15940. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15941. msm_routing_put_voice_mixer),
  15942. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15943. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15944. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15945. msm_routing_put_voice_mixer),
  15946. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15947. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15948. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15949. msm_routing_put_voice_mixer),
  15950. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15951. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15952. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15953. msm_routing_put_voice_mixer),
  15954. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15955. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15956. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15957. msm_routing_put_voice_mixer),
  15958. };
  15959. static const struct snd_kcontrol_new quat_aux_pcm_rx_voice_mixer_controls[] = {
  15960. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15961. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15962. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15963. msm_routing_put_voice_mixer),
  15964. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15965. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15966. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15967. msm_routing_put_voice_mixer),
  15968. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15969. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15970. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15971. msm_routing_put_voice_mixer),
  15972. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15973. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15974. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15975. msm_routing_put_voice_mixer),
  15976. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15977. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15978. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15979. msm_routing_put_voice_mixer),
  15980. };
  15981. static const struct snd_kcontrol_new quin_aux_pcm_rx_voice_mixer_controls[] = {
  15982. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15983. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15984. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15985. msm_routing_put_voice_mixer),
  15986. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15987. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15988. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15989. msm_routing_put_voice_mixer),
  15990. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15991. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15992. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15993. msm_routing_put_voice_mixer),
  15994. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15995. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15996. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15997. msm_routing_put_voice_mixer),
  15998. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15999. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16000. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16001. msm_routing_put_voice_mixer),
  16002. };
  16003. static const struct snd_kcontrol_new sen_aux_pcm_rx_voice_mixer_controls[] = {
  16004. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16005. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16006. msm_routing_put_voice_mixer),
  16007. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16008. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16009. msm_routing_put_voice_mixer),
  16010. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16011. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16012. msm_routing_put_voice_mixer),
  16013. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16014. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16015. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16016. msm_routing_put_voice_mixer),
  16017. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16018. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16019. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16020. msm_routing_put_voice_mixer),
  16021. };
  16022. static const struct snd_kcontrol_new hdmi_rx_voice_mixer_controls[] = {
  16023. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16024. MSM_BACKEND_DAI_HDMI_RX,
  16025. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16026. msm_routing_put_voice_mixer),
  16027. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16028. MSM_BACKEND_DAI_HDMI_RX,
  16029. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16030. msm_routing_put_voice_mixer),
  16031. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16032. MSM_BACKEND_DAI_HDMI_RX,
  16033. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16034. msm_routing_put_voice_mixer),
  16035. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16036. MSM_BACKEND_DAI_HDMI_RX,
  16037. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16038. msm_routing_put_voice_mixer),
  16039. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16040. MSM_BACKEND_DAI_HDMI_RX,
  16041. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16042. msm_routing_put_voice_mixer),
  16043. };
  16044. static const struct snd_kcontrol_new slimbus_7_rx_voice_mixer_controls[] = {
  16045. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16046. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  16047. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16048. msm_routing_put_voice_mixer),
  16049. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16050. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  16051. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16052. msm_routing_put_voice_mixer),
  16053. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16054. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  16055. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16056. msm_routing_put_voice_mixer),
  16057. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16058. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  16059. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16060. msm_routing_put_voice_mixer),
  16061. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16062. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  16063. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16064. msm_routing_put_voice_mixer),
  16065. };
  16066. static const struct snd_kcontrol_new slimbus_8_rx_voice_mixer_controls[] = {
  16067. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16068. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  16069. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16070. msm_routing_put_voice_mixer),
  16071. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16072. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  16073. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16074. msm_routing_put_voice_mixer),
  16075. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16076. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  16077. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16078. msm_routing_put_voice_mixer),
  16079. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16080. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  16081. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16082. msm_routing_put_voice_mixer),
  16083. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16084. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  16085. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16086. msm_routing_put_voice_mixer),
  16087. };
  16088. static const struct snd_kcontrol_new quat_tdm_rx_2_voice_mixer_controls[] = {
  16089. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16090. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  16091. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16092. msm_routing_put_voice_mixer),
  16093. };
  16094. static const struct snd_kcontrol_new quin_tdm_rx_2_voice_mixer_controls[] = {
  16095. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16096. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  16097. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16098. msm_routing_put_voice_mixer),
  16099. };
  16100. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_voice_mixer_controls[] = {
  16101. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16102. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16103. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16104. msm_routing_put_voice_mixer),
  16105. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16106. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16107. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16108. msm_routing_put_voice_mixer),
  16109. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16110. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16111. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16112. msm_routing_put_voice_mixer),
  16113. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16114. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16115. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16116. msm_routing_put_voice_mixer),
  16117. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16118. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16119. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16120. msm_routing_put_voice_mixer),
  16121. };
  16122. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_voice_mixer_controls[] = {
  16123. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16124. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  16125. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16126. msm_routing_put_voice_mixer),
  16127. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16128. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  16129. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16130. msm_routing_put_voice_mixer),
  16131. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16132. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  16133. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16134. msm_routing_put_voice_mixer),
  16135. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16136. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  16137. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16138. msm_routing_put_voice_mixer),
  16139. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16140. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  16141. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16142. msm_routing_put_voice_mixer),
  16143. };
  16144. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_voice_mixer_controls[] = {
  16145. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16146. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16147. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16148. msm_routing_put_voice_mixer),
  16149. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16150. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16151. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16152. msm_routing_put_voice_mixer),
  16153. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16154. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16155. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16156. msm_routing_put_voice_mixer),
  16157. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16158. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16159. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16160. msm_routing_put_voice_mixer),
  16161. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16162. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16163. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16164. msm_routing_put_voice_mixer),
  16165. };
  16166. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_voice_mixer_controls[] = {
  16167. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16168. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16169. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16170. msm_routing_put_voice_mixer),
  16171. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16172. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16173. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16174. msm_routing_put_voice_mixer),
  16175. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16176. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16177. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16178. msm_routing_put_voice_mixer),
  16179. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16180. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16181. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16182. msm_routing_put_voice_mixer),
  16183. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16184. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16185. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16186. msm_routing_put_voice_mixer),
  16187. };
  16188. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_voice_mixer_controls[] = {
  16189. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16190. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  16191. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16192. msm_routing_put_voice_mixer),
  16193. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16194. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  16195. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16196. msm_routing_put_voice_mixer),
  16197. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16198. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  16199. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16200. msm_routing_put_voice_mixer),
  16201. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16202. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  16203. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16204. msm_routing_put_voice_mixer),
  16205. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16206. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  16207. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16208. msm_routing_put_voice_mixer),
  16209. };
  16210. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_voice_mixer_controls[] = {
  16211. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16212. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  16213. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16214. msm_routing_put_voice_mixer),
  16215. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16216. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  16217. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16218. msm_routing_put_voice_mixer),
  16219. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16220. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  16221. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16222. msm_routing_put_voice_mixer),
  16223. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16224. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  16225. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16226. msm_routing_put_voice_mixer),
  16227. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16228. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  16229. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16230. msm_routing_put_voice_mixer),
  16231. };
  16232. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_voice_mixer_controls[] = {
  16233. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16234. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  16235. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16236. msm_routing_put_voice_mixer),
  16237. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16238. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  16239. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16240. msm_routing_put_voice_mixer),
  16241. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16242. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  16243. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16244. msm_routing_put_voice_mixer),
  16245. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16246. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  16247. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16248. msm_routing_put_voice_mixer),
  16249. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16250. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  16251. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16252. msm_routing_put_voice_mixer),
  16253. };
  16254. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_voice_mixer_controls[] = {
  16255. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16256. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  16257. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16258. msm_routing_put_voice_mixer),
  16259. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16260. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  16261. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16262. msm_routing_put_voice_mixer),
  16263. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16264. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  16265. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16266. msm_routing_put_voice_mixer),
  16267. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16268. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  16269. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16270. msm_routing_put_voice_mixer),
  16271. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16272. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  16273. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16274. msm_routing_put_voice_mixer),
  16275. };
  16276. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_voice_mixer_controls[] = {
  16277. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16278. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  16279. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16280. msm_routing_put_voice_mixer),
  16281. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16282. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  16283. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16284. msm_routing_put_voice_mixer),
  16285. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16286. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  16287. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16288. msm_routing_put_voice_mixer),
  16289. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16290. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  16291. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16292. msm_routing_put_voice_mixer),
  16293. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16294. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  16295. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16296. msm_routing_put_voice_mixer),
  16297. };
  16298. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_voice_mixer_controls[] = {
  16299. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16300. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  16301. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16302. msm_routing_put_voice_mixer),
  16303. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16304. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  16305. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16306. msm_routing_put_voice_mixer),
  16307. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16308. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  16309. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16310. msm_routing_put_voice_mixer),
  16311. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16312. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  16313. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16314. msm_routing_put_voice_mixer),
  16315. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16316. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  16317. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16318. msm_routing_put_voice_mixer),
  16319. };
  16320. static const struct snd_kcontrol_new pri_tdm_rx_0_voice_mixer_controls[] = {
  16321. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16322. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16323. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16324. msm_routing_put_voice_mixer),
  16325. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16326. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16327. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16328. msm_routing_put_voice_stub_mixer),
  16329. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16330. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16331. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16332. msm_routing_put_voice_stub_mixer),
  16333. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  16334. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16335. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16336. msm_routing_put_voice_mixer),
  16337. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16338. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16339. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16340. msm_routing_put_voice_mixer),
  16341. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16342. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16343. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16344. msm_routing_put_voice_mixer),
  16345. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16346. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16347. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16348. msm_routing_put_voice_mixer),
  16349. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16350. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16351. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16352. msm_routing_put_voice_mixer),
  16353. };
  16354. static const struct snd_kcontrol_new pri_tdm_rx_1_voice_mixer_controls[] = {
  16355. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16356. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16357. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16358. msm_routing_put_voice_mixer),
  16359. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16360. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16361. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16362. msm_routing_put_voice_stub_mixer),
  16363. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16364. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16365. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16366. msm_routing_put_voice_stub_mixer),
  16367. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  16368. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16369. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16370. msm_routing_put_voice_mixer),
  16371. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16372. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16373. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16374. msm_routing_put_voice_mixer),
  16375. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16376. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16377. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16378. msm_routing_put_voice_mixer),
  16379. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16380. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16381. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16382. msm_routing_put_voice_mixer),
  16383. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16384. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16385. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16386. msm_routing_put_voice_mixer),
  16387. };
  16388. static const struct snd_kcontrol_new pri_tdm_rx_2_voice_mixer_controls[] = {
  16389. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16390. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16391. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16392. msm_routing_put_voice_mixer),
  16393. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16394. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16395. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16396. msm_routing_put_voice_stub_mixer),
  16397. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16398. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16399. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16400. msm_routing_put_voice_stub_mixer),
  16401. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  16402. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16403. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16404. msm_routing_put_voice_mixer),
  16405. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16406. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16407. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16408. msm_routing_put_voice_mixer),
  16409. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16410. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16411. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16412. msm_routing_put_voice_mixer),
  16413. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16414. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16415. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16416. msm_routing_put_voice_mixer),
  16417. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16418. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16419. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16420. msm_routing_put_voice_mixer),
  16421. };
  16422. static const struct snd_kcontrol_new pri_tdm_rx_3_voice_mixer_controls[] = {
  16423. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16424. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16425. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16426. msm_routing_put_voice_mixer),
  16427. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16428. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16429. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16430. msm_routing_put_voice_stub_mixer),
  16431. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16432. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16433. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16434. msm_routing_put_voice_stub_mixer),
  16435. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  16436. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16437. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16438. msm_routing_put_voice_mixer),
  16439. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16440. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16441. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16442. msm_routing_put_voice_mixer),
  16443. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16444. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16445. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16446. msm_routing_put_voice_mixer),
  16447. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16448. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16449. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16450. msm_routing_put_voice_mixer),
  16451. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16452. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16453. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16454. msm_routing_put_voice_mixer),
  16455. };
  16456. static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
  16457. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16458. MSM_BACKEND_DAI_EXTPROC_RX,
  16459. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16460. msm_routing_put_voice_mixer),
  16461. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16462. MSM_BACKEND_DAI_EXTPROC_RX,
  16463. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16464. msm_routing_put_voice_mixer),
  16465. };
  16466. static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
  16467. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16468. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16469. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16470. msm_routing_put_voice_mixer),
  16471. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16472. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16473. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16474. msm_routing_put_voice_mixer),
  16475. };
  16476. static const struct snd_kcontrol_new slimbus_3_rx_mixer_controls[] = {
  16477. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16478. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16479. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16480. msm_routing_put_voice_mixer),
  16481. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16482. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16483. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16484. msm_routing_put_voice_mixer),
  16485. };
  16486. static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
  16487. SOC_DOUBLE_EXT("PRI_TX_MMode1", SND_SOC_NOPM,
  16488. MSM_BACKEND_DAI_PRI_I2S_TX,
  16489. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16490. msm_routing_put_voice_mixer),
  16491. SOC_DOUBLE_EXT("MI2S_TX_MMode1", SND_SOC_NOPM,
  16492. MSM_BACKEND_DAI_MI2S_TX,
  16493. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16494. msm_routing_put_voice_mixer),
  16495. SOC_DOUBLE_EXT("SLIM_0_TX_MMode1", SND_SOC_NOPM,
  16496. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16497. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16498. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode1", SND_SOC_NOPM,
  16499. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16500. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16501. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode1", SND_SOC_NOPM,
  16502. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  16503. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16504. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16505. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  16506. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16507. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16508. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16509. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16510. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16511. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16512. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16513. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16514. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16515. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16516. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16517. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16518. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16519. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16520. MSM_BACKEND_DAI_SEN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16521. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16522. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode1", SND_SOC_NOPM,
  16523. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  16524. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16525. SOC_DOUBLE_EXT("SEC_MI2S_TX_MMode1", SND_SOC_NOPM,
  16526. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  16527. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16528. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode1", SND_SOC_NOPM,
  16529. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16530. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16531. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode1", SND_SOC_NOPM,
  16532. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16533. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16534. SOC_DOUBLE_EXT("SLIM_7_TX_MMode1", SND_SOC_NOPM,
  16535. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16536. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16537. SOC_DOUBLE_EXT("SLIM_8_TX_MMode1", SND_SOC_NOPM,
  16538. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16539. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16540. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode1", SND_SOC_NOPM,
  16541. MSM_BACKEND_DAI_USB_TX,
  16542. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16543. msm_routing_put_voice_mixer),
  16544. SOC_DOUBLE_EXT("QUAT_TDM_TX_0_MMode1", SND_SOC_NOPM,
  16545. MSM_BACKEND_DAI_QUAT_TDM_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  16546. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16547. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  16548. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  16549. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16550. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  16551. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  16552. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16553. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  16554. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  16555. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16556. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  16557. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  16558. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16559. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  16560. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  16561. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16562. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  16563. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  16564. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16565. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode1", SND_SOC_NOPM,
  16566. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  16567. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16568. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode1", SND_SOC_NOPM,
  16569. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE1,
  16570. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16571. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode1", SND_SOC_NOPM,
  16572. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE1,
  16573. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16574. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode1", SND_SOC_NOPM,
  16575. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16576. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16577. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode1", SND_SOC_NOPM,
  16578. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16579. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16580. SOC_DOUBLE_EXT("PRI_TDM_TX_3_MMode1", SND_SOC_NOPM,
  16581. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  16582. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16583. };
  16584. static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
  16585. SOC_DOUBLE_EXT("PRI_TX_MMode2", SND_SOC_NOPM,
  16586. MSM_BACKEND_DAI_PRI_I2S_TX,
  16587. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16588. msm_routing_put_voice_mixer),
  16589. SOC_DOUBLE_EXT("MI2S_TX_MMode2", SND_SOC_NOPM,
  16590. MSM_BACKEND_DAI_MI2S_TX,
  16591. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16592. msm_routing_put_voice_mixer),
  16593. SOC_DOUBLE_EXT("SLIM_0_TX_MMode2", SND_SOC_NOPM,
  16594. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16595. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16596. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode2", SND_SOC_NOPM,
  16597. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16598. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16599. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode2", SND_SOC_NOPM,
  16600. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  16601. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16602. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16603. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  16604. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16605. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16606. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16607. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16608. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16609. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16610. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16611. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16612. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16613. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16614. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16615. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16616. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16617. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16618. MSM_BACKEND_DAI_SEN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16619. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16620. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode2", SND_SOC_NOPM,
  16621. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  16622. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16623. SOC_DOUBLE_EXT("SEC_MI2S_TX_MMode2", SND_SOC_NOPM,
  16624. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  16625. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16626. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode2", SND_SOC_NOPM,
  16627. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  16628. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16629. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode2", SND_SOC_NOPM,
  16630. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  16631. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16632. SOC_DOUBLE_EXT("SLIM_7_TX_MMode2", SND_SOC_NOPM,
  16633. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16634. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16635. SOC_DOUBLE_EXT("SLIM_8_TX_MMode2", SND_SOC_NOPM,
  16636. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16637. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16638. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode2", SND_SOC_NOPM,
  16639. MSM_BACKEND_DAI_USB_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16640. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16641. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  16642. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  16643. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16644. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  16645. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  16646. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16647. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  16648. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  16649. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16650. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  16651. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  16652. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16653. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  16654. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  16655. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16656. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  16657. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  16658. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16659. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode2", SND_SOC_NOPM,
  16660. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  16661. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16662. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode2", SND_SOC_NOPM,
  16663. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE2,
  16664. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16665. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode2", SND_SOC_NOPM,
  16666. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE2,
  16667. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16668. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode2", SND_SOC_NOPM,
  16669. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  16670. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16671. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode2", SND_SOC_NOPM,
  16672. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  16673. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16674. SOC_DOUBLE_EXT("PRI_TDM_TX_3_MMode2", SND_SOC_NOPM,
  16675. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  16676. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16677. };
  16678. static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
  16679. SOC_DOUBLE_EXT("PRI_TX_Voip", SND_SOC_NOPM,
  16680. MSM_BACKEND_DAI_PRI_I2S_TX,
  16681. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16682. msm_routing_put_voice_mixer),
  16683. SOC_DOUBLE_EXT("MI2S_TX_Voip", SND_SOC_NOPM,
  16684. MSM_BACKEND_DAI_MI2S_TX,
  16685. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16686. msm_routing_put_voice_mixer),
  16687. SOC_DOUBLE_EXT("SLIM_0_TX_Voip", SND_SOC_NOPM,
  16688. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16689. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16690. msm_routing_put_voice_mixer),
  16691. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_Voip", SND_SOC_NOPM,
  16692. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  16693. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16694. msm_routing_put_voice_mixer),
  16695. SOC_DOUBLE_EXT("AFE_PCM_TX_Voip", SND_SOC_NOPM,
  16696. MSM_BACKEND_DAI_AFE_PCM_TX,
  16697. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16698. msm_routing_put_voice_mixer),
  16699. SOC_DOUBLE_EXT("AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16700. MSM_BACKEND_DAI_AUXPCM_TX,
  16701. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16702. msm_routing_put_voice_mixer),
  16703. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16704. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16705. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16706. msm_routing_put_voice_mixer),
  16707. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16708. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16709. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16710. msm_routing_put_voice_mixer),
  16711. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16712. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16713. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16714. msm_routing_put_voice_mixer),
  16715. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16716. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16717. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16718. msm_routing_put_voice_mixer),
  16719. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16720. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16721. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16722. msm_routing_put_voice_mixer),
  16723. SOC_DOUBLE_EXT("PRI_MI2S_TX_Voip", SND_SOC_NOPM,
  16724. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16725. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16726. msm_routing_put_voice_mixer),
  16727. SOC_DOUBLE_EXT("SEC_MI2S_TX_Voip", SND_SOC_NOPM,
  16728. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  16729. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16730. msm_routing_put_voice_mixer),
  16731. SOC_DOUBLE_EXT("TERT_MI2S_TX_Voip", SND_SOC_NOPM,
  16732. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16733. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16734. msm_routing_put_voice_mixer),
  16735. SOC_DOUBLE_EXT("INT3_MI2S_TX_Voip", SND_SOC_NOPM,
  16736. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16737. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16738. msm_routing_put_voice_mixer),
  16739. SOC_DOUBLE_EXT("SLIM_7_TX_Voip", SND_SOC_NOPM,
  16740. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16741. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16742. msm_routing_put_voice_mixer),
  16743. SOC_DOUBLE_EXT("SLIM_8_TX_Voip", SND_SOC_NOPM,
  16744. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16745. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16746. msm_routing_put_voice_mixer),
  16747. SOC_DOUBLE_EXT("USB_AUDIO_TX_Voip", SND_SOC_NOPM,
  16748. MSM_BACKEND_DAI_USB_TX,
  16749. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16750. msm_routing_put_voice_mixer),
  16751. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  16752. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  16753. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16754. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  16755. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  16756. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16757. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  16758. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  16759. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16760. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  16761. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  16762. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16763. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  16764. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  16765. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16766. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  16767. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  16768. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16769. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_Voip", SND_SOC_NOPM,
  16770. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOIP,
  16771. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16772. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_Voip", SND_SOC_NOPM,
  16773. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOIP,
  16774. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16775. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_Voip", SND_SOC_NOPM,
  16776. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOIP,
  16777. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16778. SOC_SINGLE_EXT("PRI_TDM_TX_3_Voip", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  16779. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16780. msm_routing_put_voice_mixer),
  16781. };
  16782. static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
  16783. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  16784. MSM_BACKEND_DAI_EXTPROC_TX,
  16785. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16786. msm_routing_put_voice_stub_mixer),
  16787. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16788. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  16789. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16790. msm_routing_put_voice_stub_mixer),
  16791. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16792. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16793. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16794. msm_routing_put_voice_stub_mixer),
  16795. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  16796. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  16797. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16798. msm_routing_put_voice_stub_mixer),
  16799. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16800. MSM_BACKEND_DAI_MI2S_TX,
  16801. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16802. msm_routing_put_voice_stub_mixer),
  16803. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16804. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16805. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16806. msm_routing_put_voice_stub_mixer),
  16807. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16808. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16809. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16810. msm_routing_put_voice_stub_mixer),
  16811. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16812. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16813. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16814. msm_routing_put_voice_stub_mixer),
  16815. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16816. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16817. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16818. msm_routing_put_voice_stub_mixer),
  16819. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16820. MSM_BACKEND_DAI_AUXPCM_TX,
  16821. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16822. msm_routing_put_voice_stub_mixer),
  16823. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16824. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16825. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16826. msm_routing_put_voice_stub_mixer),
  16827. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16828. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16829. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16830. msm_routing_put_voice_stub_mixer),
  16831. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16832. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16833. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16834. msm_routing_put_voice_stub_mixer),
  16835. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16836. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16837. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16838. msm_routing_put_voice_stub_mixer),
  16839. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16840. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16841. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16842. msm_routing_put_voice_stub_mixer),
  16843. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16844. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16845. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16846. msm_routing_put_voice_stub_mixer),
  16847. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  16848. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16849. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16850. msm_routing_put_voice_stub_mixer),
  16851. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16852. MSM_BACKEND_DAI_AFE_PCM_TX,
  16853. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16854. msm_routing_put_voice_stub_mixer),
  16855. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16856. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16857. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16858. msm_routing_put_voice_stub_mixer),
  16859. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16860. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16861. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16862. msm_routing_put_voice_stub_mixer),
  16863. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16864. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  16865. 1, 0, msm_routing_get_voice_stub_mixer,
  16866. msm_routing_put_voice_stub_mixer),
  16867. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16868. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  16869. 1, 0, msm_routing_get_voice_stub_mixer,
  16870. msm_routing_put_voice_stub_mixer),
  16871. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16872. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  16873. 1, 0, msm_routing_get_voice_stub_mixer,
  16874. msm_routing_put_voice_stub_mixer),
  16875. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  16876. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  16877. 1, 0, msm_routing_get_voice_stub_mixer,
  16878. msm_routing_put_voice_stub_mixer),
  16879. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  16880. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  16881. 1, 0, msm_routing_get_voice_stub_mixer,
  16882. msm_routing_put_voice_stub_mixer),
  16883. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  16884. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  16885. 1, 0, msm_routing_get_voice_stub_mixer,
  16886. msm_routing_put_voice_stub_mixer),
  16887. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16888. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE_STUB,
  16889. 1, 0, msm_routing_get_voice_stub_mixer,
  16890. msm_routing_put_voice_stub_mixer),
  16891. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  16892. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE_STUB,
  16893. 1, 0, msm_routing_get_voice_stub_mixer,
  16894. msm_routing_put_voice_stub_mixer),
  16895. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  16896. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE_STUB,
  16897. 1, 0, msm_routing_get_voice_stub_mixer,
  16898. msm_routing_put_voice_stub_mixer),
  16899. };
  16900. static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
  16901. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  16902. MSM_BACKEND_DAI_EXTPROC_TX,
  16903. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16904. msm_routing_put_voice_stub_mixer),
  16905. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16906. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16907. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16908. msm_routing_put_voice_stub_mixer),
  16909. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  16910. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  16911. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16912. msm_routing_put_voice_stub_mixer),
  16913. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16914. MSM_BACKEND_DAI_AUXPCM_TX,
  16915. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16916. msm_routing_put_voice_stub_mixer),
  16917. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16918. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16919. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16920. msm_routing_put_voice_stub_mixer),
  16921. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16922. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16923. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16924. msm_routing_put_voice_stub_mixer),
  16925. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16926. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16927. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16928. msm_routing_put_voice_stub_mixer),
  16929. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16930. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16931. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16932. msm_routing_put_voice_stub_mixer),
  16933. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16934. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16935. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16936. msm_routing_put_voice_stub_mixer),
  16937. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16938. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16939. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16940. msm_routing_put_voice_stub_mixer),
  16941. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  16942. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16943. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16944. msm_routing_put_voice_stub_mixer),
  16945. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16946. MSM_BACKEND_DAI_AFE_PCM_TX,
  16947. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16948. msm_routing_put_voice_stub_mixer),
  16949. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16950. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16951. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16952. msm_routing_put_voice_stub_mixer),
  16953. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16954. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16955. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16956. msm_routing_put_voice_stub_mixer),
  16957. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16958. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16959. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16960. msm_routing_put_voice_stub_mixer),
  16961. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16962. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16963. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16964. msm_routing_put_voice_stub_mixer),
  16965. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16966. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16967. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16968. msm_routing_put_voice_stub_mixer),
  16969. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16970. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  16971. 1, 0, msm_routing_get_voice_stub_mixer,
  16972. msm_routing_put_voice_stub_mixer),
  16973. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16974. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  16975. 1, 0, msm_routing_get_voice_stub_mixer,
  16976. msm_routing_put_voice_stub_mixer),
  16977. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16978. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  16979. 1, 0, msm_routing_get_voice_stub_mixer,
  16980. msm_routing_put_voice_stub_mixer),
  16981. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  16982. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  16983. 1, 0, msm_routing_get_voice_stub_mixer,
  16984. msm_routing_put_voice_stub_mixer),
  16985. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  16986. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  16987. 1, 0, msm_routing_get_voice_stub_mixer,
  16988. msm_routing_put_voice_stub_mixer),
  16989. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  16990. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  16991. 1, 0, msm_routing_get_voice_stub_mixer,
  16992. msm_routing_put_voice_stub_mixer),
  16993. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16994. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE2_STUB,
  16995. 1, 0, msm_routing_get_voice_stub_mixer,
  16996. msm_routing_put_voice_stub_mixer),
  16997. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  16998. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE2_STUB,
  16999. 1, 0, msm_routing_get_voice_stub_mixer,
  17000. msm_routing_put_voice_stub_mixer),
  17001. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  17002. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE2_STUB,
  17003. 1, 0, msm_routing_get_voice_stub_mixer,
  17004. msm_routing_put_voice_stub_mixer),
  17005. };
  17006. static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
  17007. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  17008. MSM_BACKEND_DAI_EXTPROC_TX,
  17009. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17010. msm_routing_put_voice_stub_mixer),
  17011. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17012. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  17013. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17014. msm_routing_put_voice_stub_mixer),
  17015. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  17016. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  17017. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17018. msm_routing_put_voice_stub_mixer),
  17019. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17020. MSM_BACKEND_DAI_AUXPCM_TX,
  17021. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17022. msm_routing_put_voice_stub_mixer),
  17023. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17024. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  17025. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17026. msm_routing_put_voice_stub_mixer),
  17027. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17028. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  17029. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17030. msm_routing_put_voice_stub_mixer),
  17031. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17032. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  17033. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17034. msm_routing_put_voice_stub_mixer),
  17035. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17036. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  17037. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17038. msm_routing_put_voice_stub_mixer),
  17039. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17040. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  17041. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17042. msm_routing_put_voice_stub_mixer),
  17043. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17044. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  17045. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17046. msm_routing_put_voice_stub_mixer),
  17047. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  17048. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  17049. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17050. msm_routing_put_voice_stub_mixer),
  17051. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17052. MSM_BACKEND_DAI_AFE_PCM_TX,
  17053. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17054. msm_routing_put_voice_stub_mixer),
  17055. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17056. MSM_BACKEND_DAI_PRI_MI2S_TX,
  17057. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17058. msm_routing_put_voice_stub_mixer),
  17059. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17060. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  17061. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17062. msm_routing_put_voice_stub_mixer),
  17063. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17064. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  17065. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17066. msm_routing_put_voice_stub_mixer),
  17067. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17068. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  17069. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17070. msm_routing_put_voice_stub_mixer),
  17071. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  17072. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  17073. 1, 0, msm_routing_get_voice_stub_mixer,
  17074. msm_routing_put_voice_stub_mixer),
  17075. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  17076. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  17077. 1, 0, msm_routing_get_voice_stub_mixer,
  17078. msm_routing_put_voice_stub_mixer),
  17079. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  17080. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  17081. 1, 0, msm_routing_get_voice_stub_mixer,
  17082. msm_routing_put_voice_stub_mixer),
  17083. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  17084. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  17085. 1, 0, msm_routing_get_voice_stub_mixer,
  17086. msm_routing_put_voice_stub_mixer),
  17087. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  17088. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  17089. 1, 0, msm_routing_get_voice_stub_mixer,
  17090. msm_routing_put_voice_stub_mixer),
  17091. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  17092. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  17093. 1, 0, msm_routing_get_voice_stub_mixer,
  17094. msm_routing_put_voice_stub_mixer),
  17095. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17096. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOLTE_STUB,
  17097. 1, 0, msm_routing_get_voice_stub_mixer,
  17098. msm_routing_put_voice_stub_mixer),
  17099. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  17100. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOLTE_STUB,
  17101. 1, 0, msm_routing_get_voice_stub_mixer,
  17102. msm_routing_put_voice_stub_mixer),
  17103. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  17104. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOLTE_STUB,
  17105. 1, 0, msm_routing_get_voice_stub_mixer,
  17106. msm_routing_put_voice_stub_mixer),
  17107. };
  17108. static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
  17109. SOC_DOUBLE_EXT("PRI_TX_QCHAT", SND_SOC_NOPM,
  17110. MSM_BACKEND_DAI_PRI_I2S_TX,
  17111. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17112. msm_routing_put_voice_mixer),
  17113. SOC_DOUBLE_EXT("SLIM_0_TX_QCHAT", SND_SOC_NOPM,
  17114. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  17115. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17116. msm_routing_put_voice_mixer),
  17117. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_QCHAT", SND_SOC_NOPM,
  17118. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  17119. MSM_FRONTEND_DAI_QCHAT, 1, 0,
  17120. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17121. SOC_DOUBLE_EXT("AFE_PCM_TX_QCHAT", SND_SOC_NOPM,
  17122. MSM_BACKEND_DAI_AFE_PCM_TX,
  17123. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17124. msm_routing_put_voice_mixer),
  17125. SOC_DOUBLE_EXT("AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17126. MSM_BACKEND_DAI_AUXPCM_TX,
  17127. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17128. msm_routing_put_voice_mixer),
  17129. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17130. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  17131. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17132. msm_routing_put_voice_mixer),
  17133. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17134. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  17135. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17136. msm_routing_put_voice_mixer),
  17137. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17138. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  17139. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17140. msm_routing_put_voice_mixer),
  17141. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17142. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  17143. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17144. msm_routing_put_voice_mixer),
  17145. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17146. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  17147. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17148. msm_routing_put_voice_mixer),
  17149. SOC_DOUBLE_EXT("MI2S_TX_QCHAT", SND_SOC_NOPM,
  17150. MSM_BACKEND_DAI_MI2S_TX,
  17151. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17152. msm_routing_put_voice_mixer),
  17153. SOC_DOUBLE_EXT("PRI_MI2S_TX_QCHAT", SND_SOC_NOPM,
  17154. MSM_BACKEND_DAI_PRI_MI2S_TX,
  17155. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17156. msm_routing_put_voice_mixer),
  17157. SOC_DOUBLE_EXT("TERT_MI2S_TX_QCHAT", SND_SOC_NOPM,
  17158. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  17159. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17160. msm_routing_put_voice_mixer),
  17161. SOC_DOUBLE_EXT("INT3_MI2S_TX_QCHAT", SND_SOC_NOPM,
  17162. MSM_BACKEND_DAI_INT3_MI2S_TX,
  17163. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17164. msm_routing_put_voice_mixer),
  17165. SOC_DOUBLE_EXT("SLIM_7_TX_QCHAT", SND_SOC_NOPM,
  17166. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  17167. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17168. msm_routing_put_voice_mixer),
  17169. SOC_DOUBLE_EXT("SLIM_8_TX_QCHAT", SND_SOC_NOPM,
  17170. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  17171. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17172. msm_routing_put_voice_mixer),
  17173. SOC_DOUBLE_EXT("USB_AUDIO_TX_QCHAT", SND_SOC_NOPM,
  17174. MSM_BACKEND_DAI_USB_TX,
  17175. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17176. msm_routing_put_voice_mixer),
  17177. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  17178. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  17179. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17180. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  17181. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  17182. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17183. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  17184. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  17185. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17186. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  17187. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  17188. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17189. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  17190. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  17191. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17192. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  17193. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  17194. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17195. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_QCHAT", SND_SOC_NOPM,
  17196. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_QCHAT,
  17197. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17198. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_QCHAT", SND_SOC_NOPM,
  17199. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_QCHAT,
  17200. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17201. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_QCHAT", SND_SOC_NOPM,
  17202. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_QCHAT,
  17203. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17204. };
  17205. static const struct snd_kcontrol_new int0_mi2s_rx_port_mixer_controls[] = {
  17206. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17207. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17208. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17209. msm_routing_put_port_mixer),
  17210. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17211. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17212. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17213. msm_routing_put_port_mixer),
  17214. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17215. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17216. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17217. msm_routing_put_port_mixer),
  17218. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17219. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17220. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17221. msm_routing_put_port_mixer),
  17222. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17223. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17224. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17225. msm_routing_put_port_mixer),
  17226. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17227. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17228. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17229. msm_routing_put_port_mixer),
  17230. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  17231. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17232. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17233. msm_routing_put_port_mixer),
  17234. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17235. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17236. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17237. msm_routing_put_port_mixer),
  17238. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17239. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17240. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17241. msm_routing_put_port_mixer),
  17242. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17243. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17244. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  17245. msm_routing_put_port_mixer),
  17246. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17247. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17248. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17249. msm_routing_put_port_mixer),
  17250. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17251. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17252. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  17253. msm_routing_put_port_mixer),
  17254. };
  17255. static const struct snd_kcontrol_new int4_mi2s_rx_port_mixer_controls[] = {
  17256. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17257. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17258. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17259. msm_routing_put_port_mixer),
  17260. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17261. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17262. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17263. msm_routing_put_port_mixer),
  17264. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17265. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17266. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17267. msm_routing_put_port_mixer),
  17268. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17269. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17270. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17271. msm_routing_put_port_mixer),
  17272. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17273. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17274. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17275. msm_routing_put_port_mixer),
  17276. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17277. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17278. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17279. msm_routing_put_port_mixer),
  17280. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  17281. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17282. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17283. msm_routing_put_port_mixer),
  17284. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17285. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17286. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17287. msm_routing_put_port_mixer),
  17288. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17289. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17290. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17291. msm_routing_put_port_mixer),
  17292. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17293. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17294. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  17295. msm_routing_put_port_mixer),
  17296. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17297. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17298. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17299. msm_routing_put_port_mixer),
  17300. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17301. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17302. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  17303. msm_routing_put_port_mixer),
  17304. };
  17305. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_port_mixer_controls[] = {
  17306. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  17307. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  17308. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, 1, 0, msm_routing_get_port_mixer,
  17309. msm_routing_put_port_mixer),
  17310. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17311. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  17312. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  17313. msm_routing_put_port_mixer),
  17314. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17315. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  17316. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17317. msm_routing_put_port_mixer),
  17318. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17319. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  17320. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17321. msm_routing_put_port_mixer),
  17322. };
  17323. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_port_mixer_controls[] = {
  17324. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17325. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  17326. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  17327. msm_routing_put_port_mixer),
  17328. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17329. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  17330. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17331. msm_routing_put_port_mixer),
  17332. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17333. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  17334. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  17335. msm_routing_put_port_mixer),
  17336. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17337. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  17338. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17339. msm_routing_put_port_mixer),
  17340. };
  17341. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_port_mixer_controls[] = {
  17342. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  17343. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  17344. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, 1, 0, msm_routing_get_port_mixer,
  17345. msm_routing_put_port_mixer),
  17346. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17347. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  17348. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  17349. msm_routing_put_port_mixer),
  17350. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17351. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  17352. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17353. msm_routing_put_port_mixer),
  17354. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17355. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  17356. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17357. msm_routing_put_port_mixer),
  17358. };
  17359. static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
  17360. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17361. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17362. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17363. msm_routing_put_port_mixer),
  17364. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17365. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17366. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17367. msm_routing_put_port_mixer),
  17368. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17369. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17370. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17371. msm_routing_put_port_mixer),
  17372. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17373. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17374. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  17375. msm_routing_put_port_mixer),
  17376. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17377. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17378. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17379. msm_routing_put_port_mixer),
  17380. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17381. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17382. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17383. msm_routing_put_port_mixer),
  17384. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17385. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17386. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17387. msm_routing_put_port_mixer),
  17388. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17389. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17390. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17391. msm_routing_put_port_mixer),
  17392. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17393. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17394. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17395. msm_routing_put_port_mixer),
  17396. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17397. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17398. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17399. msm_routing_put_port_mixer),
  17400. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17401. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17402. MSM_BACKEND_DAI_SEN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17403. msm_routing_put_port_mixer),
  17404. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17405. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17406. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17407. msm_routing_put_port_mixer),
  17408. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17409. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17410. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17411. msm_routing_put_port_mixer),
  17412. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17413. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17414. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17415. msm_routing_put_port_mixer),
  17416. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17417. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17418. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17419. msm_routing_put_port_mixer),
  17420. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17421. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17422. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17423. msm_routing_put_port_mixer),
  17424. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17425. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17426. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17427. msm_routing_put_port_mixer),
  17428. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17429. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17430. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17431. msm_routing_put_port_mixer),
  17432. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17433. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17434. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17435. msm_routing_put_port_mixer),
  17436. SOC_DOUBLE_EXT("PRI_MI2S_RX", SND_SOC_NOPM,
  17437. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17438. MSM_BACKEND_DAI_PRI_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17439. msm_routing_put_port_mixer),
  17440. SOC_DOUBLE_EXT("SEC_MI2S_RX", SND_SOC_NOPM,
  17441. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17442. MSM_BACKEND_DAI_SECONDARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17443. msm_routing_put_port_mixer),
  17444. SOC_DOUBLE_EXT("TERT_MI2S_RX", SND_SOC_NOPM,
  17445. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17446. MSM_BACKEND_DAI_TERTIARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17447. msm_routing_put_port_mixer),
  17448. SOC_DOUBLE_EXT("QUAT_MI2S_RX", SND_SOC_NOPM,
  17449. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17450. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17451. msm_routing_put_port_mixer),
  17452. SOC_DOUBLE_EXT("QUIN_MI2S_RX", SND_SOC_NOPM,
  17453. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17454. MSM_BACKEND_DAI_QUINARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17455. msm_routing_put_port_mixer),
  17456. SOC_DOUBLE_EXT("SEN_MI2S_RX", SND_SOC_NOPM,
  17457. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17458. MSM_BACKEND_DAI_SENARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17459. msm_routing_put_port_mixer),
  17460. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17461. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17462. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  17463. msm_routing_put_port_mixer),
  17464. };
  17465. static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
  17466. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17467. MSM_BACKEND_DAI_AUXPCM_RX,
  17468. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17469. msm_routing_put_port_mixer),
  17470. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17471. MSM_BACKEND_DAI_AUXPCM_RX,
  17472. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17473. msm_routing_put_port_mixer),
  17474. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17475. MSM_BACKEND_DAI_AUXPCM_RX,
  17476. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17477. msm_routing_put_port_mixer),
  17478. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17479. MSM_BACKEND_DAI_AUXPCM_RX,
  17480. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17481. msm_routing_put_port_mixer),
  17482. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17483. MSM_BACKEND_DAI_AUXPCM_RX,
  17484. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  17485. msm_routing_put_port_mixer),
  17486. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17487. MSM_BACKEND_DAI_AUXPCM_RX,
  17488. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17489. msm_routing_put_port_mixer),
  17490. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17491. MSM_BACKEND_DAI_AUXPCM_RX,
  17492. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  17493. msm_routing_put_port_mixer),
  17494. };
  17495. static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
  17496. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17497. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  17498. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17499. msm_routing_put_port_mixer),
  17500. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17501. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  17502. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17503. msm_routing_put_port_mixer),
  17504. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17505. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  17506. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17507. msm_routing_put_port_mixer),
  17508. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17509. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  17510. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17511. msm_routing_put_port_mixer),
  17512. };
  17513. static const struct snd_kcontrol_new tert_auxpcm_rx_port_mixer_controls[] = {
  17514. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17515. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  17516. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17517. msm_routing_put_port_mixer),
  17518. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17519. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  17520. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17521. msm_routing_put_port_mixer),
  17522. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17523. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  17524. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17525. msm_routing_put_port_mixer),
  17526. };
  17527. static const struct snd_kcontrol_new quat_auxpcm_rx_port_mixer_controls[] = {
  17528. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17529. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  17530. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17531. msm_routing_put_port_mixer),
  17532. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17533. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  17534. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17535. msm_routing_put_port_mixer),
  17536. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17537. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  17538. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17539. msm_routing_put_port_mixer),
  17540. };
  17541. static const struct snd_kcontrol_new quin_auxpcm_rx_port_mixer_controls[] = {
  17542. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17543. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  17544. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17545. msm_routing_put_port_mixer),
  17546. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17547. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  17548. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17549. msm_routing_put_port_mixer),
  17550. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17551. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  17552. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17553. msm_routing_put_port_mixer),
  17554. };
  17555. static const struct snd_kcontrol_new sen_auxpcm_rx_port_mixer_controls[] = {
  17556. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17557. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  17558. MSM_BACKEND_DAI_SEN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17559. msm_routing_put_port_mixer),
  17560. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17561. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  17562. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17563. msm_routing_put_port_mixer),
  17564. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17565. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  17566. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17567. msm_routing_put_port_mixer),
  17568. };
  17569. static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
  17570. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17571. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17572. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17573. msm_routing_put_port_mixer),
  17574. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17575. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17576. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
  17577. msm_routing_put_port_mixer),
  17578. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17579. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17580. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17581. msm_routing_put_port_mixer),
  17582. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17583. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17584. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17585. msm_routing_put_port_mixer),
  17586. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17587. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17588. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17589. msm_routing_put_port_mixer),
  17590. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17591. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17592. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17593. msm_routing_put_port_mixer),
  17594. };
  17595. static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
  17596. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_RX", SND_SOC_NOPM,
  17597. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17598. MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
  17599. msm_routing_put_port_mixer),
  17600. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17601. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17602. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17603. msm_routing_put_port_mixer),
  17604. SOC_DOUBLE_EXT("AFE_PCM_RX", SND_SOC_NOPM,
  17605. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17606. MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
  17607. msm_routing_put_port_mixer),
  17608. SOC_DOUBLE_EXT("AUX_PCM_RX", SND_SOC_NOPM,
  17609. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17610. MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
  17611. msm_routing_put_port_mixer),
  17612. SOC_DOUBLE_EXT("SLIM_0_RX", SND_SOC_NOPM,
  17613. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17614. MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
  17615. msm_routing_put_port_mixer),
  17616. };
  17617. static const struct snd_kcontrol_new sbus_6_rx_port_mixer_controls[] = {
  17618. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17619. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17620. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17621. msm_routing_put_port_mixer),
  17622. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17623. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17624. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17625. msm_routing_put_port_mixer),
  17626. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17627. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17628. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17629. msm_routing_put_port_mixer),
  17630. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17631. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17632. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  17633. msm_routing_put_port_mixer),
  17634. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17635. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17636. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17637. msm_routing_put_port_mixer),
  17638. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17639. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17640. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17641. msm_routing_put_port_mixer),
  17642. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17643. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17644. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17645. msm_routing_put_port_mixer),
  17646. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17647. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17648. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17649. msm_routing_put_port_mixer),
  17650. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17651. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17652. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17653. msm_routing_put_port_mixer),
  17654. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17655. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17656. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17657. msm_routing_put_port_mixer),
  17658. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17659. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17660. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17661. msm_routing_put_port_mixer),
  17662. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17663. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17664. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17665. msm_routing_put_port_mixer),
  17666. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17667. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17668. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  17669. msm_routing_put_port_mixer),
  17670. };
  17671. static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
  17672. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17673. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  17674. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17675. msm_routing_put_port_mixer),
  17676. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17677. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  17678. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17679. msm_routing_put_port_mixer),
  17680. };
  17681. static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
  17682. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17683. MSM_BACKEND_DAI_AFE_PCM_RX,
  17684. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17685. msm_routing_put_port_mixer),
  17686. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17687. MSM_BACKEND_DAI_AFE_PCM_RX,
  17688. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17689. msm_routing_put_port_mixer),
  17690. };
  17691. static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
  17692. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17693. MSM_BACKEND_DAI_HDMI_RX,
  17694. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17695. msm_routing_put_port_mixer),
  17696. };
  17697. static const struct snd_kcontrol_new display_port_rx_port_mixer_controls[] = {
  17698. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17699. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  17700. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17701. msm_routing_put_port_mixer),
  17702. };
  17703. static const struct snd_kcontrol_new display_port_rx1_port_mixer_controls[] = {
  17704. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17705. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  17706. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17707. msm_routing_put_port_mixer),
  17708. };
  17709. static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
  17710. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17711. MSM_BACKEND_DAI_SEC_I2S_RX,
  17712. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17713. msm_routing_put_port_mixer),
  17714. };
  17715. static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
  17716. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17717. MSM_BACKEND_DAI_MI2S_RX,
  17718. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17719. msm_routing_put_port_mixer),
  17720. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17721. MSM_BACKEND_DAI_MI2S_RX,
  17722. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17723. msm_routing_put_port_mixer),
  17724. };
  17725. static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
  17726. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17727. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17728. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17729. msm_routing_put_port_mixer),
  17730. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17731. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17732. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17733. msm_routing_put_port_mixer),
  17734. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17735. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17736. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17737. msm_routing_put_port_mixer),
  17738. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17739. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17740. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17741. msm_routing_put_port_mixer),
  17742. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17743. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17744. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17745. msm_routing_put_port_mixer),
  17746. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17747. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17748. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17749. msm_routing_put_port_mixer),
  17750. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17751. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17752. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17753. msm_routing_put_port_mixer),
  17754. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17755. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17756. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17757. msm_routing_put_port_mixer),
  17758. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17759. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17760. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17761. msm_routing_put_port_mixer),
  17762. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17763. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17764. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17765. msm_routing_put_port_mixer),
  17766. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17767. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17768. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17769. msm_routing_put_port_mixer),
  17770. };
  17771. static const struct snd_kcontrol_new usb_rx_port_mixer_controls[] = {
  17772. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  17773. MSM_BACKEND_DAI_USB_RX,
  17774. MSM_BACKEND_DAI_USB_TX, 1, 0, msm_routing_get_port_mixer,
  17775. msm_routing_put_port_mixer),
  17776. };
  17777. static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
  17778. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17779. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17780. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17781. msm_routing_put_port_mixer),
  17782. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17783. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17784. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17785. msm_routing_put_port_mixer),
  17786. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17787. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17788. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17789. msm_routing_put_port_mixer),
  17790. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17791. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17792. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17793. msm_routing_put_port_mixer),
  17794. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17795. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17796. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17797. msm_routing_put_port_mixer),
  17798. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17799. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17800. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17801. msm_routing_put_port_mixer),
  17802. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17803. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17804. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17805. msm_routing_put_port_mixer),
  17806. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17807. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17808. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17809. msm_routing_put_port_mixer),
  17810. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17811. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17812. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17813. msm_routing_put_port_mixer),
  17814. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17815. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17816. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17817. msm_routing_put_port_mixer),
  17818. };
  17819. static const struct snd_kcontrol_new quin_mi2s_rx_port_mixer_controls[] = {
  17820. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17821. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17822. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17823. msm_routing_put_port_mixer),
  17824. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17825. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17826. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17827. msm_routing_put_port_mixer),
  17828. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17829. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17830. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17831. msm_routing_put_port_mixer),
  17832. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17833. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17834. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17835. msm_routing_put_port_mixer),
  17836. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17837. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17838. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17839. msm_routing_put_port_mixer),
  17840. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17841. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17842. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17843. msm_routing_put_port_mixer),
  17844. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17845. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17846. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17847. msm_routing_put_port_mixer),
  17848. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17849. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17850. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17851. msm_routing_put_port_mixer),
  17852. };
  17853. static const struct snd_kcontrol_new sen_mi2s_rx_port_mixer_controls[] = {
  17854. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17855. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17856. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17857. msm_routing_put_port_mixer),
  17858. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17859. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17860. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17861. msm_routing_put_port_mixer),
  17862. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17863. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17864. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17865. msm_routing_put_port_mixer),
  17866. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17867. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17868. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17869. msm_routing_put_port_mixer),
  17870. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17871. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17872. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17873. msm_routing_put_port_mixer),
  17874. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17875. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17876. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17877. msm_routing_put_port_mixer),
  17878. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17879. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17880. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17881. msm_routing_put_port_mixer),
  17882. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17883. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17884. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17885. msm_routing_put_port_mixer),
  17886. };
  17887. static const struct snd_kcontrol_new pri_tdm_rx_0_port_mixer_controls[] = {
  17888. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17889. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17890. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17891. msm_routing_get_port_mixer,
  17892. msm_routing_put_port_mixer),
  17893. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17894. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17895. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17896. msm_routing_get_port_mixer,
  17897. msm_routing_put_port_mixer),
  17898. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17899. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17900. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17901. msm_routing_get_port_mixer,
  17902. msm_routing_put_port_mixer),
  17903. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17904. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17905. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17906. msm_routing_get_port_mixer,
  17907. msm_routing_put_port_mixer),
  17908. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17909. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17910. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17911. msm_routing_get_port_mixer,
  17912. msm_routing_put_port_mixer),
  17913. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17914. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17915. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17916. msm_routing_get_port_mixer,
  17917. msm_routing_put_port_mixer),
  17918. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17919. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17920. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17921. msm_routing_get_port_mixer,
  17922. msm_routing_put_port_mixer),
  17923. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17924. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17925. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17926. msm_routing_get_port_mixer,
  17927. msm_routing_put_port_mixer),
  17928. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  17929. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17930. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  17931. msm_routing_get_port_mixer,
  17932. msm_routing_put_port_mixer),
  17933. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  17934. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17935. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  17936. msm_routing_get_port_mixer,
  17937. msm_routing_put_port_mixer),
  17938. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  17939. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17940. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  17941. msm_routing_get_port_mixer,
  17942. msm_routing_put_port_mixer),
  17943. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  17944. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17945. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  17946. msm_routing_get_port_mixer,
  17947. msm_routing_put_port_mixer),
  17948. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17949. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17950. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17951. msm_routing_get_port_mixer,
  17952. msm_routing_put_port_mixer),
  17953. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17954. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17955. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17956. msm_routing_get_port_mixer,
  17957. msm_routing_put_port_mixer),
  17958. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17959. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17960. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17961. msm_routing_get_port_mixer,
  17962. msm_routing_put_port_mixer),
  17963. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17964. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17965. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17966. msm_routing_get_port_mixer,
  17967. msm_routing_put_port_mixer),
  17968. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17969. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17970. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17971. msm_routing_get_port_mixer,
  17972. msm_routing_put_port_mixer),
  17973. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17974. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17975. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17976. msm_routing_get_port_mixer,
  17977. msm_routing_put_port_mixer),
  17978. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17979. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17980. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17981. msm_routing_get_port_mixer,
  17982. msm_routing_put_port_mixer),
  17983. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17984. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17985. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17986. msm_routing_get_port_mixer,
  17987. msm_routing_put_port_mixer),
  17988. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17989. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17990. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17991. msm_routing_get_port_mixer,
  17992. msm_routing_put_port_mixer),
  17993. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17994. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17995. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17996. msm_routing_get_port_mixer,
  17997. msm_routing_put_port_mixer),
  17998. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17999. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18000. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18001. msm_routing_get_port_mixer,
  18002. msm_routing_put_port_mixer),
  18003. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18004. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18005. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18006. msm_routing_get_port_mixer,
  18007. msm_routing_put_port_mixer),
  18008. };
  18009. static const struct snd_kcontrol_new pri_tdm_rx_1_port_mixer_controls[] = {
  18010. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18011. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18012. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18013. msm_routing_get_port_mixer,
  18014. msm_routing_put_port_mixer),
  18015. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18016. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18017. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18018. msm_routing_get_port_mixer,
  18019. msm_routing_put_port_mixer),
  18020. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18021. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18022. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18023. msm_routing_get_port_mixer,
  18024. msm_routing_put_port_mixer),
  18025. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18026. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18027. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18028. msm_routing_get_port_mixer,
  18029. msm_routing_put_port_mixer),
  18030. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18031. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18032. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18033. msm_routing_get_port_mixer,
  18034. msm_routing_put_port_mixer),
  18035. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18036. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18037. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18038. msm_routing_get_port_mixer,
  18039. msm_routing_put_port_mixer),
  18040. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18041. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18042. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18043. msm_routing_get_port_mixer,
  18044. msm_routing_put_port_mixer),
  18045. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18046. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18047. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18048. msm_routing_get_port_mixer,
  18049. msm_routing_put_port_mixer),
  18050. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  18051. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18052. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  18053. msm_routing_get_port_mixer,
  18054. msm_routing_put_port_mixer),
  18055. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  18056. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18057. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  18058. msm_routing_get_port_mixer,
  18059. msm_routing_put_port_mixer),
  18060. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  18061. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18062. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  18063. msm_routing_get_port_mixer,
  18064. msm_routing_put_port_mixer),
  18065. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  18066. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18067. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  18068. msm_routing_get_port_mixer,
  18069. msm_routing_put_port_mixer),
  18070. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18071. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18072. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18073. msm_routing_get_port_mixer,
  18074. msm_routing_put_port_mixer),
  18075. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18076. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18077. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18078. msm_routing_get_port_mixer,
  18079. msm_routing_put_port_mixer),
  18080. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18081. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18082. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18083. msm_routing_get_port_mixer,
  18084. msm_routing_put_port_mixer),
  18085. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18086. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18087. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18088. msm_routing_get_port_mixer,
  18089. msm_routing_put_port_mixer),
  18090. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18091. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18092. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18093. msm_routing_get_port_mixer,
  18094. msm_routing_put_port_mixer),
  18095. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18096. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18097. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18098. msm_routing_get_port_mixer,
  18099. msm_routing_put_port_mixer),
  18100. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18101. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18102. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18103. msm_routing_get_port_mixer,
  18104. msm_routing_put_port_mixer),
  18105. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18106. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18107. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18108. msm_routing_get_port_mixer,
  18109. msm_routing_put_port_mixer),
  18110. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18111. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18112. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18113. msm_routing_get_port_mixer,
  18114. msm_routing_put_port_mixer),
  18115. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18116. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18117. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18118. msm_routing_get_port_mixer,
  18119. msm_routing_put_port_mixer),
  18120. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18121. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18122. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18123. msm_routing_get_port_mixer,
  18124. msm_routing_put_port_mixer),
  18125. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18126. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18127. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18128. msm_routing_get_port_mixer,
  18129. msm_routing_put_port_mixer),
  18130. };
  18131. static const struct snd_kcontrol_new pri_tdm_rx_2_port_mixer_controls[] = {
  18132. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18133. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18134. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18135. msm_routing_get_port_mixer,
  18136. msm_routing_put_port_mixer),
  18137. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18138. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18139. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18140. msm_routing_get_port_mixer,
  18141. msm_routing_put_port_mixer),
  18142. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18143. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18144. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18145. msm_routing_get_port_mixer,
  18146. msm_routing_put_port_mixer),
  18147. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18148. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18149. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18150. msm_routing_get_port_mixer,
  18151. msm_routing_put_port_mixer),
  18152. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18153. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18154. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18155. msm_routing_get_port_mixer,
  18156. msm_routing_put_port_mixer),
  18157. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18158. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18159. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18160. msm_routing_get_port_mixer,
  18161. msm_routing_put_port_mixer),
  18162. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18163. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18164. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18165. msm_routing_get_port_mixer,
  18166. msm_routing_put_port_mixer),
  18167. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18168. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18169. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18170. msm_routing_get_port_mixer,
  18171. msm_routing_put_port_mixer),
  18172. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  18173. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18174. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  18175. msm_routing_get_port_mixer,
  18176. msm_routing_put_port_mixer),
  18177. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  18178. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18179. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  18180. msm_routing_get_port_mixer,
  18181. msm_routing_put_port_mixer),
  18182. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  18183. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18184. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  18185. msm_routing_get_port_mixer,
  18186. msm_routing_put_port_mixer),
  18187. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  18188. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18189. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  18190. msm_routing_get_port_mixer,
  18191. msm_routing_put_port_mixer),
  18192. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18193. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18194. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18195. msm_routing_get_port_mixer,
  18196. msm_routing_put_port_mixer),
  18197. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18198. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18199. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18200. msm_routing_get_port_mixer,
  18201. msm_routing_put_port_mixer),
  18202. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18203. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18204. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18205. msm_routing_get_port_mixer,
  18206. msm_routing_put_port_mixer),
  18207. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18208. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18209. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18210. msm_routing_get_port_mixer,
  18211. msm_routing_put_port_mixer),
  18212. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18213. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18214. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18215. msm_routing_get_port_mixer,
  18216. msm_routing_put_port_mixer),
  18217. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18218. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18219. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18220. msm_routing_get_port_mixer,
  18221. msm_routing_put_port_mixer),
  18222. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18223. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18224. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18225. msm_routing_get_port_mixer,
  18226. msm_routing_put_port_mixer),
  18227. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18228. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18229. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18230. msm_routing_get_port_mixer,
  18231. msm_routing_put_port_mixer),
  18232. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18233. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18234. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18235. msm_routing_get_port_mixer,
  18236. msm_routing_put_port_mixer),
  18237. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18238. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18239. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18240. msm_routing_get_port_mixer,
  18241. msm_routing_put_port_mixer),
  18242. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18243. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18244. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18245. msm_routing_get_port_mixer,
  18246. msm_routing_put_port_mixer),
  18247. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18248. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18249. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18250. msm_routing_get_port_mixer,
  18251. msm_routing_put_port_mixer),
  18252. };
  18253. static const struct snd_kcontrol_new pri_tdm_rx_3_port_mixer_controls[] = {
  18254. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18255. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18256. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18257. msm_routing_get_port_mixer,
  18258. msm_routing_put_port_mixer),
  18259. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18260. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18261. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18262. msm_routing_get_port_mixer,
  18263. msm_routing_put_port_mixer),
  18264. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18265. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18266. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18267. msm_routing_get_port_mixer,
  18268. msm_routing_put_port_mixer),
  18269. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18270. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18271. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18272. msm_routing_get_port_mixer,
  18273. msm_routing_put_port_mixer),
  18274. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18275. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18276. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18277. msm_routing_get_port_mixer,
  18278. msm_routing_put_port_mixer),
  18279. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18280. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18281. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18282. msm_routing_get_port_mixer,
  18283. msm_routing_put_port_mixer),
  18284. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18285. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18286. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18287. msm_routing_get_port_mixer,
  18288. msm_routing_put_port_mixer),
  18289. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18290. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18291. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18292. msm_routing_get_port_mixer,
  18293. msm_routing_put_port_mixer),
  18294. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  18295. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18296. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  18297. msm_routing_get_port_mixer,
  18298. msm_routing_put_port_mixer),
  18299. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  18300. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18301. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  18302. msm_routing_get_port_mixer,
  18303. msm_routing_put_port_mixer),
  18304. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  18305. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18306. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  18307. msm_routing_get_port_mixer,
  18308. msm_routing_put_port_mixer),
  18309. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  18310. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18311. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  18312. msm_routing_get_port_mixer,
  18313. msm_routing_put_port_mixer),
  18314. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18315. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18316. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18317. msm_routing_get_port_mixer,
  18318. msm_routing_put_port_mixer),
  18319. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18320. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18321. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18322. msm_routing_get_port_mixer,
  18323. msm_routing_put_port_mixer),
  18324. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18325. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18326. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18327. msm_routing_get_port_mixer,
  18328. msm_routing_put_port_mixer),
  18329. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18330. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18331. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18332. msm_routing_get_port_mixer,
  18333. msm_routing_put_port_mixer),
  18334. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18335. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18336. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18337. msm_routing_get_port_mixer,
  18338. msm_routing_put_port_mixer),
  18339. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18340. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18341. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18342. msm_routing_get_port_mixer,
  18343. msm_routing_put_port_mixer),
  18344. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18345. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18346. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18347. msm_routing_get_port_mixer,
  18348. msm_routing_put_port_mixer),
  18349. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18350. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18351. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18352. msm_routing_get_port_mixer,
  18353. msm_routing_put_port_mixer),
  18354. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18355. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18356. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18357. msm_routing_get_port_mixer,
  18358. msm_routing_put_port_mixer),
  18359. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18360. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18361. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18362. msm_routing_get_port_mixer,
  18363. msm_routing_put_port_mixer),
  18364. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18365. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18366. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18367. msm_routing_get_port_mixer,
  18368. msm_routing_put_port_mixer),
  18369. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18370. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18371. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18372. msm_routing_get_port_mixer,
  18373. msm_routing_put_port_mixer),
  18374. };
  18375. static const struct snd_kcontrol_new sec_tdm_rx_0_port_mixer_controls[] = {
  18376. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18377. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18378. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18379. msm_routing_get_port_mixer,
  18380. msm_routing_put_port_mixer),
  18381. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18382. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18383. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18384. msm_routing_get_port_mixer,
  18385. msm_routing_put_port_mixer),
  18386. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18387. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18388. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18389. msm_routing_get_port_mixer,
  18390. msm_routing_put_port_mixer),
  18391. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18392. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18393. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18394. msm_routing_get_port_mixer,
  18395. msm_routing_put_port_mixer),
  18396. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18397. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18398. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18399. msm_routing_get_port_mixer,
  18400. msm_routing_put_port_mixer),
  18401. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18402. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18403. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18404. msm_routing_get_port_mixer,
  18405. msm_routing_put_port_mixer),
  18406. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18407. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18408. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18409. msm_routing_get_port_mixer,
  18410. msm_routing_put_port_mixer),
  18411. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18412. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18413. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18414. msm_routing_get_port_mixer,
  18415. msm_routing_put_port_mixer),
  18416. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  18417. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18418. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  18419. msm_routing_get_port_mixer,
  18420. msm_routing_put_port_mixer),
  18421. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  18422. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18423. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  18424. msm_routing_get_port_mixer,
  18425. msm_routing_put_port_mixer),
  18426. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  18427. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18428. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  18429. msm_routing_get_port_mixer,
  18430. msm_routing_put_port_mixer),
  18431. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  18432. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18433. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  18434. msm_routing_get_port_mixer,
  18435. msm_routing_put_port_mixer),
  18436. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18437. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18438. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18439. msm_routing_get_port_mixer,
  18440. msm_routing_put_port_mixer),
  18441. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18442. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18443. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18444. msm_routing_get_port_mixer,
  18445. msm_routing_put_port_mixer),
  18446. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18447. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18448. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18449. msm_routing_get_port_mixer,
  18450. msm_routing_put_port_mixer),
  18451. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18452. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18453. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18454. msm_routing_get_port_mixer,
  18455. msm_routing_put_port_mixer),
  18456. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18457. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18458. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18459. msm_routing_get_port_mixer,
  18460. msm_routing_put_port_mixer),
  18461. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18462. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18463. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18464. msm_routing_get_port_mixer,
  18465. msm_routing_put_port_mixer),
  18466. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18467. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18468. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18469. msm_routing_get_port_mixer,
  18470. msm_routing_put_port_mixer),
  18471. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18472. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18473. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18474. msm_routing_get_port_mixer,
  18475. msm_routing_put_port_mixer),
  18476. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18477. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18478. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18479. msm_routing_get_port_mixer,
  18480. msm_routing_put_port_mixer),
  18481. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18482. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18483. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18484. msm_routing_get_port_mixer,
  18485. msm_routing_put_port_mixer),
  18486. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18487. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18488. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18489. msm_routing_get_port_mixer,
  18490. msm_routing_put_port_mixer),
  18491. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18492. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18493. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18494. msm_routing_get_port_mixer,
  18495. msm_routing_put_port_mixer),
  18496. };
  18497. static const struct snd_kcontrol_new sec_tdm_rx_1_port_mixer_controls[] = {
  18498. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18499. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18500. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18501. msm_routing_get_port_mixer,
  18502. msm_routing_put_port_mixer),
  18503. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18504. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18505. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18506. msm_routing_get_port_mixer,
  18507. msm_routing_put_port_mixer),
  18508. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18509. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18510. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18511. msm_routing_get_port_mixer,
  18512. msm_routing_put_port_mixer),
  18513. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18514. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18515. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18516. msm_routing_get_port_mixer,
  18517. msm_routing_put_port_mixer),
  18518. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18519. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18520. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18521. msm_routing_get_port_mixer,
  18522. msm_routing_put_port_mixer),
  18523. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18524. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18525. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18526. msm_routing_get_port_mixer,
  18527. msm_routing_put_port_mixer),
  18528. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18529. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18530. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18531. msm_routing_get_port_mixer,
  18532. msm_routing_put_port_mixer),
  18533. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18534. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18535. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18536. msm_routing_get_port_mixer,
  18537. msm_routing_put_port_mixer),
  18538. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  18539. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18540. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  18541. msm_routing_get_port_mixer,
  18542. msm_routing_put_port_mixer),
  18543. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  18544. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18545. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  18546. msm_routing_get_port_mixer,
  18547. msm_routing_put_port_mixer),
  18548. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  18549. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18550. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  18551. msm_routing_get_port_mixer,
  18552. msm_routing_put_port_mixer),
  18553. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  18554. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18555. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  18556. msm_routing_get_port_mixer,
  18557. msm_routing_put_port_mixer),
  18558. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18559. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18560. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18561. msm_routing_get_port_mixer,
  18562. msm_routing_put_port_mixer),
  18563. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18564. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18565. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18566. msm_routing_get_port_mixer,
  18567. msm_routing_put_port_mixer),
  18568. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18569. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18570. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18571. msm_routing_get_port_mixer,
  18572. msm_routing_put_port_mixer),
  18573. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18574. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18575. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18576. msm_routing_get_port_mixer,
  18577. msm_routing_put_port_mixer),
  18578. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18579. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18580. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18581. msm_routing_get_port_mixer,
  18582. msm_routing_put_port_mixer),
  18583. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18584. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18585. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18586. msm_routing_get_port_mixer,
  18587. msm_routing_put_port_mixer),
  18588. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18589. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18590. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18591. msm_routing_get_port_mixer,
  18592. msm_routing_put_port_mixer),
  18593. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18594. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18595. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18596. msm_routing_get_port_mixer,
  18597. msm_routing_put_port_mixer),
  18598. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18599. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18600. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18601. msm_routing_get_port_mixer,
  18602. msm_routing_put_port_mixer),
  18603. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18604. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18605. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18606. msm_routing_get_port_mixer,
  18607. msm_routing_put_port_mixer),
  18608. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18609. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18610. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18611. msm_routing_get_port_mixer,
  18612. msm_routing_put_port_mixer),
  18613. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18614. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18615. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18616. msm_routing_get_port_mixer,
  18617. msm_routing_put_port_mixer),
  18618. };
  18619. static const struct snd_kcontrol_new sec_tdm_rx_2_port_mixer_controls[] = {
  18620. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18621. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18622. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18623. msm_routing_get_port_mixer,
  18624. msm_routing_put_port_mixer),
  18625. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18626. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18627. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18628. msm_routing_get_port_mixer,
  18629. msm_routing_put_port_mixer),
  18630. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18631. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18632. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18633. msm_routing_get_port_mixer,
  18634. msm_routing_put_port_mixer),
  18635. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18636. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18637. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18638. msm_routing_get_port_mixer,
  18639. msm_routing_put_port_mixer),
  18640. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18641. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18642. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18643. msm_routing_get_port_mixer,
  18644. msm_routing_put_port_mixer),
  18645. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18646. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18647. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18648. msm_routing_get_port_mixer,
  18649. msm_routing_put_port_mixer),
  18650. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18651. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18652. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18653. msm_routing_get_port_mixer,
  18654. msm_routing_put_port_mixer),
  18655. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18656. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18657. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18658. msm_routing_get_port_mixer,
  18659. msm_routing_put_port_mixer),
  18660. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  18661. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18662. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  18663. msm_routing_get_port_mixer,
  18664. msm_routing_put_port_mixer),
  18665. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  18666. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18667. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  18668. msm_routing_get_port_mixer,
  18669. msm_routing_put_port_mixer),
  18670. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  18671. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18672. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  18673. msm_routing_get_port_mixer,
  18674. msm_routing_put_port_mixer),
  18675. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  18676. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18677. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  18678. msm_routing_get_port_mixer,
  18679. msm_routing_put_port_mixer),
  18680. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18681. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18682. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18683. msm_routing_get_port_mixer,
  18684. msm_routing_put_port_mixer),
  18685. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18686. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18687. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18688. msm_routing_get_port_mixer,
  18689. msm_routing_put_port_mixer),
  18690. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18691. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18692. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18693. msm_routing_get_port_mixer,
  18694. msm_routing_put_port_mixer),
  18695. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18696. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18697. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18698. msm_routing_get_port_mixer,
  18699. msm_routing_put_port_mixer),
  18700. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18701. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18702. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18703. msm_routing_get_port_mixer,
  18704. msm_routing_put_port_mixer),
  18705. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18706. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18707. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18708. msm_routing_get_port_mixer,
  18709. msm_routing_put_port_mixer),
  18710. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18711. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18712. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18713. msm_routing_get_port_mixer,
  18714. msm_routing_put_port_mixer),
  18715. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18716. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18717. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18718. msm_routing_get_port_mixer,
  18719. msm_routing_put_port_mixer),
  18720. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18721. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18722. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18723. msm_routing_get_port_mixer,
  18724. msm_routing_put_port_mixer),
  18725. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18726. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18727. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18728. msm_routing_get_port_mixer,
  18729. msm_routing_put_port_mixer),
  18730. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18731. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18732. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18733. msm_routing_get_port_mixer,
  18734. msm_routing_put_port_mixer),
  18735. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18736. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18737. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18738. msm_routing_get_port_mixer,
  18739. msm_routing_put_port_mixer),
  18740. };
  18741. static const struct snd_kcontrol_new sec_tdm_rx_3_port_mixer_controls[] = {
  18742. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18743. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18744. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18745. msm_routing_get_port_mixer,
  18746. msm_routing_put_port_mixer),
  18747. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18748. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18749. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18750. msm_routing_get_port_mixer,
  18751. msm_routing_put_port_mixer),
  18752. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18753. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18754. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18755. msm_routing_get_port_mixer,
  18756. msm_routing_put_port_mixer),
  18757. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18758. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18759. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18760. msm_routing_get_port_mixer,
  18761. msm_routing_put_port_mixer),
  18762. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18763. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18764. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18765. msm_routing_get_port_mixer,
  18766. msm_routing_put_port_mixer),
  18767. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18768. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18769. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18770. msm_routing_get_port_mixer,
  18771. msm_routing_put_port_mixer),
  18772. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18773. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18774. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18775. msm_routing_get_port_mixer,
  18776. msm_routing_put_port_mixer),
  18777. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18778. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18779. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18780. msm_routing_get_port_mixer,
  18781. msm_routing_put_port_mixer),
  18782. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  18783. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18784. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  18785. msm_routing_get_port_mixer,
  18786. msm_routing_put_port_mixer),
  18787. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  18788. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18789. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  18790. msm_routing_get_port_mixer,
  18791. msm_routing_put_port_mixer),
  18792. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  18793. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18794. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  18795. msm_routing_get_port_mixer,
  18796. msm_routing_put_port_mixer),
  18797. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  18798. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18799. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  18800. msm_routing_get_port_mixer,
  18801. msm_routing_put_port_mixer),
  18802. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18803. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18804. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18805. msm_routing_get_port_mixer,
  18806. msm_routing_put_port_mixer),
  18807. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18808. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18809. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18810. msm_routing_get_port_mixer,
  18811. msm_routing_put_port_mixer),
  18812. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18813. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18814. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18815. msm_routing_get_port_mixer,
  18816. msm_routing_put_port_mixer),
  18817. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18818. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18819. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18820. msm_routing_get_port_mixer,
  18821. msm_routing_put_port_mixer),
  18822. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18823. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18824. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18825. msm_routing_get_port_mixer,
  18826. msm_routing_put_port_mixer),
  18827. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18828. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18829. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18830. msm_routing_get_port_mixer,
  18831. msm_routing_put_port_mixer),
  18832. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18833. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18834. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18835. msm_routing_get_port_mixer,
  18836. msm_routing_put_port_mixer),
  18837. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18838. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18839. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18840. msm_routing_get_port_mixer,
  18841. msm_routing_put_port_mixer),
  18842. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18843. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18844. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18845. msm_routing_get_port_mixer,
  18846. msm_routing_put_port_mixer),
  18847. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18848. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18849. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18850. msm_routing_get_port_mixer,
  18851. msm_routing_put_port_mixer),
  18852. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18853. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18854. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18855. msm_routing_get_port_mixer,
  18856. msm_routing_put_port_mixer),
  18857. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18858. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18859. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18860. msm_routing_get_port_mixer,
  18861. msm_routing_put_port_mixer),
  18862. };
  18863. static const struct snd_kcontrol_new sec_tdm_rx_7_port_mixer_controls[] = {
  18864. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  18865. MSM_BACKEND_DAI_SEC_TDM_RX_7,
  18866. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  18867. msm_routing_get_port_mixer,
  18868. msm_routing_put_port_mixer),
  18869. };
  18870. static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
  18871. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18872. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18873. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18874. msm_routing_get_port_mixer,
  18875. msm_routing_put_port_mixer),
  18876. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18877. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18878. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18879. msm_routing_get_port_mixer,
  18880. msm_routing_put_port_mixer),
  18881. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18882. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18883. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18884. msm_routing_get_port_mixer,
  18885. msm_routing_put_port_mixer),
  18886. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18887. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18888. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18889. msm_routing_get_port_mixer,
  18890. msm_routing_put_port_mixer),
  18891. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18892. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18893. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18894. msm_routing_get_port_mixer,
  18895. msm_routing_put_port_mixer),
  18896. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18897. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18898. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18899. msm_routing_get_port_mixer,
  18900. msm_routing_put_port_mixer),
  18901. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18902. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18903. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18904. msm_routing_get_port_mixer,
  18905. msm_routing_put_port_mixer),
  18906. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18907. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18908. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18909. msm_routing_get_port_mixer,
  18910. msm_routing_put_port_mixer),
  18911. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18912. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18913. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18914. msm_routing_get_port_mixer,
  18915. msm_routing_put_port_mixer),
  18916. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18917. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18918. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18919. msm_routing_get_port_mixer,
  18920. msm_routing_put_port_mixer),
  18921. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18922. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18923. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18924. msm_routing_get_port_mixer,
  18925. msm_routing_put_port_mixer),
  18926. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18927. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18928. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18929. msm_routing_get_port_mixer,
  18930. msm_routing_put_port_mixer),
  18931. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18932. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18933. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18934. msm_routing_get_port_mixer,
  18935. msm_routing_put_port_mixer),
  18936. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18937. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18938. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18939. msm_routing_get_port_mixer,
  18940. msm_routing_put_port_mixer),
  18941. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18942. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18943. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18944. msm_routing_get_port_mixer,
  18945. msm_routing_put_port_mixer),
  18946. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18947. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18948. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18949. msm_routing_get_port_mixer,
  18950. msm_routing_put_port_mixer),
  18951. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18952. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18953. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18954. msm_routing_get_port_mixer,
  18955. msm_routing_put_port_mixer),
  18956. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18957. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18958. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18959. msm_routing_get_port_mixer,
  18960. msm_routing_put_port_mixer),
  18961. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18962. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18963. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18964. msm_routing_get_port_mixer,
  18965. msm_routing_put_port_mixer),
  18966. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18967. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18968. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18969. msm_routing_get_port_mixer,
  18970. msm_routing_put_port_mixer),
  18971. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18972. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18973. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18974. msm_routing_get_port_mixer,
  18975. msm_routing_put_port_mixer),
  18976. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18977. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18978. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18979. msm_routing_get_port_mixer,
  18980. msm_routing_put_port_mixer),
  18981. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18982. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18983. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18984. msm_routing_get_port_mixer,
  18985. msm_routing_put_port_mixer),
  18986. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18987. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18988. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18989. msm_routing_get_port_mixer,
  18990. msm_routing_put_port_mixer),
  18991. };
  18992. static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
  18993. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18994. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18995. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18996. msm_routing_get_port_mixer,
  18997. msm_routing_put_port_mixer),
  18998. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18999. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19000. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19001. msm_routing_get_port_mixer,
  19002. msm_routing_put_port_mixer),
  19003. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19004. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19005. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  19006. msm_routing_get_port_mixer,
  19007. msm_routing_put_port_mixer),
  19008. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19009. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19010. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19011. msm_routing_get_port_mixer,
  19012. msm_routing_put_port_mixer),
  19013. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19014. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19015. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19016. msm_routing_get_port_mixer,
  19017. msm_routing_put_port_mixer),
  19018. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19019. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19020. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19021. msm_routing_get_port_mixer,
  19022. msm_routing_put_port_mixer),
  19023. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19024. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19025. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19026. msm_routing_get_port_mixer,
  19027. msm_routing_put_port_mixer),
  19028. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19029. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19030. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19031. msm_routing_get_port_mixer,
  19032. msm_routing_put_port_mixer),
  19033. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19034. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19035. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19036. msm_routing_get_port_mixer,
  19037. msm_routing_put_port_mixer),
  19038. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19039. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19040. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19041. msm_routing_get_port_mixer,
  19042. msm_routing_put_port_mixer),
  19043. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19044. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19045. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19046. msm_routing_get_port_mixer,
  19047. msm_routing_put_port_mixer),
  19048. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19049. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19050. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19051. msm_routing_get_port_mixer,
  19052. msm_routing_put_port_mixer),
  19053. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19054. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19055. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19056. msm_routing_get_port_mixer,
  19057. msm_routing_put_port_mixer),
  19058. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19059. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19060. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19061. msm_routing_get_port_mixer,
  19062. msm_routing_put_port_mixer),
  19063. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19064. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19065. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19066. msm_routing_get_port_mixer,
  19067. msm_routing_put_port_mixer),
  19068. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19069. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19070. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19071. msm_routing_get_port_mixer,
  19072. msm_routing_put_port_mixer),
  19073. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19074. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19075. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19076. msm_routing_get_port_mixer,
  19077. msm_routing_put_port_mixer),
  19078. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19079. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19080. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19081. msm_routing_get_port_mixer,
  19082. msm_routing_put_port_mixer),
  19083. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19084. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19085. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19086. msm_routing_get_port_mixer,
  19087. msm_routing_put_port_mixer),
  19088. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19089. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19090. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19091. msm_routing_get_port_mixer,
  19092. msm_routing_put_port_mixer),
  19093. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19094. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19095. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19096. msm_routing_get_port_mixer,
  19097. msm_routing_put_port_mixer),
  19098. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19099. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19100. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19101. msm_routing_get_port_mixer,
  19102. msm_routing_put_port_mixer),
  19103. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19104. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19105. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19106. msm_routing_get_port_mixer,
  19107. msm_routing_put_port_mixer),
  19108. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19109. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19110. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19111. msm_routing_get_port_mixer,
  19112. msm_routing_put_port_mixer),
  19113. };
  19114. static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
  19115. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19116. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19117. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19118. msm_routing_get_port_mixer,
  19119. msm_routing_put_port_mixer),
  19120. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19121. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19122. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19123. msm_routing_get_port_mixer,
  19124. msm_routing_put_port_mixer),
  19125. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19126. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19127. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  19128. msm_routing_get_port_mixer,
  19129. msm_routing_put_port_mixer),
  19130. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19131. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19132. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19133. msm_routing_get_port_mixer,
  19134. msm_routing_put_port_mixer),
  19135. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19136. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19137. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19138. msm_routing_get_port_mixer,
  19139. msm_routing_put_port_mixer),
  19140. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19141. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19142. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19143. msm_routing_get_port_mixer,
  19144. msm_routing_put_port_mixer),
  19145. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19146. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19147. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19148. msm_routing_get_port_mixer,
  19149. msm_routing_put_port_mixer),
  19150. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19151. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19152. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19153. msm_routing_get_port_mixer,
  19154. msm_routing_put_port_mixer),
  19155. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19156. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19157. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19158. msm_routing_get_port_mixer,
  19159. msm_routing_put_port_mixer),
  19160. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19161. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19162. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19163. msm_routing_get_port_mixer,
  19164. msm_routing_put_port_mixer),
  19165. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19166. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19167. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19168. msm_routing_get_port_mixer,
  19169. msm_routing_put_port_mixer),
  19170. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19171. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19172. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19173. msm_routing_get_port_mixer,
  19174. msm_routing_put_port_mixer),
  19175. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19176. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19177. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19178. msm_routing_get_port_mixer,
  19179. msm_routing_put_port_mixer),
  19180. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19181. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19182. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19183. msm_routing_get_port_mixer,
  19184. msm_routing_put_port_mixer),
  19185. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19186. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19187. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19188. msm_routing_get_port_mixer,
  19189. msm_routing_put_port_mixer),
  19190. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19191. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19192. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19193. msm_routing_get_port_mixer,
  19194. msm_routing_put_port_mixer),
  19195. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19196. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19197. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19198. msm_routing_get_port_mixer,
  19199. msm_routing_put_port_mixer),
  19200. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19201. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19202. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19203. msm_routing_get_port_mixer,
  19204. msm_routing_put_port_mixer),
  19205. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19206. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19207. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19208. msm_routing_get_port_mixer,
  19209. msm_routing_put_port_mixer),
  19210. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19211. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19212. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19213. msm_routing_get_port_mixer,
  19214. msm_routing_put_port_mixer),
  19215. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19216. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19217. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19218. msm_routing_get_port_mixer,
  19219. msm_routing_put_port_mixer),
  19220. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19221. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19222. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19223. msm_routing_get_port_mixer,
  19224. msm_routing_put_port_mixer),
  19225. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19226. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19227. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19228. msm_routing_get_port_mixer,
  19229. msm_routing_put_port_mixer),
  19230. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19231. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19232. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19233. msm_routing_get_port_mixer,
  19234. msm_routing_put_port_mixer),
  19235. };
  19236. static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
  19237. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19238. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19239. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19240. msm_routing_get_port_mixer,
  19241. msm_routing_put_port_mixer),
  19242. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19243. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19244. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19245. msm_routing_get_port_mixer,
  19246. msm_routing_put_port_mixer),
  19247. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19248. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19249. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  19250. msm_routing_get_port_mixer,
  19251. msm_routing_put_port_mixer),
  19252. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19253. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19254. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19255. msm_routing_get_port_mixer,
  19256. msm_routing_put_port_mixer),
  19257. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19258. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19259. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19260. msm_routing_get_port_mixer,
  19261. msm_routing_put_port_mixer),
  19262. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19263. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19264. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19265. msm_routing_get_port_mixer,
  19266. msm_routing_put_port_mixer),
  19267. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19268. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19269. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19270. msm_routing_get_port_mixer,
  19271. msm_routing_put_port_mixer),
  19272. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19273. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19274. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19275. msm_routing_get_port_mixer,
  19276. msm_routing_put_port_mixer),
  19277. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19278. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19279. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19280. msm_routing_get_port_mixer,
  19281. msm_routing_put_port_mixer),
  19282. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19283. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19284. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19285. msm_routing_get_port_mixer,
  19286. msm_routing_put_port_mixer),
  19287. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19288. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19289. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19290. msm_routing_get_port_mixer,
  19291. msm_routing_put_port_mixer),
  19292. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19293. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19294. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19295. msm_routing_get_port_mixer,
  19296. msm_routing_put_port_mixer),
  19297. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19298. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19299. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19300. msm_routing_get_port_mixer,
  19301. msm_routing_put_port_mixer),
  19302. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19303. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19304. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19305. msm_routing_get_port_mixer,
  19306. msm_routing_put_port_mixer),
  19307. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19308. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19309. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19310. msm_routing_get_port_mixer,
  19311. msm_routing_put_port_mixer),
  19312. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19313. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19314. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19315. msm_routing_get_port_mixer,
  19316. msm_routing_put_port_mixer),
  19317. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19318. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19319. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19320. msm_routing_get_port_mixer,
  19321. msm_routing_put_port_mixer),
  19322. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19323. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19324. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19325. msm_routing_get_port_mixer,
  19326. msm_routing_put_port_mixer),
  19327. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19328. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19329. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19330. msm_routing_get_port_mixer,
  19331. msm_routing_put_port_mixer),
  19332. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19333. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19334. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19335. msm_routing_get_port_mixer,
  19336. msm_routing_put_port_mixer),
  19337. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19338. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19339. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19340. msm_routing_get_port_mixer,
  19341. msm_routing_put_port_mixer),
  19342. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19343. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19344. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19345. msm_routing_get_port_mixer,
  19346. msm_routing_put_port_mixer),
  19347. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19348. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19349. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19350. msm_routing_get_port_mixer,
  19351. msm_routing_put_port_mixer),
  19352. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19353. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19354. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19355. msm_routing_get_port_mixer,
  19356. msm_routing_put_port_mixer),
  19357. };
  19358. static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
  19359. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19360. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19361. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19362. msm_routing_get_port_mixer,
  19363. msm_routing_put_port_mixer),
  19364. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19365. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19366. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19367. msm_routing_get_port_mixer,
  19368. msm_routing_put_port_mixer),
  19369. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19370. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19371. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19372. msm_routing_get_port_mixer,
  19373. msm_routing_put_port_mixer),
  19374. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19375. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19376. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19377. msm_routing_get_port_mixer,
  19378. msm_routing_put_port_mixer),
  19379. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19380. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19381. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19382. msm_routing_get_port_mixer,
  19383. msm_routing_put_port_mixer),
  19384. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19385. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19386. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19387. msm_routing_get_port_mixer,
  19388. msm_routing_put_port_mixer),
  19389. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19390. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19391. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19392. msm_routing_get_port_mixer,
  19393. msm_routing_put_port_mixer),
  19394. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19395. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19396. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19397. msm_routing_get_port_mixer,
  19398. msm_routing_put_port_mixer),
  19399. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19400. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19401. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19402. msm_routing_get_port_mixer,
  19403. msm_routing_put_port_mixer),
  19404. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19405. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19406. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19407. msm_routing_get_port_mixer,
  19408. msm_routing_put_port_mixer),
  19409. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19410. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19411. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19412. msm_routing_get_port_mixer,
  19413. msm_routing_put_port_mixer),
  19414. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19415. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19416. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19417. msm_routing_get_port_mixer,
  19418. msm_routing_put_port_mixer),
  19419. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19420. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19421. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19422. msm_routing_get_port_mixer,
  19423. msm_routing_put_port_mixer),
  19424. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19425. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19426. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19427. msm_routing_get_port_mixer,
  19428. msm_routing_put_port_mixer),
  19429. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19430. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19431. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19432. msm_routing_get_port_mixer,
  19433. msm_routing_put_port_mixer),
  19434. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19435. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19436. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19437. msm_routing_get_port_mixer,
  19438. msm_routing_put_port_mixer),
  19439. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19440. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19441. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19442. msm_routing_get_port_mixer,
  19443. msm_routing_put_port_mixer),
  19444. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19445. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19446. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19447. msm_routing_get_port_mixer,
  19448. msm_routing_put_port_mixer),
  19449. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19450. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19451. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19452. msm_routing_get_port_mixer,
  19453. msm_routing_put_port_mixer),
  19454. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19455. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19456. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19457. msm_routing_get_port_mixer,
  19458. msm_routing_put_port_mixer),
  19459. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19460. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19461. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19462. msm_routing_get_port_mixer,
  19463. msm_routing_put_port_mixer),
  19464. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19465. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19466. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19467. msm_routing_get_port_mixer,
  19468. msm_routing_put_port_mixer),
  19469. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19470. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19471. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19472. msm_routing_get_port_mixer,
  19473. msm_routing_put_port_mixer),
  19474. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19475. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19476. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19477. msm_routing_get_port_mixer,
  19478. msm_routing_put_port_mixer),
  19479. };
  19480. static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
  19481. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19482. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19483. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19484. msm_routing_get_port_mixer,
  19485. msm_routing_put_port_mixer),
  19486. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19487. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19488. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19489. msm_routing_get_port_mixer,
  19490. msm_routing_put_port_mixer),
  19491. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19492. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19493. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19494. msm_routing_get_port_mixer,
  19495. msm_routing_put_port_mixer),
  19496. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19497. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19498. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19499. msm_routing_get_port_mixer,
  19500. msm_routing_put_port_mixer),
  19501. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19502. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19503. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19504. msm_routing_get_port_mixer,
  19505. msm_routing_put_port_mixer),
  19506. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19507. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19508. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19509. msm_routing_get_port_mixer,
  19510. msm_routing_put_port_mixer),
  19511. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19512. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19513. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19514. msm_routing_get_port_mixer,
  19515. msm_routing_put_port_mixer),
  19516. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19517. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19518. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19519. msm_routing_get_port_mixer,
  19520. msm_routing_put_port_mixer),
  19521. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19522. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19523. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19524. msm_routing_get_port_mixer,
  19525. msm_routing_put_port_mixer),
  19526. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19527. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19528. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19529. msm_routing_get_port_mixer,
  19530. msm_routing_put_port_mixer),
  19531. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19532. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19533. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19534. msm_routing_get_port_mixer,
  19535. msm_routing_put_port_mixer),
  19536. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19537. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19538. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19539. msm_routing_get_port_mixer,
  19540. msm_routing_put_port_mixer),
  19541. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19542. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19543. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19544. msm_routing_get_port_mixer,
  19545. msm_routing_put_port_mixer),
  19546. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19547. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19548. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19549. msm_routing_get_port_mixer,
  19550. msm_routing_put_port_mixer),
  19551. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19552. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19553. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19554. msm_routing_get_port_mixer,
  19555. msm_routing_put_port_mixer),
  19556. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19557. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19558. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19559. msm_routing_get_port_mixer,
  19560. msm_routing_put_port_mixer),
  19561. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19562. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19563. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19564. msm_routing_get_port_mixer,
  19565. msm_routing_put_port_mixer),
  19566. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19567. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19568. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19569. msm_routing_get_port_mixer,
  19570. msm_routing_put_port_mixer),
  19571. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19572. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19573. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19574. msm_routing_get_port_mixer,
  19575. msm_routing_put_port_mixer),
  19576. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19577. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19578. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19579. msm_routing_get_port_mixer,
  19580. msm_routing_put_port_mixer),
  19581. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19582. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19583. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19584. msm_routing_get_port_mixer,
  19585. msm_routing_put_port_mixer),
  19586. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19587. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19588. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19589. msm_routing_get_port_mixer,
  19590. msm_routing_put_port_mixer),
  19591. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19592. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19593. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19594. msm_routing_get_port_mixer,
  19595. msm_routing_put_port_mixer),
  19596. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19597. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19598. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19599. msm_routing_get_port_mixer,
  19600. msm_routing_put_port_mixer),
  19601. };
  19602. static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
  19603. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19604. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19605. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19606. msm_routing_get_port_mixer,
  19607. msm_routing_put_port_mixer),
  19608. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19609. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19610. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19611. msm_routing_get_port_mixer,
  19612. msm_routing_put_port_mixer),
  19613. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19614. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19615. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19616. msm_routing_get_port_mixer,
  19617. msm_routing_put_port_mixer),
  19618. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19619. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19620. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19621. msm_routing_get_port_mixer,
  19622. msm_routing_put_port_mixer),
  19623. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19624. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19625. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19626. msm_routing_get_port_mixer,
  19627. msm_routing_put_port_mixer),
  19628. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19629. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19630. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19631. msm_routing_get_port_mixer,
  19632. msm_routing_put_port_mixer),
  19633. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19634. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19635. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19636. msm_routing_get_port_mixer,
  19637. msm_routing_put_port_mixer),
  19638. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19639. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19640. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19641. msm_routing_get_port_mixer,
  19642. msm_routing_put_port_mixer),
  19643. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19644. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19645. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19646. msm_routing_get_port_mixer,
  19647. msm_routing_put_port_mixer),
  19648. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19649. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19650. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19651. msm_routing_get_port_mixer,
  19652. msm_routing_put_port_mixer),
  19653. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19654. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19655. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19656. msm_routing_get_port_mixer,
  19657. msm_routing_put_port_mixer),
  19658. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19659. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19660. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19661. msm_routing_get_port_mixer,
  19662. msm_routing_put_port_mixer),
  19663. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19664. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19665. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19666. msm_routing_get_port_mixer,
  19667. msm_routing_put_port_mixer),
  19668. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19669. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19670. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19671. msm_routing_get_port_mixer,
  19672. msm_routing_put_port_mixer),
  19673. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19674. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19675. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19676. msm_routing_get_port_mixer,
  19677. msm_routing_put_port_mixer),
  19678. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19679. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19680. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19681. msm_routing_get_port_mixer,
  19682. msm_routing_put_port_mixer),
  19683. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19684. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19685. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19686. msm_routing_get_port_mixer,
  19687. msm_routing_put_port_mixer),
  19688. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19689. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19690. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19691. msm_routing_get_port_mixer,
  19692. msm_routing_put_port_mixer),
  19693. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19694. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19695. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19696. msm_routing_get_port_mixer,
  19697. msm_routing_put_port_mixer),
  19698. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19699. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19700. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19701. msm_routing_get_port_mixer,
  19702. msm_routing_put_port_mixer),
  19703. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19704. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19705. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19706. msm_routing_get_port_mixer,
  19707. msm_routing_put_port_mixer),
  19708. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19709. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19710. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19711. msm_routing_get_port_mixer,
  19712. msm_routing_put_port_mixer),
  19713. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19714. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19715. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19716. msm_routing_get_port_mixer,
  19717. msm_routing_put_port_mixer),
  19718. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19719. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19720. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19721. msm_routing_get_port_mixer,
  19722. msm_routing_put_port_mixer),
  19723. };
  19724. static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
  19725. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19726. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19727. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19728. msm_routing_get_port_mixer,
  19729. msm_routing_put_port_mixer),
  19730. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19731. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19732. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19733. msm_routing_get_port_mixer,
  19734. msm_routing_put_port_mixer),
  19735. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19736. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19737. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19738. msm_routing_get_port_mixer,
  19739. msm_routing_put_port_mixer),
  19740. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19741. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19742. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19743. msm_routing_get_port_mixer,
  19744. msm_routing_put_port_mixer),
  19745. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19746. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19747. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19748. msm_routing_get_port_mixer,
  19749. msm_routing_put_port_mixer),
  19750. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19751. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19752. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19753. msm_routing_get_port_mixer,
  19754. msm_routing_put_port_mixer),
  19755. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19756. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19757. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19758. msm_routing_get_port_mixer,
  19759. msm_routing_put_port_mixer),
  19760. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19761. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19762. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19763. msm_routing_get_port_mixer,
  19764. msm_routing_put_port_mixer),
  19765. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19766. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19767. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19768. msm_routing_get_port_mixer,
  19769. msm_routing_put_port_mixer),
  19770. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19771. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19772. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19773. msm_routing_get_port_mixer,
  19774. msm_routing_put_port_mixer),
  19775. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19776. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19777. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19778. msm_routing_get_port_mixer,
  19779. msm_routing_put_port_mixer),
  19780. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19781. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19782. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19783. msm_routing_get_port_mixer,
  19784. msm_routing_put_port_mixer),
  19785. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19786. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19787. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19788. msm_routing_get_port_mixer,
  19789. msm_routing_put_port_mixer),
  19790. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19791. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19792. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19793. msm_routing_get_port_mixer,
  19794. msm_routing_put_port_mixer),
  19795. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19796. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19797. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19798. msm_routing_get_port_mixer,
  19799. msm_routing_put_port_mixer),
  19800. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19801. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19802. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19803. msm_routing_get_port_mixer,
  19804. msm_routing_put_port_mixer),
  19805. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19806. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19807. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19808. msm_routing_get_port_mixer,
  19809. msm_routing_put_port_mixer),
  19810. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19811. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19812. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19813. msm_routing_get_port_mixer,
  19814. msm_routing_put_port_mixer),
  19815. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19816. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19817. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19818. msm_routing_get_port_mixer,
  19819. msm_routing_put_port_mixer),
  19820. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19821. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19822. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19823. msm_routing_get_port_mixer,
  19824. msm_routing_put_port_mixer),
  19825. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19826. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19827. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19828. msm_routing_get_port_mixer,
  19829. msm_routing_put_port_mixer),
  19830. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19831. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19832. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19833. msm_routing_get_port_mixer,
  19834. msm_routing_put_port_mixer),
  19835. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19836. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19837. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19838. msm_routing_get_port_mixer,
  19839. msm_routing_put_port_mixer),
  19840. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19841. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19842. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19843. msm_routing_get_port_mixer,
  19844. msm_routing_put_port_mixer),
  19845. };
  19846. static const struct snd_kcontrol_new quat_tdm_rx_7_port_mixer_controls[] = {
  19847. SOC_DOUBLE_EXT("QUAT_TDM_TX_7", SND_SOC_NOPM,
  19848. MSM_BACKEND_DAI_QUAT_TDM_RX_7,
  19849. MSM_BACKEND_DAI_QUAT_TDM_TX_7, 1, 0,
  19850. msm_routing_get_port_mixer,
  19851. msm_routing_put_port_mixer),
  19852. SOC_DOUBLE_EXT("QUIN_TDM_TX_7", SND_SOC_NOPM,
  19853. MSM_BACKEND_DAI_QUAT_TDM_RX_7,
  19854. MSM_BACKEND_DAI_QUIN_TDM_TX_7, 1, 0,
  19855. msm_routing_get_port_mixer,
  19856. msm_routing_put_port_mixer),
  19857. };
  19858. static const struct snd_kcontrol_new quin_tdm_rx_0_port_mixer_controls[] = {
  19859. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19860. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19861. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19862. msm_routing_get_port_mixer,
  19863. msm_routing_put_port_mixer),
  19864. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19865. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19866. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19867. msm_routing_get_port_mixer,
  19868. msm_routing_put_port_mixer),
  19869. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19870. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19871. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19872. msm_routing_get_port_mixer,
  19873. msm_routing_put_port_mixer),
  19874. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19875. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19876. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19877. msm_routing_get_port_mixer,
  19878. msm_routing_put_port_mixer),
  19879. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19880. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19881. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19882. msm_routing_get_port_mixer,
  19883. msm_routing_put_port_mixer),
  19884. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19885. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19886. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19887. msm_routing_get_port_mixer,
  19888. msm_routing_put_port_mixer),
  19889. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19890. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19891. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19892. msm_routing_get_port_mixer,
  19893. msm_routing_put_port_mixer),
  19894. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19895. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19896. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19897. msm_routing_get_port_mixer,
  19898. msm_routing_put_port_mixer),
  19899. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19900. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19901. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19902. msm_routing_get_port_mixer,
  19903. msm_routing_put_port_mixer),
  19904. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19905. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19906. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19907. msm_routing_get_port_mixer,
  19908. msm_routing_put_port_mixer),
  19909. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19910. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19911. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19912. msm_routing_get_port_mixer,
  19913. msm_routing_put_port_mixer),
  19914. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19915. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19916. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19917. msm_routing_get_port_mixer,
  19918. msm_routing_put_port_mixer),
  19919. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19920. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19921. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19922. msm_routing_get_port_mixer,
  19923. msm_routing_put_port_mixer),
  19924. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19925. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19926. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19927. msm_routing_get_port_mixer,
  19928. msm_routing_put_port_mixer),
  19929. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19930. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19931. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19932. msm_routing_get_port_mixer,
  19933. msm_routing_put_port_mixer),
  19934. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19935. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19936. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19937. msm_routing_get_port_mixer,
  19938. msm_routing_put_port_mixer),
  19939. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19940. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19941. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19942. msm_routing_get_port_mixer,
  19943. msm_routing_put_port_mixer),
  19944. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19945. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19946. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19947. msm_routing_get_port_mixer,
  19948. msm_routing_put_port_mixer),
  19949. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19950. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19951. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19952. msm_routing_get_port_mixer,
  19953. msm_routing_put_port_mixer),
  19954. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19955. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19956. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19957. msm_routing_get_port_mixer,
  19958. msm_routing_put_port_mixer),
  19959. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19960. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19961. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19962. msm_routing_get_port_mixer,
  19963. msm_routing_put_port_mixer),
  19964. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19965. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19966. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19967. msm_routing_get_port_mixer,
  19968. msm_routing_put_port_mixer),
  19969. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19970. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19971. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19972. msm_routing_get_port_mixer,
  19973. msm_routing_put_port_mixer),
  19974. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19975. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19976. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19977. msm_routing_get_port_mixer,
  19978. msm_routing_put_port_mixer),
  19979. };
  19980. static const struct snd_kcontrol_new quin_tdm_rx_1_port_mixer_controls[] = {
  19981. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19982. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19983. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19984. msm_routing_get_port_mixer,
  19985. msm_routing_put_port_mixer),
  19986. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19987. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19988. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19989. msm_routing_get_port_mixer,
  19990. msm_routing_put_port_mixer),
  19991. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19992. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19993. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19994. msm_routing_get_port_mixer,
  19995. msm_routing_put_port_mixer),
  19996. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19997. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19998. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19999. msm_routing_get_port_mixer,
  20000. msm_routing_put_port_mixer),
  20001. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20002. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20003. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20004. msm_routing_get_port_mixer,
  20005. msm_routing_put_port_mixer),
  20006. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20007. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20008. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20009. msm_routing_get_port_mixer,
  20010. msm_routing_put_port_mixer),
  20011. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20012. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20013. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20014. msm_routing_get_port_mixer,
  20015. msm_routing_put_port_mixer),
  20016. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20017. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20018. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20019. msm_routing_get_port_mixer,
  20020. msm_routing_put_port_mixer),
  20021. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20022. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20023. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20024. msm_routing_get_port_mixer,
  20025. msm_routing_put_port_mixer),
  20026. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20027. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20028. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20029. msm_routing_get_port_mixer,
  20030. msm_routing_put_port_mixer),
  20031. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20032. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20033. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20034. msm_routing_get_port_mixer,
  20035. msm_routing_put_port_mixer),
  20036. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20037. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20038. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20039. msm_routing_get_port_mixer,
  20040. msm_routing_put_port_mixer),
  20041. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20042. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20043. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20044. msm_routing_get_port_mixer,
  20045. msm_routing_put_port_mixer),
  20046. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20047. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20048. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20049. msm_routing_get_port_mixer,
  20050. msm_routing_put_port_mixer),
  20051. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20052. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20053. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20054. msm_routing_get_port_mixer,
  20055. msm_routing_put_port_mixer),
  20056. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20057. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20058. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20059. msm_routing_get_port_mixer,
  20060. msm_routing_put_port_mixer),
  20061. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20062. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20063. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20064. msm_routing_get_port_mixer,
  20065. msm_routing_put_port_mixer),
  20066. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20067. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20068. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20069. msm_routing_get_port_mixer,
  20070. msm_routing_put_port_mixer),
  20071. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20072. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20073. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20074. msm_routing_get_port_mixer,
  20075. msm_routing_put_port_mixer),
  20076. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20077. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20078. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20079. msm_routing_get_port_mixer,
  20080. msm_routing_put_port_mixer),
  20081. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20082. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20083. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20084. msm_routing_get_port_mixer,
  20085. msm_routing_put_port_mixer),
  20086. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20087. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20088. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20089. msm_routing_get_port_mixer,
  20090. msm_routing_put_port_mixer),
  20091. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20092. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20093. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20094. msm_routing_get_port_mixer,
  20095. msm_routing_put_port_mixer),
  20096. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20097. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20098. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20099. msm_routing_get_port_mixer,
  20100. msm_routing_put_port_mixer),
  20101. };
  20102. static const struct snd_kcontrol_new quin_tdm_rx_2_port_mixer_controls[] = {
  20103. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20104. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20105. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20106. msm_routing_get_port_mixer,
  20107. msm_routing_put_port_mixer),
  20108. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20109. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20110. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20111. msm_routing_get_port_mixer,
  20112. msm_routing_put_port_mixer),
  20113. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20114. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20115. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20116. msm_routing_get_port_mixer,
  20117. msm_routing_put_port_mixer),
  20118. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20119. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20120. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20121. msm_routing_get_port_mixer,
  20122. msm_routing_put_port_mixer),
  20123. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20124. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20125. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20126. msm_routing_get_port_mixer,
  20127. msm_routing_put_port_mixer),
  20128. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20129. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20130. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20131. msm_routing_get_port_mixer,
  20132. msm_routing_put_port_mixer),
  20133. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20134. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20135. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20136. msm_routing_get_port_mixer,
  20137. msm_routing_put_port_mixer),
  20138. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20139. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20140. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20141. msm_routing_get_port_mixer,
  20142. msm_routing_put_port_mixer),
  20143. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20144. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20145. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20146. msm_routing_get_port_mixer,
  20147. msm_routing_put_port_mixer),
  20148. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20149. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20150. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20151. msm_routing_get_port_mixer,
  20152. msm_routing_put_port_mixer),
  20153. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20154. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20155. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20156. msm_routing_get_port_mixer,
  20157. msm_routing_put_port_mixer),
  20158. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20159. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20160. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20161. msm_routing_get_port_mixer,
  20162. msm_routing_put_port_mixer),
  20163. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20164. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20165. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20166. msm_routing_get_port_mixer,
  20167. msm_routing_put_port_mixer),
  20168. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20169. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20170. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20171. msm_routing_get_port_mixer,
  20172. msm_routing_put_port_mixer),
  20173. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20174. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20175. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20176. msm_routing_get_port_mixer,
  20177. msm_routing_put_port_mixer),
  20178. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20179. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20180. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20181. msm_routing_get_port_mixer,
  20182. msm_routing_put_port_mixer),
  20183. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20184. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20185. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20186. msm_routing_get_port_mixer,
  20187. msm_routing_put_port_mixer),
  20188. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20189. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20190. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20191. msm_routing_get_port_mixer,
  20192. msm_routing_put_port_mixer),
  20193. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20194. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20195. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20196. msm_routing_get_port_mixer,
  20197. msm_routing_put_port_mixer),
  20198. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20199. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20200. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20201. msm_routing_get_port_mixer,
  20202. msm_routing_put_port_mixer),
  20203. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20204. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20205. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20206. msm_routing_get_port_mixer,
  20207. msm_routing_put_port_mixer),
  20208. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20209. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20210. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20211. msm_routing_get_port_mixer,
  20212. msm_routing_put_port_mixer),
  20213. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20214. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20215. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20216. msm_routing_get_port_mixer,
  20217. msm_routing_put_port_mixer),
  20218. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20219. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20220. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20221. msm_routing_get_port_mixer,
  20222. msm_routing_put_port_mixer),
  20223. };
  20224. static const struct snd_kcontrol_new quin_tdm_rx_3_port_mixer_controls[] = {
  20225. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20226. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20227. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20228. msm_routing_get_port_mixer,
  20229. msm_routing_put_port_mixer),
  20230. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20231. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20232. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20233. msm_routing_get_port_mixer,
  20234. msm_routing_put_port_mixer),
  20235. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20236. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20237. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20238. msm_routing_get_port_mixer,
  20239. msm_routing_put_port_mixer),
  20240. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20241. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20242. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20243. msm_routing_get_port_mixer,
  20244. msm_routing_put_port_mixer),
  20245. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20246. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20247. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20248. msm_routing_get_port_mixer,
  20249. msm_routing_put_port_mixer),
  20250. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20251. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20252. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20253. msm_routing_get_port_mixer,
  20254. msm_routing_put_port_mixer),
  20255. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20256. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20257. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20258. msm_routing_get_port_mixer,
  20259. msm_routing_put_port_mixer),
  20260. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20261. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20262. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20263. msm_routing_get_port_mixer,
  20264. msm_routing_put_port_mixer),
  20265. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20266. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20267. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20268. msm_routing_get_port_mixer,
  20269. msm_routing_put_port_mixer),
  20270. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20271. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20272. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20273. msm_routing_get_port_mixer,
  20274. msm_routing_put_port_mixer),
  20275. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20276. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20277. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20278. msm_routing_get_port_mixer,
  20279. msm_routing_put_port_mixer),
  20280. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20281. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20282. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20283. msm_routing_get_port_mixer,
  20284. msm_routing_put_port_mixer),
  20285. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20286. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20287. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20288. msm_routing_get_port_mixer,
  20289. msm_routing_put_port_mixer),
  20290. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20291. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20292. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20293. msm_routing_get_port_mixer,
  20294. msm_routing_put_port_mixer),
  20295. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20296. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20297. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20298. msm_routing_get_port_mixer,
  20299. msm_routing_put_port_mixer),
  20300. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20301. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20302. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20303. msm_routing_get_port_mixer,
  20304. msm_routing_put_port_mixer),
  20305. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20306. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20307. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20308. msm_routing_get_port_mixer,
  20309. msm_routing_put_port_mixer),
  20310. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20311. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20312. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20313. msm_routing_get_port_mixer,
  20314. msm_routing_put_port_mixer),
  20315. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20316. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20317. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20318. msm_routing_get_port_mixer,
  20319. msm_routing_put_port_mixer),
  20320. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20321. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20322. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20323. msm_routing_get_port_mixer,
  20324. msm_routing_put_port_mixer),
  20325. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20326. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20327. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20328. msm_routing_get_port_mixer,
  20329. msm_routing_put_port_mixer),
  20330. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20331. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20332. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20333. msm_routing_get_port_mixer,
  20334. msm_routing_put_port_mixer),
  20335. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20336. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20337. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20338. msm_routing_get_port_mixer,
  20339. msm_routing_put_port_mixer),
  20340. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20341. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20342. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20343. msm_routing_get_port_mixer,
  20344. msm_routing_put_port_mixer),
  20345. };
  20346. static const struct snd_kcontrol_new sen_tdm_rx_0_port_mixer_controls[] = {
  20347. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20348. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20349. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20350. msm_routing_get_port_mixer,
  20351. msm_routing_put_port_mixer),
  20352. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20353. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20354. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20355. msm_routing_get_port_mixer,
  20356. msm_routing_put_port_mixer),
  20357. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20358. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20359. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20360. msm_routing_get_port_mixer,
  20361. msm_routing_put_port_mixer),
  20362. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20363. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20364. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20365. msm_routing_get_port_mixer,
  20366. msm_routing_put_port_mixer),
  20367. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20368. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20369. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20370. msm_routing_get_port_mixer,
  20371. msm_routing_put_port_mixer),
  20372. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20373. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20374. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20375. msm_routing_get_port_mixer,
  20376. msm_routing_put_port_mixer),
  20377. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20378. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20379. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20380. msm_routing_get_port_mixer,
  20381. msm_routing_put_port_mixer),
  20382. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20383. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20384. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20385. msm_routing_get_port_mixer,
  20386. msm_routing_put_port_mixer),
  20387. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20388. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20389. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20390. msm_routing_get_port_mixer,
  20391. msm_routing_put_port_mixer),
  20392. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20393. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20394. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20395. msm_routing_get_port_mixer,
  20396. msm_routing_put_port_mixer),
  20397. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20398. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20399. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20400. msm_routing_get_port_mixer,
  20401. msm_routing_put_port_mixer),
  20402. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20403. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20404. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20405. msm_routing_get_port_mixer,
  20406. msm_routing_put_port_mixer),
  20407. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20408. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20409. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20410. msm_routing_get_port_mixer,
  20411. msm_routing_put_port_mixer),
  20412. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20413. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20414. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20415. msm_routing_get_port_mixer,
  20416. msm_routing_put_port_mixer),
  20417. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20418. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20419. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20420. msm_routing_get_port_mixer,
  20421. msm_routing_put_port_mixer),
  20422. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20423. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20424. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20425. msm_routing_get_port_mixer,
  20426. msm_routing_put_port_mixer),
  20427. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20428. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20429. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20430. msm_routing_get_port_mixer,
  20431. msm_routing_put_port_mixer),
  20432. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20433. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20434. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20435. msm_routing_get_port_mixer,
  20436. msm_routing_put_port_mixer),
  20437. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20438. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20439. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20440. msm_routing_get_port_mixer,
  20441. msm_routing_put_port_mixer),
  20442. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20443. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20444. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20445. msm_routing_get_port_mixer,
  20446. msm_routing_put_port_mixer),
  20447. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20448. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20449. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20450. msm_routing_get_port_mixer,
  20451. msm_routing_put_port_mixer),
  20452. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20453. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20454. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20455. msm_routing_get_port_mixer,
  20456. msm_routing_put_port_mixer),
  20457. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20458. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20459. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20460. msm_routing_get_port_mixer,
  20461. msm_routing_put_port_mixer),
  20462. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20463. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20464. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20465. msm_routing_get_port_mixer,
  20466. msm_routing_put_port_mixer),
  20467. };
  20468. static const struct snd_kcontrol_new sen_tdm_rx_1_port_mixer_controls[] = {
  20469. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20470. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20471. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20472. msm_routing_get_port_mixer,
  20473. msm_routing_put_port_mixer),
  20474. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20475. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20476. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20477. msm_routing_get_port_mixer,
  20478. msm_routing_put_port_mixer),
  20479. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20480. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20481. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20482. msm_routing_get_port_mixer,
  20483. msm_routing_put_port_mixer),
  20484. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20485. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20486. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20487. msm_routing_get_port_mixer,
  20488. msm_routing_put_port_mixer),
  20489. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20490. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20491. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20492. msm_routing_get_port_mixer,
  20493. msm_routing_put_port_mixer),
  20494. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20495. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20496. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20497. msm_routing_get_port_mixer,
  20498. msm_routing_put_port_mixer),
  20499. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20500. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20501. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20502. msm_routing_get_port_mixer,
  20503. msm_routing_put_port_mixer),
  20504. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20505. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20506. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20507. msm_routing_get_port_mixer,
  20508. msm_routing_put_port_mixer),
  20509. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20510. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20511. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20512. msm_routing_get_port_mixer,
  20513. msm_routing_put_port_mixer),
  20514. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20515. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20516. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20517. msm_routing_get_port_mixer,
  20518. msm_routing_put_port_mixer),
  20519. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20520. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20521. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20522. msm_routing_get_port_mixer,
  20523. msm_routing_put_port_mixer),
  20524. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20525. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20526. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20527. msm_routing_get_port_mixer,
  20528. msm_routing_put_port_mixer),
  20529. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20530. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20531. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20532. msm_routing_get_port_mixer,
  20533. msm_routing_put_port_mixer),
  20534. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20535. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20536. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20537. msm_routing_get_port_mixer,
  20538. msm_routing_put_port_mixer),
  20539. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20540. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20541. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20542. msm_routing_get_port_mixer,
  20543. msm_routing_put_port_mixer),
  20544. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20545. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20546. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20547. msm_routing_get_port_mixer,
  20548. msm_routing_put_port_mixer),
  20549. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20550. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20551. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20552. msm_routing_get_port_mixer,
  20553. msm_routing_put_port_mixer),
  20554. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20555. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20556. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20557. msm_routing_get_port_mixer,
  20558. msm_routing_put_port_mixer),
  20559. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20560. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20561. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20562. msm_routing_get_port_mixer,
  20563. msm_routing_put_port_mixer),
  20564. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20565. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20566. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20567. msm_routing_get_port_mixer,
  20568. msm_routing_put_port_mixer),
  20569. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20570. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20571. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20572. msm_routing_get_port_mixer,
  20573. msm_routing_put_port_mixer),
  20574. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20575. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20576. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20577. msm_routing_get_port_mixer,
  20578. msm_routing_put_port_mixer),
  20579. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20580. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20581. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20582. msm_routing_get_port_mixer,
  20583. msm_routing_put_port_mixer),
  20584. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20585. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20586. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20587. msm_routing_get_port_mixer,
  20588. msm_routing_put_port_mixer),
  20589. };
  20590. static const struct snd_kcontrol_new sen_tdm_rx_2_port_mixer_controls[] = {
  20591. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20592. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20593. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20594. msm_routing_get_port_mixer,
  20595. msm_routing_put_port_mixer),
  20596. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20597. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20598. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20599. msm_routing_get_port_mixer,
  20600. msm_routing_put_port_mixer),
  20601. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20602. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20603. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20604. msm_routing_get_port_mixer,
  20605. msm_routing_put_port_mixer),
  20606. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20607. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20608. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20609. msm_routing_get_port_mixer,
  20610. msm_routing_put_port_mixer),
  20611. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20612. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20613. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20614. msm_routing_get_port_mixer,
  20615. msm_routing_put_port_mixer),
  20616. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20617. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20618. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20619. msm_routing_get_port_mixer,
  20620. msm_routing_put_port_mixer),
  20621. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20622. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20623. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20624. msm_routing_get_port_mixer,
  20625. msm_routing_put_port_mixer),
  20626. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20627. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20628. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20629. msm_routing_get_port_mixer,
  20630. msm_routing_put_port_mixer),
  20631. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20632. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20633. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20634. msm_routing_get_port_mixer,
  20635. msm_routing_put_port_mixer),
  20636. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20637. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20638. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20639. msm_routing_get_port_mixer,
  20640. msm_routing_put_port_mixer),
  20641. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20642. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20643. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20644. msm_routing_get_port_mixer,
  20645. msm_routing_put_port_mixer),
  20646. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20647. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20648. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20649. msm_routing_get_port_mixer,
  20650. msm_routing_put_port_mixer),
  20651. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20652. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20653. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20654. msm_routing_get_port_mixer,
  20655. msm_routing_put_port_mixer),
  20656. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20657. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20658. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20659. msm_routing_get_port_mixer,
  20660. msm_routing_put_port_mixer),
  20661. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20662. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20663. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20664. msm_routing_get_port_mixer,
  20665. msm_routing_put_port_mixer),
  20666. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20667. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20668. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20669. msm_routing_get_port_mixer,
  20670. msm_routing_put_port_mixer),
  20671. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20672. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20673. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20674. msm_routing_get_port_mixer,
  20675. msm_routing_put_port_mixer),
  20676. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20677. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20678. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20679. msm_routing_get_port_mixer,
  20680. msm_routing_put_port_mixer),
  20681. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20682. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20683. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20684. msm_routing_get_port_mixer,
  20685. msm_routing_put_port_mixer),
  20686. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20687. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20688. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20689. msm_routing_get_port_mixer,
  20690. msm_routing_put_port_mixer),
  20691. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20692. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20693. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20694. msm_routing_get_port_mixer,
  20695. msm_routing_put_port_mixer),
  20696. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20697. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20698. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20699. msm_routing_get_port_mixer,
  20700. msm_routing_put_port_mixer),
  20701. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20702. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20703. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20704. msm_routing_get_port_mixer,
  20705. msm_routing_put_port_mixer),
  20706. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20707. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20708. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20709. msm_routing_get_port_mixer,
  20710. msm_routing_put_port_mixer),
  20711. };
  20712. static const struct snd_kcontrol_new sen_tdm_rx_3_port_mixer_controls[] = {
  20713. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20714. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20715. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20716. msm_routing_get_port_mixer,
  20717. msm_routing_put_port_mixer),
  20718. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20719. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20720. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20721. msm_routing_get_port_mixer,
  20722. msm_routing_put_port_mixer),
  20723. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20724. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20725. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20726. msm_routing_get_port_mixer,
  20727. msm_routing_put_port_mixer),
  20728. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20729. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20730. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20731. msm_routing_get_port_mixer,
  20732. msm_routing_put_port_mixer),
  20733. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20734. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20735. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20736. msm_routing_get_port_mixer,
  20737. msm_routing_put_port_mixer),
  20738. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20739. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20740. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20741. msm_routing_get_port_mixer,
  20742. msm_routing_put_port_mixer),
  20743. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20744. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20745. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20746. msm_routing_get_port_mixer,
  20747. msm_routing_put_port_mixer),
  20748. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20749. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20750. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20751. msm_routing_get_port_mixer,
  20752. msm_routing_put_port_mixer),
  20753. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20754. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20755. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20756. msm_routing_get_port_mixer,
  20757. msm_routing_put_port_mixer),
  20758. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20759. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20760. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20761. msm_routing_get_port_mixer,
  20762. msm_routing_put_port_mixer),
  20763. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20764. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20765. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20766. msm_routing_get_port_mixer,
  20767. msm_routing_put_port_mixer),
  20768. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20769. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20770. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20771. msm_routing_get_port_mixer,
  20772. msm_routing_put_port_mixer),
  20773. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20774. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20775. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20776. msm_routing_get_port_mixer,
  20777. msm_routing_put_port_mixer),
  20778. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20779. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20780. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20781. msm_routing_get_port_mixer,
  20782. msm_routing_put_port_mixer),
  20783. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20784. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20785. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20786. msm_routing_get_port_mixer,
  20787. msm_routing_put_port_mixer),
  20788. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20789. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20790. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20791. msm_routing_get_port_mixer,
  20792. msm_routing_put_port_mixer),
  20793. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20794. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20795. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20796. msm_routing_get_port_mixer,
  20797. msm_routing_put_port_mixer),
  20798. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20799. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20800. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20801. msm_routing_get_port_mixer,
  20802. msm_routing_put_port_mixer),
  20803. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20804. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20805. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20806. msm_routing_get_port_mixer,
  20807. msm_routing_put_port_mixer),
  20808. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20809. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20810. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20811. msm_routing_get_port_mixer,
  20812. msm_routing_put_port_mixer),
  20813. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20814. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20815. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20816. msm_routing_get_port_mixer,
  20817. msm_routing_put_port_mixer),
  20818. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20819. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20820. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20821. msm_routing_get_port_mixer,
  20822. msm_routing_put_port_mixer),
  20823. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20824. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20825. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20826. msm_routing_get_port_mixer,
  20827. msm_routing_put_port_mixer),
  20828. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20829. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20830. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20831. msm_routing_get_port_mixer,
  20832. msm_routing_put_port_mixer),
  20833. };
  20834. static const struct snd_kcontrol_new quin_tdm_rx_7_port_mixer_controls[] = {
  20835. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  20836. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  20837. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  20838. msm_routing_get_port_mixer,
  20839. msm_routing_put_port_mixer),
  20840. SOC_DOUBLE_EXT("QUAT_TDM_TX_7", SND_SOC_NOPM,
  20841. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  20842. MSM_BACKEND_DAI_QUAT_TDM_TX_7, 1, 0,
  20843. msm_routing_get_port_mixer,
  20844. msm_routing_put_port_mixer),
  20845. SOC_DOUBLE_EXT("QUIN_TDM_TX_7", SND_SOC_NOPM,
  20846. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  20847. MSM_BACKEND_DAI_QUIN_TDM_TX_7, 1, 0,
  20848. msm_routing_get_port_mixer,
  20849. msm_routing_put_port_mixer),
  20850. };
  20851. static const struct snd_kcontrol_new tert_mi2s_rx_port_mixer_controls[] = {
  20852. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20853. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20854. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20855. msm_routing_put_port_mixer),
  20856. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20857. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20858. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20859. msm_routing_put_port_mixer),
  20860. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  20861. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20862. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  20863. msm_routing_put_port_mixer),
  20864. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20865. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20866. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20867. msm_routing_put_port_mixer),
  20868. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  20869. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20870. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20871. msm_routing_put_port_mixer),
  20872. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  20873. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20874. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20875. msm_routing_put_port_mixer),
  20876. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20877. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20878. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20879. msm_routing_put_port_mixer),
  20880. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  20881. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20882. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  20883. msm_routing_put_port_mixer),
  20884. };
  20885. static const struct snd_kcontrol_new sec_mi2s_rx_port_mixer_controls[] = {
  20886. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20887. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20888. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20889. msm_routing_put_port_mixer),
  20890. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20891. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20892. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20893. msm_routing_put_port_mixer),
  20894. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20895. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20896. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20897. msm_routing_put_port_mixer),
  20898. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20899. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20900. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20901. msm_routing_put_port_mixer),
  20902. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  20903. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20904. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20905. msm_routing_put_port_mixer),
  20906. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  20907. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20908. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20909. msm_routing_put_port_mixer),
  20910. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  20911. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20912. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  20913. msm_routing_put_port_mixer),
  20914. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20915. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20916. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  20917. msm_routing_put_port_mixer),
  20918. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  20919. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20920. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  20921. msm_routing_put_port_mixer),
  20922. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20923. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20924. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  20925. msm_routing_put_port_mixer),
  20926. };
  20927. static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
  20928. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20929. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20930. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20931. msm_routing_put_listen_mixer),
  20932. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20933. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20934. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20935. msm_routing_put_listen_mixer),
  20936. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20937. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20938. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20939. msm_routing_put_listen_mixer),
  20940. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20941. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20942. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20943. msm_routing_put_listen_mixer),
  20944. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20945. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20946. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20947. msm_routing_put_listen_mixer),
  20948. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20949. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20950. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20951. msm_routing_put_listen_mixer),
  20952. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20953. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20954. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20955. msm_routing_put_listen_mixer),
  20956. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20957. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20958. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20959. msm_routing_put_listen_mixer),
  20960. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20961. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20962. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20963. msm_routing_put_listen_mixer),
  20964. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20965. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20966. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20967. msm_routing_put_listen_mixer),
  20968. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20969. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20970. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20971. msm_routing_put_listen_mixer),
  20972. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20973. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20974. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20975. msm_routing_put_listen_mixer),
  20976. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20977. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20978. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20979. msm_routing_put_listen_mixer),
  20980. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20981. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  20982. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20983. msm_routing_put_listen_mixer),
  20984. };
  20985. static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
  20986. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20987. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20988. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20989. msm_routing_put_listen_mixer),
  20990. SOC_DOUBLE_EXT("SLIMBUS_1_TX",
  20991. SND_SOC_NOPM,
  20992. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20993. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20994. msm_routing_put_listen_mixer),
  20995. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20996. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20997. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20998. msm_routing_put_listen_mixer),
  20999. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21000. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21001. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21002. msm_routing_put_listen_mixer),
  21003. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21004. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21005. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21006. msm_routing_put_listen_mixer),
  21007. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21008. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21009. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21010. msm_routing_put_listen_mixer),
  21011. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21012. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21013. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21014. msm_routing_put_listen_mixer),
  21015. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21016. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21017. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21018. msm_routing_put_listen_mixer),
  21019. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21020. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21021. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21022. msm_routing_put_listen_mixer),
  21023. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21024. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21025. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21026. msm_routing_put_listen_mixer),
  21027. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21028. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21029. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21030. msm_routing_put_listen_mixer),
  21031. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21032. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21033. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21034. msm_routing_put_listen_mixer),
  21035. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21036. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21037. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21038. msm_routing_put_listen_mixer),
  21039. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21040. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21041. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21042. msm_routing_put_listen_mixer),
  21043. };
  21044. static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
  21045. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21046. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21047. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21048. msm_routing_put_listen_mixer),
  21049. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21050. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21051. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21052. msm_routing_put_listen_mixer),
  21053. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21054. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21055. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21056. msm_routing_put_listen_mixer),
  21057. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21058. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21059. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21060. msm_routing_put_listen_mixer),
  21061. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21062. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21063. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21064. msm_routing_put_listen_mixer),
  21065. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21066. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21067. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21068. msm_routing_put_listen_mixer),
  21069. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21070. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21071. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21072. msm_routing_put_listen_mixer),
  21073. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21074. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21075. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21076. msm_routing_put_listen_mixer),
  21077. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21078. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21079. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21080. msm_routing_put_listen_mixer),
  21081. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21082. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21083. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21084. msm_routing_put_listen_mixer),
  21085. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21086. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21087. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21088. msm_routing_put_listen_mixer),
  21089. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21090. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21091. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21092. msm_routing_put_listen_mixer),
  21093. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21094. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21095. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21096. msm_routing_put_listen_mixer),
  21097. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21098. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21099. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21100. msm_routing_put_listen_mixer),
  21101. };
  21102. static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
  21103. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21104. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21105. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21106. msm_routing_put_listen_mixer),
  21107. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21108. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21109. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21110. msm_routing_put_listen_mixer),
  21111. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21112. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21113. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21114. msm_routing_put_listen_mixer),
  21115. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21116. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21117. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21118. msm_routing_put_listen_mixer),
  21119. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21120. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21121. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21122. msm_routing_put_listen_mixer),
  21123. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21124. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21125. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21126. msm_routing_put_listen_mixer),
  21127. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21128. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21129. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21130. msm_routing_put_listen_mixer),
  21131. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21132. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21133. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21134. msm_routing_put_listen_mixer),
  21135. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21136. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21137. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21138. msm_routing_put_listen_mixer),
  21139. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21140. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21141. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21142. msm_routing_put_listen_mixer),
  21143. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21144. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21145. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21146. msm_routing_put_listen_mixer),
  21147. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21148. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21149. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21150. msm_routing_put_listen_mixer),
  21151. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21152. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21153. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21154. msm_routing_put_listen_mixer),
  21155. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21156. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21157. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21158. msm_routing_put_listen_mixer),
  21159. };
  21160. static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
  21161. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21162. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21163. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21164. msm_routing_put_listen_mixer),
  21165. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21166. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21167. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21168. msm_routing_put_listen_mixer),
  21169. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21170. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21171. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21172. msm_routing_put_listen_mixer),
  21173. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21174. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21175. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21176. msm_routing_put_listen_mixer),
  21177. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21178. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21179. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21180. msm_routing_put_listen_mixer),
  21181. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21182. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21183. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21184. msm_routing_put_listen_mixer),
  21185. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21186. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21187. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21188. msm_routing_put_listen_mixer),
  21189. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21190. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21191. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21192. msm_routing_put_listen_mixer),
  21193. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21194. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21195. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21196. msm_routing_put_listen_mixer),
  21197. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21198. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21199. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21200. msm_routing_put_listen_mixer),
  21201. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21202. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21203. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21204. msm_routing_put_listen_mixer),
  21205. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21206. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21207. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21208. msm_routing_put_listen_mixer),
  21209. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21210. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21211. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21212. msm_routing_put_listen_mixer),
  21213. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21214. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21215. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21216. msm_routing_put_listen_mixer),
  21217. };
  21218. static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
  21219. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21220. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21221. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21222. msm_routing_put_listen_mixer),
  21223. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21224. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21225. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21226. msm_routing_put_listen_mixer),
  21227. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21228. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21229. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21230. msm_routing_put_listen_mixer),
  21231. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21232. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21233. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21234. msm_routing_put_listen_mixer),
  21235. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21236. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21237. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21238. msm_routing_put_listen_mixer),
  21239. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21240. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21241. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21242. msm_routing_put_listen_mixer),
  21243. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21244. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21245. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21246. msm_routing_put_listen_mixer),
  21247. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21248. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21249. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21250. msm_routing_put_listen_mixer),
  21251. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21252. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21253. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21254. msm_routing_put_listen_mixer),
  21255. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21256. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21257. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21258. msm_routing_put_listen_mixer),
  21259. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21260. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21261. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21262. msm_routing_put_listen_mixer),
  21263. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21264. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21265. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21266. msm_routing_put_listen_mixer),
  21267. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21268. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21269. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21270. msm_routing_put_listen_mixer),
  21271. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21272. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21273. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21274. msm_routing_put_listen_mixer),
  21275. };
  21276. static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
  21277. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21278. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21279. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21280. msm_routing_put_listen_mixer),
  21281. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21282. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21283. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21284. msm_routing_put_listen_mixer),
  21285. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21286. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21287. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21288. msm_routing_put_listen_mixer),
  21289. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21290. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21291. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21292. msm_routing_put_listen_mixer),
  21293. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21294. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21295. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21296. msm_routing_put_listen_mixer),
  21297. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21298. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21299. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21300. msm_routing_put_listen_mixer),
  21301. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21302. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21303. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21304. msm_routing_put_listen_mixer),
  21305. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21306. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21307. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21308. msm_routing_put_listen_mixer),
  21309. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21310. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21311. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21312. msm_routing_put_listen_mixer),
  21313. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21314. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21315. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21316. msm_routing_put_listen_mixer),
  21317. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21318. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21319. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21320. msm_routing_put_listen_mixer),
  21321. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21322. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21323. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21324. msm_routing_put_listen_mixer),
  21325. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21326. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21327. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21328. msm_routing_put_listen_mixer),
  21329. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21330. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21331. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21332. msm_routing_put_listen_mixer),
  21333. };
  21334. static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
  21335. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21336. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21337. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21338. msm_routing_put_listen_mixer),
  21339. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21340. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21341. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21342. msm_routing_put_listen_mixer),
  21343. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21344. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21345. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21346. msm_routing_put_listen_mixer),
  21347. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21348. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21349. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21350. msm_routing_put_listen_mixer),
  21351. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21352. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21353. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21354. msm_routing_put_listen_mixer),
  21355. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21356. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21357. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21358. msm_routing_put_listen_mixer),
  21359. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21360. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21361. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21362. msm_routing_put_listen_mixer),
  21363. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21364. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21365. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21366. msm_routing_put_listen_mixer),
  21367. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21368. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21369. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21370. msm_routing_put_listen_mixer),
  21371. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21372. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21373. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21374. msm_routing_put_listen_mixer),
  21375. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21376. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21377. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21378. msm_routing_put_listen_mixer),
  21379. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21380. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21381. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21382. msm_routing_put_listen_mixer),
  21383. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21384. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21385. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21386. msm_routing_put_listen_mixer),
  21387. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21388. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21389. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21390. msm_routing_put_listen_mixer),
  21391. };
  21392. static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
  21393. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21394. 0, 1, 0, msm_routing_get_switch_mixer,
  21395. msm_routing_put_switch_mixer);
  21396. static const struct snd_kcontrol_new slim1_fm_switch_mixer_controls =
  21397. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21398. 0, 1, 0, msm_routing_get_switch_mixer,
  21399. msm_routing_put_switch_mixer);
  21400. static const struct snd_kcontrol_new slim3_fm_switch_mixer_controls =
  21401. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21402. 0, 1, 0, msm_routing_get_switch_mixer,
  21403. msm_routing_put_switch_mixer);
  21404. static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
  21405. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21406. 0, 1, 0, msm_routing_get_switch_mixer,
  21407. msm_routing_put_switch_mixer);
  21408. static const struct snd_kcontrol_new cdc_dma_wsa_switch_mixer_controls =
  21409. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21410. 0, 1, 0, msm_routing_get_switch_mixer,
  21411. msm_routing_put_switch_mixer);
  21412. static const struct snd_kcontrol_new cdc_dma_rx_switch_mixer_controls =
  21413. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21414. 0, 1, 0, msm_routing_get_switch_mixer,
  21415. msm_routing_put_switch_mixer);
  21416. static const struct snd_kcontrol_new cdc_dma_rx_1_switch_mixer_controls =
  21417. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21418. 0, 1, 0, msm_routing_get_switch_mixer,
  21419. msm_routing_put_switch_mixer);
  21420. static const struct snd_kcontrol_new slim6_fm_switch_mixer_controls =
  21421. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21422. 0, 1, 0, msm_routing_get_switch_mixer,
  21423. msm_routing_put_switch_mixer);
  21424. static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
  21425. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21426. 0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
  21427. msm_routing_put_fm_pcmrx_switch_mixer);
  21428. static const struct snd_kcontrol_new int0_mi2s_rx_switch_mixer_controls =
  21429. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21430. 0, 1, 0, msm_routing_get_int0_mi2s_switch_mixer,
  21431. msm_routing_put_int0_mi2s_switch_mixer);
  21432. static const struct snd_kcontrol_new int4_mi2s_rx_switch_mixer_controls =
  21433. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21434. 0, 1, 0, msm_routing_get_int4_mi2s_switch_mixer,
  21435. msm_routing_put_int4_mi2s_switch_mixer);
  21436. static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
  21437. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21438. 0, 1, 0, msm_routing_get_pri_mi2s_switch_mixer,
  21439. msm_routing_put_pri_mi2s_switch_mixer);
  21440. static const struct snd_kcontrol_new sec_mi2s_rx_switch_mixer_controls =
  21441. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21442. 0, 1, 0, msm_routing_get_sec_mi2s_switch_mixer,
  21443. msm_routing_put_sec_mi2s_switch_mixer);
  21444. static const struct snd_kcontrol_new tert_mi2s_rx_switch_mixer_controls =
  21445. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21446. 0, 1, 0, msm_routing_get_tert_mi2s_switch_mixer,
  21447. msm_routing_put_tert_mi2s_switch_mixer);
  21448. static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
  21449. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21450. 0, 1, 0, msm_routing_get_quat_mi2s_switch_mixer,
  21451. msm_routing_put_quat_mi2s_switch_mixer);
  21452. static const struct snd_kcontrol_new quin_mi2s_rx_switch_mixer_controls =
  21453. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21454. 0, 1, 0, msm_routing_get_quin_mi2s_switch_mixer,
  21455. msm_routing_put_quin_mi2s_switch_mixer);
  21456. static const struct snd_kcontrol_new sen_mi2s_rx_switch_mixer_controls =
  21457. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21458. 0, 1, 0, msm_routing_get_sen_mi2s_switch_mixer,
  21459. msm_routing_put_sen_mi2s_switch_mixer);
  21460. static const struct snd_kcontrol_new hfp_pri_aux_switch_mixer_controls =
  21461. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21462. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  21463. msm_routing_put_hfp_switch_mixer);
  21464. static const struct snd_kcontrol_new hfp_aux_switch_mixer_controls =
  21465. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21466. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  21467. msm_routing_put_hfp_switch_mixer);
  21468. static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
  21469. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21470. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  21471. msm_routing_put_hfp_switch_mixer);
  21472. static const struct snd_kcontrol_new hfp_slim7_switch_mixer_controls =
  21473. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21474. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  21475. msm_routing_put_hfp_switch_mixer);
  21476. static const struct snd_kcontrol_new usb_switch_mixer_controls =
  21477. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21478. 0, 1, 0, msm_routing_get_usb_switch_mixer,
  21479. msm_routing_put_usb_switch_mixer);
  21480. static const struct snd_kcontrol_new a2dp_slim7_switch_mixer_controls =
  21481. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21482. 0, 1, 0, msm_routing_a2dp_switch_mixer_get,
  21483. msm_routing_a2dp_switch_mixer_put);
  21484. static const struct snd_kcontrol_new sco_slim7_switch_mixer_controls =
  21485. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21486. 0, 1, 0, msm_routing_sco_switch_mixer_get,
  21487. msm_routing_sco_switch_mixer_put);
  21488. static const struct soc_enum lsm_port_enum =
  21489. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_port_text), lsm_port_text);
  21490. static const char * const lsm_func_text[] = {
  21491. "None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
  21492. };
  21493. static const struct soc_enum lsm_func_enum =
  21494. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
  21495. static const struct snd_kcontrol_new lsm_controls[] = {
  21496. /* kcontrol of lsm_function */
  21497. SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21498. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21499. SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21500. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21501. SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21502. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21503. SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21504. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21505. SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21506. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21507. SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21508. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21509. SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21510. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21511. SOC_ENUM_EXT(QUAT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21512. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21513. SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21514. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21515. SOC_ENUM_EXT(TX_CDC_DMA_TX_3_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21516. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21517. SOC_ENUM_EXT(QUIN_TDM_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21518. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21519. SOC_ENUM_EXT(TERT_TDM_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21520. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21521. /* kcontrol of lsm_port */
  21522. SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
  21523. msm_routing_lsm_port_get,
  21524. msm_routing_lsm_port_put),
  21525. SOC_ENUM_EXT("LSM2 Port", lsm_port_enum,
  21526. msm_routing_lsm_port_get,
  21527. msm_routing_lsm_port_put),
  21528. SOC_ENUM_EXT("LSM3 Port", lsm_port_enum,
  21529. msm_routing_lsm_port_get,
  21530. msm_routing_lsm_port_put),
  21531. SOC_ENUM_EXT("LSM4 Port", lsm_port_enum,
  21532. msm_routing_lsm_port_get,
  21533. msm_routing_lsm_port_put),
  21534. SOC_ENUM_EXT("LSM5 Port", lsm_port_enum,
  21535. msm_routing_lsm_port_get,
  21536. msm_routing_lsm_port_put),
  21537. SOC_ENUM_EXT("LSM6 Port", lsm_port_enum,
  21538. msm_routing_lsm_port_get,
  21539. msm_routing_lsm_port_put),
  21540. SOC_ENUM_EXT("LSM7 Port", lsm_port_enum,
  21541. msm_routing_lsm_port_get,
  21542. msm_routing_lsm_port_put),
  21543. SOC_ENUM_EXT("LSM8 Port", lsm_port_enum,
  21544. msm_routing_lsm_port_get,
  21545. msm_routing_lsm_port_put),
  21546. };
  21547. static const char * const aanc_slim_0_rx_text[] = {
  21548. "ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
  21549. "SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
  21550. };
  21551. static const struct soc_enum aanc_slim_0_rx_enum =
  21552. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
  21553. aanc_slim_0_rx_text);
  21554. static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
  21555. SOC_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
  21556. msm_routing_slim_0_rx_aanc_mux_get,
  21557. msm_routing_slim_0_rx_aanc_mux_put)
  21558. };
  21559. static int msm_routing_aanc_noise_level_get(struct snd_kcontrol *kcontrol,
  21560. struct snd_ctl_elem_value *ucontrol)
  21561. {
  21562. ucontrol->value.integer.value[0] = aanc_level;
  21563. return 0;
  21564. }
  21565. static int msm_routing_aanc_noise_level_put(struct snd_kcontrol *kcontrol,
  21566. struct snd_ctl_elem_value *ucontrol)
  21567. {
  21568. int ret = 0;
  21569. mutex_lock(&routing_lock);
  21570. aanc_level = ucontrol->value.integer.value[0];
  21571. pr_debug("%s: value: %ld\n",
  21572. __func__, ucontrol->value.integer.value[0]);
  21573. ret = afe_set_aanc_noise_level(aanc_level);
  21574. mutex_unlock(&routing_lock);
  21575. return ret;
  21576. }
  21577. static const struct snd_kcontrol_new aanc_noise_level[] = {
  21578. SOC_SINGLE_EXT("AANC Noise Level", SND_SOC_NOPM, 0, 255,
  21579. 0, msm_routing_aanc_noise_level_get, msm_routing_aanc_noise_level_put)
  21580. };
  21581. static int msm_routing_get_stereo_to_custom_stereo_control(
  21582. struct snd_kcontrol *kcontrol,
  21583. struct snd_ctl_elem_value *ucontrol)
  21584. {
  21585. ucontrol->value.integer.value[0] = is_custom_stereo_on;
  21586. return 0;
  21587. }
  21588. static int msm_routing_put_stereo_to_custom_stereo_control(
  21589. struct snd_kcontrol *kcontrol,
  21590. struct snd_ctl_elem_value *ucontrol)
  21591. {
  21592. int flag = 0, i = 0, rc = 0, idx = 0;
  21593. int be_index = 0, port_id, topo_id;
  21594. unsigned int session_id = 0;
  21595. uint16_t op_FL_ip_FL_weight = 0;
  21596. uint16_t op_FL_ip_FR_weight = 0;
  21597. uint16_t op_FR_ip_FL_weight = 0;
  21598. uint16_t op_FR_ip_FR_weight = 0;
  21599. flag = ucontrol->value.integer.value[0];
  21600. pr_debug("%s E flag %d\n", __func__, flag);
  21601. if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
  21602. pr_err("%s: is_custom_stereo_on %d, flag %d\n",
  21603. __func__, is_custom_stereo_on, flag);
  21604. return 0;
  21605. }
  21606. is_custom_stereo_on = flag ? true : false;
  21607. pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
  21608. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  21609. port_id = msm_bedais[be_index].port_id;
  21610. if (!msm_bedais[be_index].active)
  21611. continue;
  21612. if ((port_id != SLIMBUS_0_RX) &&
  21613. (port_id != RT_PROXY_PORT_001_RX) &&
  21614. (port_id != AFE_PORT_ID_PRIMARY_MI2S_RX) &&
  21615. (port_id != AFE_PORT_ID_INT4_MI2S_RX))
  21616. continue;
  21617. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  21618. MSM_FRONTEND_DAI_MM_SIZE) {
  21619. if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
  21620. LEGACY_PCM_MODE)
  21621. goto skip_send_custom_stereo;
  21622. session_id =
  21623. fe_dai_map[i][SESSION_TYPE_RX].strm_id;
  21624. if (is_custom_stereo_on) {
  21625. op_FL_ip_FL_weight =
  21626. Q14_GAIN_ZERO_POINT_FIVE;
  21627. op_FL_ip_FR_weight =
  21628. Q14_GAIN_ZERO_POINT_FIVE;
  21629. op_FR_ip_FL_weight =
  21630. Q14_GAIN_ZERO_POINT_FIVE;
  21631. op_FR_ip_FR_weight =
  21632. Q14_GAIN_ZERO_POINT_FIVE;
  21633. } else {
  21634. op_FL_ip_FL_weight = Q14_GAIN_UNITY;
  21635. op_FL_ip_FR_weight = 0;
  21636. op_FR_ip_FL_weight = 0;
  21637. op_FR_ip_FR_weight = Q14_GAIN_UNITY;
  21638. }
  21639. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  21640. unsigned long copp =
  21641. session_copp_map[i]
  21642. [SESSION_TYPE_RX][be_index];
  21643. if (!test_bit(idx, &copp))
  21644. goto skip_send_custom_stereo;
  21645. topo_id = adm_get_topology_for_port_copp_idx(
  21646. msm_bedais[be_index].port_id, idx);
  21647. if (topo_id < 0)
  21648. pr_debug("%s:Err:custom stereo topo %d",
  21649. __func__, topo_id);
  21650. pr_debug("idx %d\n", idx);
  21651. if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
  21652. rc = msm_ds2_dap_set_custom_stereo_onoff
  21653. (msm_bedais[be_index].port_id,
  21654. idx, is_custom_stereo_on);
  21655. else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
  21656. rc = dolby_dap_set_custom_stereo_onoff(
  21657. msm_bedais[be_index].port_id,
  21658. idx, is_custom_stereo_on);
  21659. else
  21660. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
  21661. (msm_bedais[be_index].port_id,
  21662. idx, session_id,
  21663. op_FL_ip_FL_weight,
  21664. op_FL_ip_FR_weight,
  21665. op_FR_ip_FL_weight,
  21666. op_FR_ip_FR_weight);
  21667. if (rc < 0)
  21668. skip_send_custom_stereo:
  21669. pr_err("%s: err setting custom stereo\n",
  21670. __func__);
  21671. }
  21672. }
  21673. }
  21674. return 0;
  21675. }
  21676. static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
  21677. SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
  21678. 1, 0, msm_routing_get_stereo_to_custom_stereo_control,
  21679. msm_routing_put_stereo_to_custom_stereo_control),
  21680. };
  21681. static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  21682. struct snd_ctl_elem_value *ucontrol)
  21683. {
  21684. return 0;
  21685. }
  21686. static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  21687. struct snd_ctl_elem_value *ucontrol)
  21688. {
  21689. int i = 0, j;
  21690. int num_app_types = ucontrol->value.integer.value[i++];
  21691. pr_debug("%s\n", __func__);
  21692. memset(app_type_cfg, 0, MAX_APP_TYPES*
  21693. sizeof(struct msm_pcm_routing_app_type_data));
  21694. if (num_app_types > MAX_APP_TYPES) {
  21695. pr_err("%s: number of app types exceed the max supported\n",
  21696. __func__);
  21697. return -EINVAL;
  21698. }
  21699. for (j = 0; j < num_app_types; j++) {
  21700. app_type_cfg[j].app_type =
  21701. ucontrol->value.integer.value[i++];
  21702. app_type_cfg[j].sample_rate =
  21703. ucontrol->value.integer.value[i++];
  21704. app_type_cfg[j].bit_width =
  21705. ucontrol->value.integer.value[i++];
  21706. }
  21707. return 0;
  21708. }
  21709. static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
  21710. struct snd_ctl_elem_value *ucontrol)
  21711. {
  21712. int j, fe_id, be_id, port_type;
  21713. int ret = 0;
  21714. unsigned long copp;
  21715. struct msm_pcm_routing_bdai_data *bedai;
  21716. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  21717. SESSION_TYPE_RX;
  21718. int app_type = ucontrol->value.integer.value[1];
  21719. int gain = (ucontrol->value.integer.value[2] +
  21720. ucontrol->value.integer.value[3])/2;
  21721. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  21722. MSM_AFE_PORT_TYPE_TX;
  21723. mutex_lock(&routing_lock);
  21724. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  21725. if (is_be_dai_extproc(be_id))
  21726. continue;
  21727. bedai = &msm_bedais[be_id];
  21728. if (afe_get_port_type(bedai->port_id) != port_type)
  21729. continue;
  21730. if (!bedai->active)
  21731. continue;
  21732. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  21733. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  21734. continue;
  21735. if (app_type !=
  21736. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  21737. continue;
  21738. copp = session_copp_map[fe_id][dir][be_id];
  21739. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  21740. if (!test_bit(j, &copp))
  21741. continue;
  21742. ret |= adm_set_volume(bedai->port_id, j, gain);
  21743. }
  21744. }
  21745. }
  21746. mutex_unlock(&routing_lock);
  21747. return ret ? -EINVAL : 0;
  21748. }
  21749. static const struct snd_kcontrol_new app_type_cfg_controls[] = {
  21750. SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
  21751. 0x7FFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
  21752. msm_routing_put_app_type_cfg_control),
  21753. SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
  21754. 0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)
  21755. };
  21756. static int msm_routing_put_module_cfg_control(struct snd_kcontrol *kcontrol,
  21757. struct snd_ctl_elem_value *ucontrol)
  21758. {
  21759. int copp_idx, fe_id, be_id, port_type;
  21760. int ret = 0;
  21761. unsigned long copp;
  21762. struct msm_pcm_routing_bdai_data *bedai;
  21763. u8 *packed_params = NULL;
  21764. struct param_hdr_v3 param_hdr;
  21765. u32 packed_param_size = (sizeof(struct param_hdr_v3) +
  21766. sizeof(uint32_t));
  21767. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  21768. SESSION_TYPE_RX;
  21769. int app_type = ucontrol->value.integer.value[1];
  21770. int module_id = ucontrol->value.integer.value[2];
  21771. int instance_id = ucontrol->value.integer.value[3];
  21772. int param_id = ucontrol->value.integer.value[4];
  21773. int param_value = ucontrol->value.integer.value[5];
  21774. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  21775. MSM_AFE_PORT_TYPE_TX;
  21776. pr_debug("%s app_type:%d mod_id:%d instance_id:%d param_id:%d value:%d\n",
  21777. __func__, app_type, module_id,
  21778. instance_id, param_id, param_value);
  21779. packed_params = kzalloc(packed_param_size, GFP_KERNEL);
  21780. if (!packed_params)
  21781. return -ENOMEM;
  21782. memset(&param_hdr, 0, sizeof(param_hdr));
  21783. param_hdr.module_id = module_id;
  21784. param_hdr.instance_id = instance_id;
  21785. param_hdr.param_id = param_id;
  21786. param_hdr.param_size = sizeof(uint32_t);
  21787. packed_param_size = 0;
  21788. mutex_lock(&routing_lock);
  21789. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  21790. if (is_be_dai_extproc(be_id))
  21791. continue;
  21792. bedai = &msm_bedais[be_id];
  21793. if (afe_get_port_type(bedai->port_id) != port_type)
  21794. continue;
  21795. if (!bedai->active)
  21796. continue;
  21797. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  21798. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  21799. continue;
  21800. if (app_type !=
  21801. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  21802. continue;
  21803. copp = session_copp_map[fe_id][dir][be_id];
  21804. for (copp_idx = 0; copp_idx < MAX_COPPS_PER_PORT;
  21805. copp_idx++) {
  21806. if (!test_bit(copp_idx, &copp))
  21807. continue;
  21808. ret = q6common_pack_pp_params(packed_params,
  21809. &param_hdr,
  21810. (u8 *) &param_value,
  21811. &packed_param_size);
  21812. if (ret) {
  21813. pr_err("%s: Failed to pack params, error %d\n",
  21814. __func__, ret);
  21815. goto done;
  21816. }
  21817. ret = adm_set_pp_params(bedai->port_id,
  21818. copp_idx, NULL,
  21819. packed_params,
  21820. packed_param_size);
  21821. if (ret) {
  21822. pr_err("%s: Setting param failed with err=%d\n",
  21823. __func__, ret);
  21824. ret = -EINVAL;
  21825. goto done;
  21826. }
  21827. }
  21828. }
  21829. }
  21830. done:
  21831. mutex_unlock(&routing_lock);
  21832. kfree(packed_params);
  21833. return ret;
  21834. }
  21835. static const struct snd_kcontrol_new module_cfg_controls[] = {
  21836. SOC_SINGLE_MULTI_EXT("Audio Effect", SND_SOC_NOPM, 0,
  21837. 0x2000, 0, 6, NULL, msm_routing_put_module_cfg_control)
  21838. };
  21839. static int msm_routing_get_lsm_app_type_cfg_control(
  21840. struct snd_kcontrol *kcontrol,
  21841. struct snd_ctl_elem_value *ucontrol)
  21842. {
  21843. int shift = ((struct soc_multi_mixer_control *)
  21844. kcontrol->private_value)->shift;
  21845. int i = 0, j = 0;
  21846. mutex_lock(&routing_lock);
  21847. ucontrol->value.integer.value[i] = num_app_cfg_types;
  21848. for (j = 0; j < num_app_cfg_types; ++j) {
  21849. ucontrol->value.integer.value[++i] =
  21850. lsm_app_type_cfg[j].app_type;
  21851. ucontrol->value.integer.value[++i] =
  21852. lsm_app_type_cfg[j].sample_rate;
  21853. ucontrol->value.integer.value[++i] =
  21854. lsm_app_type_cfg[j].bit_width;
  21855. if (shift == 1)
  21856. ucontrol->value.integer.value[++i] =
  21857. lsm_app_type_cfg[j].num_out_channels;
  21858. }
  21859. mutex_unlock(&routing_lock);
  21860. return 0;
  21861. }
  21862. static int msm_routing_put_lsm_app_type_cfg_control(
  21863. struct snd_kcontrol *kcontrol,
  21864. struct snd_ctl_elem_value *ucontrol)
  21865. {
  21866. int shift = ((struct soc_multi_mixer_control *)
  21867. kcontrol->private_value)->shift;
  21868. int i = 0, j;
  21869. mutex_lock(&routing_lock);
  21870. if (ucontrol->value.integer.value[0] > MAX_APP_TYPES) {
  21871. pr_err("%s: number of app types exceed the max supported\n",
  21872. __func__);
  21873. mutex_unlock(&routing_lock);
  21874. return -EINVAL;
  21875. }
  21876. num_app_cfg_types = ucontrol->value.integer.value[i++];
  21877. memset(lsm_app_type_cfg, 0, MAX_APP_TYPES*
  21878. sizeof(struct msm_pcm_routing_app_type_data));
  21879. for (j = 0; j < num_app_cfg_types; j++) {
  21880. lsm_app_type_cfg[j].app_type =
  21881. ucontrol->value.integer.value[i++];
  21882. lsm_app_type_cfg[j].sample_rate =
  21883. ucontrol->value.integer.value[i++];
  21884. lsm_app_type_cfg[j].bit_width =
  21885. ucontrol->value.integer.value[i++];
  21886. /* Shift of 1 indicates this is V2 mixer control */
  21887. if (shift == 1)
  21888. lsm_app_type_cfg[j].num_out_channels =
  21889. ucontrol->value.integer.value[i++];
  21890. }
  21891. mutex_unlock(&routing_lock);
  21892. return 0;
  21893. }
  21894. static const struct snd_kcontrol_new lsm_app_type_cfg_controls[] = {
  21895. SOC_SINGLE_MULTI_EXT("Listen App Type Config", SND_SOC_NOPM, 0,
  21896. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  21897. msm_routing_put_lsm_app_type_cfg_control),
  21898. SOC_SINGLE_MULTI_EXT("Listen App Type Config V2", SND_SOC_NOPM, 1,
  21899. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  21900. msm_routing_put_lsm_app_type_cfg_control),
  21901. };
  21902. static int msm_routing_get_use_ds1_or_ds2_control(
  21903. struct snd_kcontrol *kcontrol,
  21904. struct snd_ctl_elem_value *ucontrol)
  21905. {
  21906. ucontrol->value.integer.value[0] = is_ds2_on;
  21907. return 0;
  21908. }
  21909. static int msm_routing_put_use_ds1_or_ds2_control(
  21910. struct snd_kcontrol *kcontrol,
  21911. struct snd_ctl_elem_value *ucontrol)
  21912. {
  21913. is_ds2_on = ucontrol->value.integer.value[0];
  21914. return 0;
  21915. }
  21916. static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
  21917. SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
  21918. 1, 0, msm_routing_get_use_ds1_or_ds2_control,
  21919. msm_routing_put_use_ds1_or_ds2_control),
  21920. };
  21921. static int msm_routing_get_hifi_filter_control(
  21922. struct snd_kcontrol *kcontrol,
  21923. struct snd_ctl_elem_value *ucontrol)
  21924. {
  21925. ucontrol->value.integer.value[0] = hifi_filter_enabled;
  21926. return 0;
  21927. }
  21928. static int msm_routing_put_hifi_filter_control(
  21929. struct snd_kcontrol *kcontrol,
  21930. struct snd_ctl_elem_value *ucontrol)
  21931. {
  21932. hifi_filter_enabled = ucontrol->value.integer.value[0];
  21933. return 0;
  21934. }
  21935. static const struct snd_kcontrol_new hifi_filter_controls[] = {
  21936. SOC_SINGLE_EXT("HiFi Filter", SND_SOC_NOPM, 0,
  21937. 1, 0, msm_routing_get_hifi_filter_control,
  21938. msm_routing_put_hifi_filter_control),
  21939. };
  21940. static int msm_routing_get_ffecns_freeze_event_control(
  21941. struct snd_kcontrol *kcontrol,
  21942. struct snd_ctl_elem_value *ucontrol)
  21943. {
  21944. ucontrol->value.integer.value[0] = ffecns_freeze_event;
  21945. return 0;
  21946. }
  21947. static int msm_routing_put_ffecns_freeze_event_control(
  21948. struct snd_kcontrol *kcontrol,
  21949. struct snd_ctl_elem_value *ucontrol)
  21950. {
  21951. int ret = -EINVAL;
  21952. ffecns_freeze_event = ucontrol->value.integer.value[0];
  21953. ret = adm_set_ffecns_freeze_event(ffecns_freeze_event);
  21954. if (ret)
  21955. pr_err("%s: failed to set ffecns imc event to%d\n",
  21956. __func__, ffecns_freeze_event);
  21957. return ret;
  21958. }
  21959. static const struct snd_kcontrol_new use_ffecns_freeze_event_controls[] = {
  21960. SOC_SINGLE_EXT("FFECNS Freeze Event", SND_SOC_NOPM, 0,
  21961. 1, 0, msm_routing_get_ffecns_freeze_event_control,
  21962. msm_routing_put_ffecns_freeze_event_control),
  21963. };
  21964. int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
  21965. struct snd_ctl_elem_value *ucontrol) {
  21966. int rc = 0;
  21967. int be_idx = 0;
  21968. char *param_value;
  21969. int *update_param_value;
  21970. uint32_t param_size = (RMS_PAYLOAD_LEN + 1) * sizeof(uint32_t);
  21971. struct param_hdr_v3 param_hdr;
  21972. param_value = kzalloc(param_size, GFP_KERNEL);
  21973. if (!param_value)
  21974. return -ENOMEM;
  21975. memset(&param_hdr, 0, sizeof(param_hdr));
  21976. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
  21977. if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
  21978. break;
  21979. if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
  21980. param_hdr.module_id = RMS_MODULEID_APPI_PASSTHRU;
  21981. param_hdr.instance_id = INSTANCE_ID_0;
  21982. param_hdr.param_id = RMS_PARAM_FIRST_SAMPLE;
  21983. param_hdr.param_size = param_size;
  21984. rc = adm_get_pp_params(SLIMBUS_0_TX, 0, ADM_CLIENT_ID_DEFAULT,
  21985. NULL, &param_hdr, (u8 *) param_value);
  21986. if (rc) {
  21987. pr_err("%s: get parameters failed:%d\n", __func__, rc);
  21988. kfree(param_value);
  21989. return -EINVAL;
  21990. }
  21991. update_param_value = (int *)param_value;
  21992. ucontrol->value.integer.value[0] = update_param_value[0];
  21993. pr_debug("%s: FROM DSP value[0] 0x%x\n",
  21994. __func__, update_param_value[0]);
  21995. }
  21996. kfree(param_value);
  21997. return 0;
  21998. }
  21999. static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
  22000. struct snd_ctl_elem_value *ucontrol)
  22001. {
  22002. voc_session_id = ucontrol->value.integer.value[0];
  22003. pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
  22004. return 0;
  22005. }
  22006. static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
  22007. struct snd_ctl_elem_value *ucontrol)
  22008. {
  22009. ucontrol->value.integer.value[0] = voc_session_id;
  22010. return 0;
  22011. }
  22012. static struct snd_kcontrol_new msm_voc_session_controls[] = {
  22013. SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
  22014. 0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
  22015. msm_voc_session_id_put),
  22016. };
  22017. static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
  22018. struct snd_ctl_elem_info *uinfo)
  22019. {
  22020. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  22021. uinfo->count = sizeof(struct sound_focus_param);
  22022. return 0;
  22023. }
  22024. static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
  22025. struct snd_ctl_elem_value *ucontrol)
  22026. {
  22027. int ret = 0;
  22028. struct sound_focus_param soundFocusData;
  22029. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  22030. sizeof(struct sound_focus_param));
  22031. ret = voc_set_sound_focus(soundFocusData);
  22032. if (ret) {
  22033. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  22034. __func__, ret);
  22035. ret = -EINVAL;
  22036. }
  22037. return ret;
  22038. }
  22039. static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
  22040. struct snd_ctl_elem_value *ucontrol)
  22041. {
  22042. int ret = 0;
  22043. struct sound_focus_param soundFocusData;
  22044. memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
  22045. ret = voc_get_sound_focus(&soundFocusData);
  22046. if (ret) {
  22047. pr_debug("%s: Error getting Sound Focus Params, err=%d\n",
  22048. __func__, ret);
  22049. ret = -EINVAL;
  22050. goto done;
  22051. }
  22052. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  22053. sizeof(struct sound_focus_param));
  22054. done:
  22055. return ret;
  22056. }
  22057. static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
  22058. struct snd_ctl_elem_info *uinfo)
  22059. {
  22060. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  22061. uinfo->count = sizeof(struct source_tracking_param);
  22062. return 0;
  22063. }
  22064. static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
  22065. struct snd_ctl_elem_value *ucontrol)
  22066. {
  22067. int ret = 0;
  22068. struct source_tracking_param sourceTrackingData;
  22069. memset(&sourceTrackingData, 0, sizeof(struct source_tracking_param));
  22070. ret = voc_get_source_tracking(&sourceTrackingData);
  22071. if (ret) {
  22072. pr_debug("%s: Error getting Source Tracking Params, err=%d\n",
  22073. __func__, ret);
  22074. ret = -EINVAL;
  22075. goto done;
  22076. }
  22077. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  22078. sizeof(struct source_tracking_param));
  22079. done:
  22080. return ret;
  22081. }
  22082. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  22083. int *copp_idx)
  22084. {
  22085. int i, idx, be_idx;
  22086. int ret = 0;
  22087. unsigned long copp;
  22088. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  22089. ret = q6audio_validate_port(port_id);
  22090. if (ret < 0) {
  22091. pr_err("%s: port validation failed id 0x%x ret %d\n",
  22092. __func__, port_id, ret);
  22093. ret = -EINVAL;
  22094. goto done;
  22095. }
  22096. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  22097. if (msm_bedais[be_idx].port_id == port_id)
  22098. break;
  22099. }
  22100. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  22101. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  22102. ret = -EINVAL;
  22103. goto done;
  22104. }
  22105. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  22106. MSM_FRONTEND_DAI_MAX) {
  22107. if (!(is_mm_lsm_fe_id(i) &&
  22108. route_check_fe_id_adm_support(i)))
  22109. continue;
  22110. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  22111. copp = session_copp_map[i]
  22112. [session_type][be_idx];
  22113. if (test_bit(idx, &copp))
  22114. break;
  22115. }
  22116. if (idx >= MAX_COPPS_PER_PORT)
  22117. continue;
  22118. else
  22119. break;
  22120. }
  22121. if (i >= MSM_FRONTEND_DAI_MAX) {
  22122. pr_debug("%s: Invalid FE, exiting\n", __func__);
  22123. ret = -EINVAL;
  22124. goto done;
  22125. }
  22126. *copp_idx = idx;
  22127. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  22128. done:
  22129. return ret;
  22130. }
  22131. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  22132. const char *prefix, int *port_id)
  22133. {
  22134. int ret = 0;
  22135. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  22136. /*
  22137. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  22138. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  22139. * and compare the string with the backend name to derive the port id.
  22140. */
  22141. if (!strcmp(kcontrol->id.name + strlen(prefix),
  22142. "SLIMBUS_0")) {
  22143. *port_id = SLIMBUS_0_TX;
  22144. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22145. "TERT_MI2S")) {
  22146. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  22147. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22148. "INT3_MI2S")) {
  22149. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  22150. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22151. "VA_CDC_DMA_TX_0")) {
  22152. *port_id = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  22153. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22154. "TX_CDC_DMA_TX_3")) {
  22155. *port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  22156. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22157. "QUIN_TDM_TX_0")) {
  22158. *port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  22159. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22160. "PRIMARY_TDM")) {
  22161. *port_id = AFE_PORT_ID_PRIMARY_TDM_TX;
  22162. } else {
  22163. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  22164. __func__, kcontrol->id.name);
  22165. ret = -EINVAL;
  22166. goto done;
  22167. }
  22168. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  22169. __func__, kcontrol->id.name, *port_id);
  22170. done:
  22171. return ret;
  22172. }
  22173. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  22174. struct snd_ctl_elem_value *ucontrol)
  22175. {
  22176. int ret = 0;
  22177. struct sound_focus_param soundFocusData;
  22178. int port_id, copp_idx;
  22179. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  22180. "Sound Focus Audio Tx ", &port_id);
  22181. if (ret != 0) {
  22182. pr_err("%s: Error in deriving port id, err=%d\n",
  22183. __func__, ret);
  22184. ret = -EINVAL;
  22185. goto done;
  22186. }
  22187. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  22188. &copp_idx);
  22189. if (ret) {
  22190. pr_err("%s: Could not get copp idx for port_id=%d\n",
  22191. __func__, port_id);
  22192. ret = -EINVAL;
  22193. goto done;
  22194. }
  22195. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  22196. sizeof(struct sound_focus_param));
  22197. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  22198. if (ret) {
  22199. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  22200. __func__, ret);
  22201. ret = -EINVAL;
  22202. goto done;
  22203. }
  22204. done:
  22205. return ret;
  22206. }
  22207. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  22208. struct snd_ctl_elem_value *ucontrol)
  22209. {
  22210. int ret = 0;
  22211. struct sound_focus_param soundFocusData;
  22212. int port_id, copp_idx;
  22213. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  22214. "Sound Focus Audio Tx ", &port_id);
  22215. if (ret) {
  22216. pr_err("%s: Error in deriving port id, err=%d\n",
  22217. __func__, ret);
  22218. ret = -EINVAL;
  22219. goto done;
  22220. }
  22221. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  22222. &copp_idx);
  22223. if (ret) {
  22224. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  22225. __func__, port_id);
  22226. ret = -EINVAL;
  22227. goto done;
  22228. }
  22229. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  22230. if (ret) {
  22231. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  22232. __func__, ret);
  22233. ret = -EINVAL;
  22234. goto done;
  22235. }
  22236. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  22237. sizeof(struct sound_focus_param));
  22238. done:
  22239. return ret;
  22240. }
  22241. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  22242. struct snd_ctl_elem_value *ucontrol)
  22243. {
  22244. int ret = 0;
  22245. struct source_tracking_param sourceTrackingData;
  22246. int port_id, copp_idx;
  22247. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  22248. "Source Tracking Audio Tx ", &port_id);
  22249. if (ret) {
  22250. pr_err("%s: Error in deriving port id, err=%d\n",
  22251. __func__, ret);
  22252. ret = -EINVAL;
  22253. goto done;
  22254. }
  22255. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  22256. &copp_idx);
  22257. if (ret) {
  22258. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  22259. __func__, port_id);
  22260. ret = -EINVAL;
  22261. goto done;
  22262. }
  22263. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  22264. if (ret) {
  22265. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  22266. __func__, ret);
  22267. ret = -EINVAL;
  22268. goto done;
  22269. }
  22270. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  22271. sizeof(struct source_tracking_param));
  22272. done:
  22273. return ret;
  22274. }
  22275. static int msm_doa_tracking_mon_info(struct snd_kcontrol *kcontrol,
  22276. struct snd_ctl_elem_info *uinfo)
  22277. {
  22278. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  22279. uinfo->count = sizeof(struct doa_tracking_mon_param);
  22280. return 0;
  22281. }
  22282. static int msm_doa_tracking_mon_get(struct snd_kcontrol *kcontrol,
  22283. struct snd_ctl_elem_value *ucontrol)
  22284. {
  22285. int ret = 0;
  22286. struct doa_tracking_mon_param doa_tracking_data;
  22287. int port_id, copp_idx;
  22288. memset(&doa_tracking_data, 0, sizeof(struct doa_tracking_mon_param));
  22289. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  22290. "Doa Tracking Monitor Listen ", &port_id);
  22291. if (ret) {
  22292. pr_err("%s: Error in deriving port id, err=%d\n",
  22293. __func__, ret);
  22294. ret = -EINVAL;
  22295. goto done;
  22296. }
  22297. /*
  22298. * If copp id exists for given port id, query adm to get doa data.
  22299. * Else query afe for doa tracking params.
  22300. * This is to support in cases where LSM directly connects to
  22301. * AFE for FFNS.
  22302. */
  22303. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  22304. &copp_idx);
  22305. if (!ret)
  22306. ret = adm_get_doa_tracking_mon(port_id, copp_idx,
  22307. &doa_tracking_data);
  22308. else
  22309. ret = afe_get_doa_tracking_mon(port_id, &doa_tracking_data);
  22310. if (ret) {
  22311. pr_err("%s: Error getting Doa Tracking Params, err=%d\n",
  22312. __func__, ret);
  22313. ret = -EINVAL;
  22314. goto done;
  22315. }
  22316. memcpy(ucontrol->value.bytes.data, (void *)&doa_tracking_data,
  22317. sizeof(struct doa_tracking_mon_param));
  22318. done:
  22319. return ret;
  22320. }
  22321. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  22322. {
  22323. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22324. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22325. .name = "Sound Focus Voice Tx SLIMBUS_0",
  22326. .info = msm_sound_focus_info,
  22327. .get = msm_voice_sound_focus_get,
  22328. .put = msm_voice_sound_focus_put,
  22329. },
  22330. {
  22331. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22332. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22333. .name = "Source Tracking Voice Tx SLIMBUS_0",
  22334. .info = msm_source_tracking_info,
  22335. .get = msm_voice_source_tracking_get,
  22336. },
  22337. {
  22338. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22339. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22340. .name = "Sound Focus Audio Tx SLIMBUS_0",
  22341. .info = msm_sound_focus_info,
  22342. .get = msm_audio_sound_focus_get,
  22343. .put = msm_audio_sound_focus_put,
  22344. },
  22345. {
  22346. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22347. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22348. .name = "Source Tracking Audio Tx SLIMBUS_0",
  22349. .info = msm_source_tracking_info,
  22350. .get = msm_audio_source_tracking_get,
  22351. },
  22352. {
  22353. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22354. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22355. .name = "Sound Focus Voice Tx TERT_MI2S",
  22356. .info = msm_sound_focus_info,
  22357. .get = msm_voice_sound_focus_get,
  22358. .put = msm_voice_sound_focus_put,
  22359. },
  22360. {
  22361. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22362. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22363. .name = "Source Tracking Voice Tx TERT_MI2S",
  22364. .info = msm_source_tracking_info,
  22365. .get = msm_voice_source_tracking_get,
  22366. },
  22367. {
  22368. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22369. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22370. .name = "Sound Focus Audio Tx TERT_MI2S",
  22371. .info = msm_sound_focus_info,
  22372. .get = msm_audio_sound_focus_get,
  22373. .put = msm_audio_sound_focus_put,
  22374. },
  22375. {
  22376. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22377. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22378. .name = "Source Tracking Audio Tx TERT_MI2S",
  22379. .info = msm_source_tracking_info,
  22380. .get = msm_audio_source_tracking_get,
  22381. },
  22382. {
  22383. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22384. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22385. .name = "Sound Focus Voice Tx INT3_MI2S",
  22386. .info = msm_sound_focus_info,
  22387. .get = msm_voice_sound_focus_get,
  22388. .put = msm_voice_sound_focus_put,
  22389. },
  22390. {
  22391. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22392. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22393. .name = "Source Tracking Voice Tx INT3_MI2S",
  22394. .info = msm_source_tracking_info,
  22395. .get = msm_voice_source_tracking_get,
  22396. },
  22397. {
  22398. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22399. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22400. .name = "Sound Focus Audio Tx INT3_MI2S",
  22401. .info = msm_sound_focus_info,
  22402. .get = msm_audio_sound_focus_get,
  22403. .put = msm_audio_sound_focus_put,
  22404. },
  22405. {
  22406. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22407. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22408. .name = "Source Tracking Audio Tx INT3_MI2S",
  22409. .info = msm_source_tracking_info,
  22410. .get = msm_audio_source_tracking_get,
  22411. },
  22412. {
  22413. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22414. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22415. .name = "Sound Focus Voice Tx VA_CDC_DMA_TX_0",
  22416. .info = msm_sound_focus_info,
  22417. .get = msm_voice_sound_focus_get,
  22418. .put = msm_voice_sound_focus_put,
  22419. },
  22420. {
  22421. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22422. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22423. .name = "Source Tracking Voice Tx VA_CDC_DMA_TX_0",
  22424. .info = msm_source_tracking_info,
  22425. .get = msm_voice_source_tracking_get,
  22426. },
  22427. {
  22428. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22429. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22430. .name = "Sound Focus Audio Tx VA_CDC_DMA_TX_0",
  22431. .info = msm_sound_focus_info,
  22432. .get = msm_audio_sound_focus_get,
  22433. .put = msm_audio_sound_focus_put,
  22434. },
  22435. {
  22436. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22437. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22438. .name = "Source Tracking Audio Tx VA_CDC_DMA_TX_0",
  22439. .info = msm_source_tracking_info,
  22440. .get = msm_audio_source_tracking_get,
  22441. },
  22442. {
  22443. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22444. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22445. .name = "Sound Focus Voice Tx TX_CDC_DMA_TX_3",
  22446. .info = msm_sound_focus_info,
  22447. .get = msm_voice_sound_focus_get,
  22448. .put = msm_voice_sound_focus_put,
  22449. },
  22450. {
  22451. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22452. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22453. .name = "Source Tracking Voice Tx TX_CDC_DMA_TX_3",
  22454. .info = msm_source_tracking_info,
  22455. .get = msm_voice_source_tracking_get,
  22456. },
  22457. {
  22458. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22459. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22460. .name = "Sound Focus Audio Tx TX_CDC_DMA_TX_3",
  22461. .info = msm_sound_focus_info,
  22462. .get = msm_audio_sound_focus_get,
  22463. .put = msm_audio_sound_focus_put,
  22464. },
  22465. {
  22466. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22467. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22468. .name = "Source Tracking Audio Tx TX_CDC_DMA_TX_3",
  22469. .info = msm_source_tracking_info,
  22470. .get = msm_audio_source_tracking_get,
  22471. },
  22472. {
  22473. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22474. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22475. .name = "Sound Focus Voice Tx QUIN_TDM_TX_0",
  22476. .info = msm_sound_focus_info,
  22477. .get = msm_voice_sound_focus_get,
  22478. .put = msm_voice_sound_focus_put,
  22479. },
  22480. {
  22481. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22482. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22483. .name = "Source Tracking Voice Tx QUIN_TDM_TX_0",
  22484. .info = msm_source_tracking_info,
  22485. .get = msm_voice_source_tracking_get,
  22486. },
  22487. {
  22488. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22489. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22490. .name = "Sound Focus Audio Tx QUIN_TDM_TX_0",
  22491. .info = msm_sound_focus_info,
  22492. .get = msm_audio_sound_focus_get,
  22493. .put = msm_audio_sound_focus_put,
  22494. },
  22495. {
  22496. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22497. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22498. .name = "Source Tracking Audio Tx QUIN_TDM_TX_0",
  22499. .info = msm_source_tracking_info,
  22500. .get = msm_audio_source_tracking_get,
  22501. },
  22502. {
  22503. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22504. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22505. .name = "Sound Focus Audio Tx PRIMARY_TDM",
  22506. .info = msm_sound_focus_info,
  22507. .get = msm_audio_sound_focus_get,
  22508. .put = msm_audio_sound_focus_put,
  22509. },
  22510. {
  22511. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22512. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22513. .name = "Source Tracking Audio Tx PRIMARY_TDM",
  22514. .info = msm_source_tracking_info,
  22515. .get = msm_audio_source_tracking_get,
  22516. },
  22517. };
  22518. static const struct snd_kcontrol_new msm_source_doa_tracking_controls[] = {
  22519. {
  22520. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22521. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22522. .name = "Doa Tracking Monitor Listen VA_CDC_DMA_TX_0",
  22523. .info = msm_doa_tracking_mon_info,
  22524. .get = msm_doa_tracking_mon_get,
  22525. },
  22526. };
  22527. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  22528. struct snd_ctl_elem_value *ucontrol)
  22529. {
  22530. int ret = 0;
  22531. int item;
  22532. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  22533. pr_debug("%s item is %d\n", __func__,
  22534. ucontrol->value.enumerated.item[0]);
  22535. mutex_lock(&routing_lock);
  22536. item = ucontrol->value.enumerated.item[0];
  22537. if (item < e->items) {
  22538. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  22539. __func__, e->shift_l, e->values[item]);
  22540. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  22541. e->values[item] < MSM_BACKEND_DAI_MAX)
  22542. /* Enable feedback TX path */
  22543. ret = afe_spk_prot_feed_back_cfg(
  22544. msm_bedais[e->values[item]].port_id,
  22545. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  22546. else {
  22547. pr_debug("%s values are out of range item %d\n",
  22548. __func__, e->values[item]);
  22549. /* Disable feedback TX path */
  22550. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  22551. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  22552. else
  22553. ret = -EINVAL;
  22554. }
  22555. } else {
  22556. pr_err("%s item value is out of range item\n", __func__);
  22557. ret = -EINVAL;
  22558. }
  22559. mutex_unlock(&routing_lock);
  22560. return ret;
  22561. }
  22562. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  22563. struct snd_ctl_elem_value *ucontrol)
  22564. {
  22565. int ret = 0;
  22566. int item;
  22567. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  22568. pr_debug("%s item is %d\n", __func__,
  22569. ucontrol->value.enumerated.item[0]);
  22570. mutex_lock(&routing_lock);
  22571. item = ucontrol->value.enumerated.item[0];
  22572. if (item < e->items) {
  22573. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  22574. __func__, e->shift_l, e->values[item]);
  22575. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  22576. e->values[item] < MSM_BACKEND_DAI_MAX)
  22577. /* Enable feedback TX path */
  22578. ret = afe_spk_prot_feed_back_cfg(
  22579. msm_bedais[e->values[item]].port_id,
  22580. msm_bedais[e->shift_l].port_id,
  22581. 1, 1, 1);
  22582. else {
  22583. pr_debug("%s values are out of range item %d\n",
  22584. __func__, e->values[item]);
  22585. /* Disable feedback TX path */
  22586. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  22587. ret = afe_spk_prot_feed_back_cfg(0,
  22588. 0, 0, 0, 0);
  22589. else
  22590. ret = -EINVAL;
  22591. }
  22592. } else {
  22593. pr_err("%s item value is out of range item\n", __func__);
  22594. ret = -EINVAL;
  22595. }
  22596. mutex_unlock(&routing_lock);
  22597. return ret;
  22598. }
  22599. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  22600. struct snd_ctl_elem_value *ucontrol)
  22601. {
  22602. pr_debug("%s\n", __func__);
  22603. return 0;
  22604. }
  22605. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  22606. struct snd_ctl_elem_value *ucontrol)
  22607. {
  22608. pr_debug("%s\n", __func__);
  22609. ucontrol->value.enumerated.item[0] = 0;
  22610. return 0;
  22611. }
  22612. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  22613. "ZERO", "SLIM4_TX"
  22614. };
  22615. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  22616. "ZERO", "SLIM4_TX"
  22617. };
  22618. static const char * const wsa_rx_0_vi_fb_tx_lch_mux_text[] = {
  22619. "ZERO", "WSA_CDC_DMA_TX_0"
  22620. };
  22621. static const char * const wsa_rx_0_vi_fb_tx_rch_mux_text[] = {
  22622. "ZERO", "WSA_CDC_DMA_TX_0"
  22623. };
  22624. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  22625. "ZERO", "SENARY_TX"
  22626. };
  22627. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  22628. "ZERO", "INT5_MI2S_TX"
  22629. };
  22630. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  22631. "ZERO", "INT5_MI2S_TX"
  22632. };
  22633. static const int slim0_rx_vi_fb_tx_lch_value[] = {
  22634. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  22635. };
  22636. static const int slim0_rx_vi_fb_tx_rch_value[] = {
  22637. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  22638. };
  22639. static const int wsa_rx_0_vi_fb_tx_lch_value[] = {
  22640. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  22641. };
  22642. static const int wsa_rx_0_vi_fb_tx_rch_value[] = {
  22643. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  22644. };
  22645. static const int mi2s_rx_vi_fb_tx_value[] = {
  22646. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  22647. };
  22648. static const int int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  22649. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  22650. };
  22651. static const int int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  22652. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  22653. };
  22654. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  22655. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  22656. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  22657. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  22658. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  22659. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  22660. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  22661. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  22662. static const struct soc_enum wsa_rx_0_vi_fb_lch_mux_enum =
  22663. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  22664. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_lch_mux_text),
  22665. wsa_rx_0_vi_fb_tx_lch_mux_text, wsa_rx_0_vi_fb_tx_lch_value);
  22666. static const struct soc_enum wsa_rx_0_vi_fb_rch_mux_enum =
  22667. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  22668. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_rch_mux_text),
  22669. wsa_rx_0_vi_fb_tx_rch_mux_text, wsa_rx_0_vi_fb_tx_rch_value);
  22670. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  22671. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  22672. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  22673. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  22674. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  22675. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  22676. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  22677. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  22678. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  22679. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  22680. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  22681. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  22682. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  22683. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  22684. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  22685. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  22686. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  22687. spkr_prot_put_vi_lch_port);
  22688. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  22689. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  22690. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  22691. spkr_prot_put_vi_rch_port);
  22692. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_lch_mux =
  22693. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_LCH_MUX",
  22694. wsa_rx_0_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  22695. spkr_prot_put_vi_lch_port);
  22696. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_rch_mux =
  22697. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_RCH_MUX",
  22698. wsa_rx_0_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  22699. spkr_prot_put_vi_rch_port);
  22700. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  22701. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  22702. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  22703. spkr_prot_put_vi_lch_port);
  22704. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  22705. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  22706. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  22707. spkr_prot_put_vi_lch_port);
  22708. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  22709. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  22710. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  22711. spkr_prot_put_vi_rch_port);
  22712. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  22713. /* Frontend AIF */
  22714. /* Widget name equals to Front-End DAI name<Need confirmation>,
  22715. * Stream name must contains substring of front-end dai name
  22716. */
  22717. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  22718. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  22719. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  22720. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  22721. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  22722. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  22723. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  22724. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  22725. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  22726. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  22727. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  22728. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  22729. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  22730. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  22731. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  22732. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  22733. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  22734. SND_SOC_DAPM_AIF_IN("MM_DL21", "MultiMedia21 Playback", 0, 0, 0, 0),
  22735. SND_SOC_DAPM_AIF_IN("MM_DL22", "MultiMedia22 Playback", 0, 0, 0, 0),
  22736. SND_SOC_DAPM_AIF_IN("MM_DL23", "MultiMedia23 Playback", 0, 0, 0, 0),
  22737. SND_SOC_DAPM_AIF_IN("MM_DL24", "MultiMedia24 Playback", 0, 0, 0, 0),
  22738. SND_SOC_DAPM_AIF_IN("MM_DL25", "MultiMedia25 Playback", 0, 0, 0, 0),
  22739. SND_SOC_DAPM_AIF_IN("MM_DL26", "MultiMedia26 Playback", 0, 0, 0, 0),
  22740. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  22741. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  22742. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  22743. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  22744. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  22745. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  22746. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  22747. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  22748. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  22749. SND_SOC_DAPM_AIF_OUT("MM_UL10", "MultiMedia10 Capture", 0, 0, 0, 0),
  22750. SND_SOC_DAPM_AIF_OUT("MM_UL16", "MultiMedia16 Capture", 0, 0, 0, 0),
  22751. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  22752. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  22753. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  22754. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  22755. SND_SOC_DAPM_AIF_OUT("MM_UL21", "MultiMedia21 Capture", 0, 0, 0, 0),
  22756. SND_SOC_DAPM_AIF_OUT("MM_UL22", "MultiMedia22 Capture", 0, 0, 0, 0),
  22757. SND_SOC_DAPM_AIF_OUT("MM_UL23", "MultiMedia23 Capture", 0, 0, 0, 0),
  22758. SND_SOC_DAPM_AIF_OUT("MM_UL24", "MultiMedia24 Capture", 0, 0, 0, 0),
  22759. SND_SOC_DAPM_AIF_OUT("MM_UL25", "MultiMedia25 Capture", 0, 0, 0, 0),
  22760. SND_SOC_DAPM_AIF_OUT("MM_UL27", "MultiMedia27 Capture", 0, 0, 0, 0),
  22761. SND_SOC_DAPM_AIF_OUT("MM_UL28", "MultiMedia28 Capture", 0, 0, 0, 0),
  22762. SND_SOC_DAPM_AIF_OUT("MM_UL29", "MultiMedia29 Capture", 0, 0, 0, 0),
  22763. SND_SOC_DAPM_AIF_OUT("MM_UL30", "MultiMedia30 Capture", 0, 0, 0, 0),
  22764. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  22765. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  22766. "VoiceMMode1 Playback", 0, 0, 0, 0),
  22767. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  22768. "VoiceMMode1 Capture", 0, 0, 0, 0),
  22769. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  22770. "VoiceMMode2 Playback", 0, 0, 0, 0),
  22771. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  22772. "VoiceMMode2 Capture", 0, 0, 0, 0),
  22773. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  22774. 0, 0, 0, 0),
  22775. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  22776. 0, 0, 0, 0),
  22777. SND_SOC_DAPM_AIF_IN("CDC_DMA_DL_HL", "CDC_DMA_HOSTLESS Playback",
  22778. 0, 0, 0, 0),
  22779. SND_SOC_DAPM_AIF_OUT("CDC_DMA_UL_HL", "CDC_DMA_HOSTLESS Capture",
  22780. 0, 0, 0, 0),
  22781. SND_SOC_DAPM_AIF_OUT("TX3_CDC_DMA_UL_HL",
  22782. "TX3_CDC_DMA_HOSTLESS Capture", 0, 0, 0, 0),
  22783. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  22784. 0, 0, 0, 0),
  22785. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  22786. 0, 0, 0, 0),
  22787. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  22788. 0, 0, 0, 0),
  22789. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  22790. 0, 0, 0, 0),
  22791. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  22792. 0, 0, 0, 0),
  22793. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  22794. 0, 0, 0, 0),
  22795. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  22796. 0, 0, 0, 0),
  22797. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  22798. 0, 0, 0, 0),
  22799. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  22800. 0, 0, 0, 0),
  22801. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  22802. 0, 0, 0, 0),
  22803. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  22804. 0, 0, 0, 0),
  22805. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  22806. 0, 0, 0, 0),
  22807. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  22808. 0, 0, 0, 0),
  22809. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  22810. 0, 0, 0, 0),
  22811. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  22812. 0, 0, 0, 0),
  22813. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  22814. 0, 0, 0, 0),
  22815. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  22816. 0, 0, 0, 0),
  22817. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  22818. 0, 0, 0, 0),
  22819. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  22820. 0, 0, 0, 0),
  22821. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  22822. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  22823. 0, 0, 0, 0),
  22824. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  22825. "INT0 MI2S_RX Hostless Playback",
  22826. 0, 0, 0, 0),
  22827. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  22828. "INT4 MI2S_RX Hostless Playback",
  22829. 0, 0, 0, 0),
  22830. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  22831. "Primary MI2S_RX Hostless Playback",
  22832. 0, 0, 0, 0),
  22833. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  22834. "Secondary MI2S_RX Hostless Playback",
  22835. 0, 0, 0, 0),
  22836. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  22837. "Tertiary MI2S_RX Hostless Playback",
  22838. 0, 0, 0, 0),
  22839. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  22840. "Quaternary MI2S_RX Hostless Playback",
  22841. 0, 0, 0, 0),
  22842. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_DL_HL",
  22843. "Quinary MI2S_RX Hostless Playback",
  22844. 0, 0, 0, 0),
  22845. SND_SOC_DAPM_AIF_IN("SEN_MI2S_DL_HL",
  22846. "Senary MI2S_RX Hostless Playback",
  22847. 0, 0, 0, 0),
  22848. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  22849. 0, 0, 0, 0),
  22850. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  22851. 0, 0, 0, 0),
  22852. SND_SOC_DAPM_AIF_IN("SEC_AUXPCM_DL_HL", "SEC_AUXPCM_HOSTLESS Playback",
  22853. 0, 0, 0, 0),
  22854. SND_SOC_DAPM_AIF_OUT("SEC_AUXPCM_UL_HL", "SEC_AUXPCM_HOSTLESS Capture",
  22855. 0, 0, 0, 0),
  22856. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  22857. 0, 0, 0, 0),
  22858. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  22859. "INT3 MI2S_TX Hostless Capture",
  22860. 0, 0, 0, 0),
  22861. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  22862. "Tertiary MI2S_TX Hostless Capture",
  22863. 0, 0, 0, 0),
  22864. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  22865. "Secondary MI2S_TX Hostless Capture",
  22866. 0, 0, 0, 0),
  22867. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  22868. "Primary MI2S_TX Hostless Capture",
  22869. 0, 0, 0, 0),
  22870. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  22871. 0, 0, 0, 0),
  22872. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  22873. 0, 0, 0, 0),
  22874. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  22875. "Quaternary MI2S_TX Hostless Capture",
  22876. 0, 0, 0, 0),
  22877. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_UL_HL",
  22878. "Quinary MI2S_TX Hostless Capture",
  22879. 0, 0, 0, 0),
  22880. SND_SOC_DAPM_AIF_OUT("SEN_MI2S_UL_HL",
  22881. "Senary MI2S_TX Hostless Capture",
  22882. 0, 0, 0, 0),
  22883. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  22884. "Primary TDM0 Hostless Playback",
  22885. 0, 0, 0, 0),
  22886. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  22887. "Primary TDM0 Hostless Capture",
  22888. 0, 0, 0, 0),
  22889. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  22890. "Primary TDM1 Hostless Playback",
  22891. 0, 0, 0, 0),
  22892. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  22893. "Primary TDM1 Hostless Capture",
  22894. 0, 0, 0, 0),
  22895. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  22896. "Primary TDM2 Hostless Playback",
  22897. 0, 0, 0, 0),
  22898. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  22899. "Primary TDM2 Hostless Capture",
  22900. 0, 0, 0, 0),
  22901. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  22902. "Primary TDM3 Hostless Playback",
  22903. 0, 0, 0, 0),
  22904. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  22905. "Primary TDM3 Hostless Capture",
  22906. 0, 0, 0, 0),
  22907. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  22908. "Primary TDM4 Hostless Playback",
  22909. 0, 0, 0, 0),
  22910. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  22911. "Primary TDM4 Hostless Capture",
  22912. 0, 0, 0, 0),
  22913. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  22914. "Primary TDM5 Hostless Playback",
  22915. 0, 0, 0, 0),
  22916. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  22917. "Primary TDM5 Hostless Capture",
  22918. 0, 0, 0, 0),
  22919. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  22920. "Primary TDM6 Hostless Playback",
  22921. 0, 0, 0, 0),
  22922. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  22923. "Primary TDM6 Hostless Capture",
  22924. 0, 0, 0, 0),
  22925. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  22926. "Primary TDM7 Hostless Playback",
  22927. 0, 0, 0, 0),
  22928. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  22929. "Primary TDM7 Hostless Capture",
  22930. 0, 0, 0, 0),
  22931. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  22932. "Secondary TDM0 Hostless Playback",
  22933. 0, 0, 0, 0),
  22934. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  22935. "Secondary TDM0 Hostless Capture",
  22936. 0, 0, 0, 0),
  22937. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  22938. "Secondary TDM1 Hostless Playback",
  22939. 0, 0, 0, 0),
  22940. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  22941. "Secondary TDM1 Hostless Capture",
  22942. 0, 0, 0, 0),
  22943. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  22944. "Secondary TDM2 Hostless Playback",
  22945. 0, 0, 0, 0),
  22946. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  22947. "Secondary TDM2 Hostless Capture",
  22948. 0, 0, 0, 0),
  22949. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  22950. "Secondary TDM3 Hostless Playback",
  22951. 0, 0, 0, 0),
  22952. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  22953. "Secondary TDM3 Hostless Capture",
  22954. 0, 0, 0, 0),
  22955. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  22956. "Secondary TDM4 Hostless Playback",
  22957. 0, 0, 0, 0),
  22958. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  22959. "Secondary TDM4 Hostless Capture",
  22960. 0, 0, 0, 0),
  22961. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  22962. "Secondary TDM5 Hostless Playback",
  22963. 0, 0, 0, 0),
  22964. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  22965. "Secondary TDM5 Hostless Capture",
  22966. 0, 0, 0, 0),
  22967. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  22968. "Secondary TDM6 Hostless Playback",
  22969. 0, 0, 0, 0),
  22970. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  22971. "Secondary TDM6 Hostless Capture",
  22972. 0, 0, 0, 0),
  22973. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  22974. "Secondary TDM7 Hostless Playback",
  22975. 0, 0, 0, 0),
  22976. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  22977. "Secondary TDM7 Hostless Capture",
  22978. 0, 0, 0, 0),
  22979. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  22980. "Tertiary TDM0 Hostless Playback",
  22981. 0, 0, 0, 0),
  22982. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  22983. "Tertiary TDM0 Hostless Capture",
  22984. 0, 0, 0, 0),
  22985. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  22986. "Tertiary TDM1 Hostless Playback",
  22987. 0, 0, 0, 0),
  22988. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  22989. "Tertiary TDM1 Hostless Capture",
  22990. 0, 0, 0, 0),
  22991. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  22992. "Tertiary TDM2 Hostless Playback",
  22993. 0, 0, 0, 0),
  22994. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  22995. "Tertiary TDM2 Hostless Capture",
  22996. 0, 0, 0, 0),
  22997. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  22998. "Tertiary TDM3 Hostless Playback",
  22999. 0, 0, 0, 0),
  23000. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  23001. "Tertiary TDM3 Hostless Capture",
  23002. 0, 0, 0, 0),
  23003. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  23004. "Tertiary TDM4 Hostless Playback",
  23005. 0, 0, 0, 0),
  23006. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  23007. "Tertiary TDM4 Hostless Capture",
  23008. 0, 0, 0, 0),
  23009. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  23010. "Tertiary TDM5 Hostless Playback",
  23011. 0, 0, 0, 0),
  23012. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  23013. "Tertiary TDM5 Hostless Capture",
  23014. 0, 0, 0, 0),
  23015. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  23016. "Tertiary TDM6 Hostless Playback",
  23017. 0, 0, 0, 0),
  23018. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  23019. "Tertiary TDM6 Hostless Capture",
  23020. 0, 0, 0, 0),
  23021. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  23022. "Tertiary TDM7 Hostless Playback",
  23023. 0, 0, 0, 0),
  23024. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  23025. "Tertiary TDM7 Hostless Capture",
  23026. 0, 0, 0, 0),
  23027. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  23028. "Quaternary TDM0 Hostless Playback",
  23029. 0, 0, 0, 0),
  23030. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  23031. "Quaternary TDM0 Hostless Capture",
  23032. 0, 0, 0, 0),
  23033. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  23034. "Quaternary TDM1 Hostless Playback",
  23035. 0, 0, 0, 0),
  23036. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  23037. "Quaternary TDM1 Hostless Capture",
  23038. 0, 0, 0, 0),
  23039. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  23040. "Quaternary TDM2 Hostless Playback",
  23041. 0, 0, 0, 0),
  23042. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  23043. "Quaternary TDM2 Hostless Capture",
  23044. 0, 0, 0, 0),
  23045. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  23046. "Quaternary TDM3 Hostless Playback",
  23047. 0, 0, 0, 0),
  23048. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  23049. "Quaternary TDM3 Hostless Capture",
  23050. 0, 0, 0, 0),
  23051. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  23052. "Quaternary TDM4 Hostless Playback",
  23053. 0, 0, 0, 0),
  23054. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  23055. "Quaternary TDM4 Hostless Capture",
  23056. 0, 0, 0, 0),
  23057. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  23058. "Quaternary TDM5 Hostless Playback",
  23059. 0, 0, 0, 0),
  23060. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  23061. "Quaternary TDM5 Hostless Capture",
  23062. 0, 0, 0, 0),
  23063. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  23064. "Quaternary TDM6 Hostless Playback",
  23065. 0, 0, 0, 0),
  23066. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  23067. "Quaternary TDM6 Hostless Capture",
  23068. 0, 0, 0, 0),
  23069. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  23070. "Quaternary TDM7 Hostless Playback",
  23071. 0, 0, 0, 0),
  23072. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  23073. "Quaternary TDM7 Hostless Capture",
  23074. 0, 0, 0, 0),
  23075. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_0_DL_HL",
  23076. "Quinary TDM0 Hostless Playback",
  23077. 0, 0, 0, 0),
  23078. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_0_UL_HL",
  23079. "Quinary TDM0 Hostless Capture",
  23080. 0, 0, 0, 0),
  23081. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_1_DL_HL",
  23082. "Quinary TDM1 Hostless Playback",
  23083. 0, 0, 0, 0),
  23084. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_1_UL_HL",
  23085. "Quinary TDM1 Hostless Capture",
  23086. 0, 0, 0, 0),
  23087. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_2_DL_HL",
  23088. "Quinary TDM2 Hostless Playback",
  23089. 0, 0, 0, 0),
  23090. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_2_UL_HL",
  23091. "Quinary TDM2 Hostless Capture",
  23092. 0, 0, 0, 0),
  23093. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_3_DL_HL",
  23094. "Quinary TDM3 Hostless Playback",
  23095. 0, 0, 0, 0),
  23096. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_3_UL_HL",
  23097. "Quinary TDM3 Hostless Capture",
  23098. 0, 0, 0, 0),
  23099. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_4_DL_HL",
  23100. "Quinary TDM4 Hostless Playback",
  23101. 0, 0, 0, 0),
  23102. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_4_UL_HL",
  23103. "Quinary TDM4 Hostless Capture",
  23104. 0, 0, 0, 0),
  23105. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_5_DL_HL",
  23106. "Quinary TDM5 Hostless Playback",
  23107. 0, 0, 0, 0),
  23108. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_5_UL_HL",
  23109. "Quinary TDM5 Hostless Capture",
  23110. 0, 0, 0, 0),
  23111. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_6_DL_HL",
  23112. "Quinary TDM6 Hostless Playback",
  23113. 0, 0, 0, 0),
  23114. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_6_UL_HL",
  23115. "Quinary TDM6 Hostless Capture",
  23116. 0, 0, 0, 0),
  23117. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_7_DL_HL",
  23118. "Quinary TDM7 Hostless Playback",
  23119. 0, 0, 0, 0),
  23120. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_7_UL_HL",
  23121. "Quinary TDM7 Hostless Capture",
  23122. 0, 0, 0, 0),
  23123. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_0_DL_HL",
  23124. "Senary TDM0 Hostless Playback",
  23125. 0, 0, 0, 0),
  23126. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_0_UL_HL",
  23127. "Senary TDM0 Hostless Capture",
  23128. 0, 0, 0, 0),
  23129. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_1_DL_HL",
  23130. "Senary TDM1 Hostless Playback",
  23131. 0, 0, 0, 0),
  23132. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_1_UL_HL",
  23133. "Senary TDM1 Hostless Capture",
  23134. 0, 0, 0, 0),
  23135. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_2_DL_HL",
  23136. "Senary TDM2 Hostless Playback",
  23137. 0, 0, 0, 0),
  23138. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_2_UL_HL",
  23139. "Senary TDM2 Hostless Capture",
  23140. 0, 0, 0, 0),
  23141. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_3_DL_HL",
  23142. "Senary TDM3 Hostless Playback",
  23143. 0, 0, 0, 0),
  23144. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_3_UL_HL",
  23145. "Senary TDM3 Hostless Capture",
  23146. 0, 0, 0, 0),
  23147. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_4_DL_HL",
  23148. "Senary TDM4 Hostless Playback",
  23149. 0, 0, 0, 0),
  23150. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_4_UL_HL",
  23151. "Senary TDM4 Hostless Capture",
  23152. 0, 0, 0, 0),
  23153. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_5_DL_HL",
  23154. "Senary TDM5 Hostless Playback",
  23155. 0, 0, 0, 0),
  23156. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_5_UL_HL",
  23157. "Senary TDM5 Hostless Capture",
  23158. 0, 0, 0, 0),
  23159. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_6_DL_HL",
  23160. "Senary TDM6 Hostless Playback",
  23161. 0, 0, 0, 0),
  23162. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_6_UL_HL",
  23163. "Senary TDM6 Hostless Capture",
  23164. 0, 0, 0, 0),
  23165. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_7_DL_HL",
  23166. "Senary TDM7 Hostless Playback",
  23167. 0, 0, 0, 0),
  23168. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_7_UL_HL",
  23169. "Senary TDM7 Hostless Capture",
  23170. 0, 0, 0, 0),
  23171. /* LSM */
  23172. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  23173. 0, 0, 0, 0),
  23174. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  23175. 0, 0, 0, 0),
  23176. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  23177. 0, 0, 0, 0),
  23178. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  23179. 0, 0, 0, 0),
  23180. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  23181. 0, 0, 0, 0),
  23182. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  23183. 0, 0, 0, 0),
  23184. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  23185. 0, 0, 0, 0),
  23186. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  23187. 0, 0, 0, 0),
  23188. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  23189. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  23190. /* Backend AIF */
  23191. /* Stream name equals to backend dai link stream name */
  23192. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  23193. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  23194. 0, 0, 0, 0),
  23195. SND_SOC_DAPM_AIF_OUT("PRI_SPDIF_RX", "Primary SPDIF Playback",
  23196. 0, 0, 0, 0),
  23197. SND_SOC_DAPM_AIF_IN("PRI_SPDIF_TX", "Primary SPDIF Capture",
  23198. 0, 0, 0, 0),
  23199. SND_SOC_DAPM_AIF_OUT("SEC_SPDIF_RX", "Secondary SPDIF Playback",
  23200. 0, 0, 0, 0),
  23201. SND_SOC_DAPM_AIF_IN("SEC_SPDIF_TX", "Secondary SPDIF Capture",
  23202. 0, 0, 0, 0),
  23203. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  23204. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  23205. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  23206. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  23207. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  23208. 0, 0, 0, 0),
  23209. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT1", "Display Port1 Playback",
  23210. 0, 0, 0, 0),
  23211. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  23212. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  23213. 0, 0, 0, 0),
  23214. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  23215. 0, 0, 0, 0),
  23216. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  23217. 0, 0, 0, 0),
  23218. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  23219. "Secondary MI2S Playback SD1",
  23220. 0, 0, 0, 0),
  23221. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  23222. 0, 0, 0, 0),
  23223. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  23224. 0, 0, 0, 0),
  23225. SND_SOC_DAPM_AIF_OUT("INT2_MI2S_RX", "INT2 MI2S Playback",
  23226. 0, 0, 0, 0),
  23227. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_RX", "INT3 MI2S Playback",
  23228. 0, 0, 0, 0),
  23229. SND_SOC_DAPM_AIF_OUT("INT5_MI2S_RX", "INT5 MI2S Playback",
  23230. 0, 0, 0, 0),
  23231. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  23232. 0, 0, 0, 0),
  23233. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_TX", "INT4 MI2S Capture",
  23234. 0, 0, 0, 0),
  23235. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  23236. 0, 0, 0, 0),
  23237. SND_SOC_DAPM_AIF_OUT("SEN_MI2S_RX", "Senary MI2S Playback",
  23238. 0, 0, 0, 0),
  23239. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  23240. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  23241. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  23242. 0, 0, 0, 0),
  23243. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  23244. 0, 0, 0, 0),
  23245. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  23246. 0, 0, 0, 0),
  23247. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_TX", "INT0 MI2S Capture",
  23248. 0, 0, 0, 0),
  23249. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  23250. 0, 0, 0, 0),
  23251. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  23252. 0, 0, 0, 0),
  23253. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  23254. 0, 0, 0, 0),
  23255. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  23256. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  23257. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  23258. 0, 0, 0, 0),
  23259. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  23260. 0, 0, 0, 0),
  23261. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  23262. 0, 0, 0, 0),
  23263. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  23264. 0, 0, 0, 0),
  23265. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  23266. 0, 0, 0, 0),
  23267. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  23268. 0, 0, 0, 0),
  23269. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  23270. 0, 0, 0, 0),
  23271. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  23272. 0, 0, 0, 0),
  23273. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  23274. 0, 0, 0, 0),
  23275. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  23276. 0, 0, 0, 0),
  23277. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  23278. 0, 0, 0, 0),
  23279. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  23280. 0, 0, 0, 0),
  23281. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  23282. 0, 0, 0, 0),
  23283. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  23284. 0, 0, 0, 0),
  23285. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  23286. 0, 0, 0, 0),
  23287. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  23288. 0, 0, 0, 0),
  23289. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  23290. 0, 0, 0, 0),
  23291. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  23292. 0, 0, 0, 0),
  23293. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  23294. 0, 0, 0, 0),
  23295. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  23296. 0, 0, 0, 0),
  23297. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  23298. 0, 0, 0, 0),
  23299. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  23300. 0, 0, 0, 0),
  23301. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  23302. 0, 0, 0, 0),
  23303. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  23304. 0, 0, 0, 0),
  23305. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  23306. 0, 0, 0, 0),
  23307. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  23308. 0, 0, 0, 0),
  23309. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  23310. 0, 0, 0, 0),
  23311. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  23312. 0, 0, 0, 0),
  23313. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  23314. 0, 0, 0, 0),
  23315. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  23316. 0, 0, 0, 0),
  23317. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  23318. 0, 0, 0, 0),
  23319. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  23320. 0, 0, 0, 0),
  23321. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  23322. 0, 0, 0, 0),
  23323. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  23324. 0, 0, 0, 0),
  23325. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  23326. 0, 0, 0, 0),
  23327. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  23328. 0, 0, 0, 0),
  23329. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  23330. 0, 0, 0, 0),
  23331. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  23332. 0, 0, 0, 0),
  23333. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  23334. 0, 0, 0, 0),
  23335. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  23336. 0, 0, 0, 0),
  23337. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  23338. 0, 0, 0, 0),
  23339. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  23340. 0, 0, 0, 0),
  23341. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  23342. 0, 0, 0, 0),
  23343. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  23344. 0, 0, 0, 0),
  23345. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  23346. 0, 0, 0, 0),
  23347. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  23348. 0, 0, 0, 0),
  23349. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  23350. 0, 0, 0, 0),
  23351. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  23352. 0, 0, 0, 0),
  23353. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  23354. 0, 0, 0, 0),
  23355. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  23356. 0, 0, 0, 0),
  23357. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  23358. 0, 0, 0, 0),
  23359. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  23360. 0, 0, 0, 0),
  23361. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  23362. 0, 0, 0, 0),
  23363. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  23364. 0, 0, 0, 0),
  23365. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  23366. 0, 0, 0, 0),
  23367. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  23368. 0, 0, 0, 0),
  23369. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  23370. 0, 0, 0, 0),
  23371. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  23372. 0, 0, 0, 0),
  23373. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  23374. 0, 0, 0, 0),
  23375. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  23376. 0, 0, 0, 0),
  23377. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  23378. 0, 0, 0, 0),
  23379. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  23380. 0, 0, 0, 0),
  23381. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  23382. 0, 0, 0, 0),
  23383. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  23384. 0, 0, 0, 0),
  23385. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  23386. 0, 0, 0, 0),
  23387. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  23388. 0, 0, 0, 0),
  23389. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  23390. 0, 0, 0, 0),
  23391. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  23392. 0, 0, 0, 0),
  23393. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  23394. 0, 0, 0, 0),
  23395. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  23396. 0, 0, 0, 0),
  23397. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  23398. 0, 0, 0, 0),
  23399. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  23400. 0, 0, 0, 0),
  23401. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  23402. 0, 0, 0, 0),
  23403. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_0", "Quinary TDM0 Playback",
  23404. 0, 0, 0, 0),
  23405. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_0", "Quinary TDM0 Capture",
  23406. 0, 0, 0, 0),
  23407. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_1", "Quinary TDM1 Playback",
  23408. 0, 0, 0, 0),
  23409. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_1", "Quinary TDM1 Capture",
  23410. 0, 0, 0, 0),
  23411. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_2", "Quinary TDM2 Playback",
  23412. 0, 0, 0, 0),
  23413. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_2", "Quinary TDM2 Capture",
  23414. 0, 0, 0, 0),
  23415. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_3", "Quinary TDM3 Playback",
  23416. 0, 0, 0, 0),
  23417. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_3", "Quinary TDM3 Capture",
  23418. 0, 0, 0, 0),
  23419. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_4", "Quinary TDM4 Playback",
  23420. 0, 0, 0, 0),
  23421. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_4", "Quinary TDM4 Capture",
  23422. 0, 0, 0, 0),
  23423. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_5", "Quinary TDM5 Playback",
  23424. 0, 0, 0, 0),
  23425. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_5", "Quinary TDM5 Capture",
  23426. 0, 0, 0, 0),
  23427. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_6", "Quinary TDM6 Playback",
  23428. 0, 0, 0, 0),
  23429. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_6", "Quinary TDM6 Capture",
  23430. 0, 0, 0, 0),
  23431. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_7", "Quinary TDM7 Playback",
  23432. 0, 0, 0, 0),
  23433. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_7", "Quinary TDM7 Capture",
  23434. 0, 0, 0, 0),
  23435. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_0", "Senary TDM0 Playback",
  23436. 0, 0, 0, 0),
  23437. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_0", "Senary TDM0 Capture",
  23438. 0, 0, 0, 0),
  23439. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_1", "Senary TDM1 Playback",
  23440. 0, 0, 0, 0),
  23441. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_1", "Senary TDM1 Capture",
  23442. 0, 0, 0, 0),
  23443. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_2", "Senary TDM2 Playback",
  23444. 0, 0, 0, 0),
  23445. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_2", "Senary TDM2 Capture",
  23446. 0, 0, 0, 0),
  23447. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_3", "Senary TDM3 Playback",
  23448. 0, 0, 0, 0),
  23449. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_3", "Senary TDM3 Capture",
  23450. 0, 0, 0, 0),
  23451. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_4", "Senary TDM4 Playback",
  23452. 0, 0, 0, 0),
  23453. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_4", "Senary TDM4 Capture",
  23454. 0, 0, 0, 0),
  23455. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_5", "Senary TDM5 Playback",
  23456. 0, 0, 0, 0),
  23457. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_5", "Senary TDM5 Capture",
  23458. 0, 0, 0, 0),
  23459. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_6", "Senary TDM6 Playback",
  23460. 0, 0, 0, 0),
  23461. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_6", "Senary TDM6 Capture",
  23462. 0, 0, 0, 0),
  23463. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_7", "Senary TDM7 Playback",
  23464. 0, 0, 0, 0),
  23465. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_7", "Senary TDM7 Capture",
  23466. 0, 0, 0, 0),
  23467. SND_SOC_DAPM_AIF_OUT("PRI_META_MI2S_RX", "Primary META MI2S Playback",
  23468. 0, 0, 0, 0),
  23469. SND_SOC_DAPM_AIF_OUT("SEC_META_MI2S_RX", "Secondary META MI2S Playback",
  23470. 0, 0, 0, 0),
  23471. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_0", "WSA CDC DMA0 Playback",
  23472. 0, 0, 0, 0),
  23473. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_0", "WSA CDC DMA0 Capture",
  23474. 0, 0, 0, 0),
  23475. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_1", "WSA CDC DMA1 Playback",
  23476. 0, 0, 0, 0),
  23477. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_1", "WSA CDC DMA1 Capture",
  23478. 0, 0, 0, 0),
  23479. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_2", "WSA CDC DMA2 Capture",
  23480. 0, 0, 0, 0),
  23481. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_0", "VA CDC DMA0 Capture",
  23482. 0, 0, 0, 0),
  23483. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_1", "VA CDC DMA1 Capture",
  23484. 0, 0, 0, 0),
  23485. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_2", "VA CDC DMA2 Capture",
  23486. 0, 0, 0, 0),
  23487. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_0", "RX CDC DMA0 Playback",
  23488. 0, 0, 0, 0),
  23489. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_0", "TX CDC DMA0 Capture",
  23490. 0, 0, 0, 0),
  23491. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_1", "RX CDC DMA1 Playback",
  23492. 0, 0, 0, 0),
  23493. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_1", "TX CDC DMA1 Capture",
  23494. 0, 0, 0, 0),
  23495. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_2", "RX CDC DMA2 Playback",
  23496. 0, 0, 0, 0),
  23497. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_2", "TX CDC DMA2 Capture",
  23498. 0, 0, 0, 0),
  23499. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_3", "RX CDC DMA3 Playback",
  23500. 0, 0, 0, 0),
  23501. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_3", "TX CDC DMA3 Capture",
  23502. 0, 0, 0, 0),
  23503. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_4", "RX CDC DMA4 Playback",
  23504. 0, 0, 0, 0),
  23505. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_4", "TX CDC DMA4 Capture",
  23506. 0, 0, 0, 0),
  23507. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_5", "RX CDC DMA5 Playback",
  23508. 0, 0, 0, 0),
  23509. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_5", "TX CDC DMA5 Capture",
  23510. 0, 0, 0, 0),
  23511. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_6", "RX CDC DMA6 Playback",
  23512. 0, 0, 0, 0),
  23513. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_7", "RX CDC DMA7 Playback",
  23514. 0, 0, 0, 0),
  23515. /* incall */
  23516. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  23517. 0, 0, 0, 0),
  23518. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  23519. 0, 0, 0, 0),
  23520. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  23521. 0, 0, 0, 0),
  23522. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  23523. 0, 0, 0, 0),
  23524. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  23525. 0, 0, 0, 0),
  23526. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  23527. 0, 0, 0, 0),
  23528. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  23529. 0, 0, 0, 0),
  23530. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  23531. 0, 0, 0, 0),
  23532. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  23533. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  23534. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  23535. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  23536. 0, 0, 0, 0),
  23537. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  23538. 0, 0, 0, 0),
  23539. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  23540. 0, 0, 0, 0),
  23541. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  23542. 0, 0, 0, 0),
  23543. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  23544. 0, 0, 0, 0),
  23545. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  23546. 0, 0, 0, 0),
  23547. SND_SOC_DAPM_AIF_OUT("QUIN_AUX_PCM_RX", "Quin AUX PCM Playback",
  23548. 0, 0, 0, 0),
  23549. SND_SOC_DAPM_AIF_IN("QUIN_AUX_PCM_TX", "Quin AUX PCM Capture",
  23550. 0, 0, 0, 0),
  23551. SND_SOC_DAPM_AIF_OUT("SEN_AUX_PCM_RX", "Sen AUX PCM Playback",
  23552. 0, 0, 0, 0),
  23553. SND_SOC_DAPM_AIF_IN("SEN_AUX_PCM_TX", "Sen AUX PCM Capture",
  23554. 0, 0, 0, 0),
  23555. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  23556. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  23557. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  23558. 0, 0, 0, 0),
  23559. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  23560. 0, 0, 0, 0),
  23561. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  23562. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  23563. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  23564. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  23565. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  23566. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  23567. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  23568. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  23569. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  23570. /* In- call recording */
  23571. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  23572. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  23573. SND_SOC_DAPM_AIF_IN("AFE_LOOPBACK_TX", "AFE Loopback Capture",
  23574. 0, 0, 0, 0),
  23575. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  23576. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  23577. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  23578. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  23579. SND_SOC_DAPM_AIF_OUT("SLIMBUS_9_RX", "Slimbus9 Playback", 0, 0, 0, 0),
  23580. SND_SOC_DAPM_AIF_IN("SLIMBUS_9_TX", "Slimbus9 Capture", 0, 0, 0, 0),
  23581. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  23582. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  23583. /* Switch Definitions */
  23584. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  23585. &slim_fm_switch_mixer_controls),
  23586. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  23587. &slim1_fm_switch_mixer_controls),
  23588. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  23589. &slim3_fm_switch_mixer_controls),
  23590. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  23591. &slim4_fm_switch_mixer_controls),
  23592. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  23593. &slim6_fm_switch_mixer_controls),
  23594. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23595. &pcm_rx_switch_mixer_controls),
  23596. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23597. &int0_mi2s_rx_switch_mixer_controls),
  23598. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23599. &int4_mi2s_rx_switch_mixer_controls),
  23600. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23601. &pri_mi2s_rx_switch_mixer_controls),
  23602. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23603. &sec_mi2s_rx_switch_mixer_controls),
  23604. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23605. &tert_mi2s_rx_switch_mixer_controls),
  23606. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23607. &quat_mi2s_rx_switch_mixer_controls),
  23608. SND_SOC_DAPM_SWITCH("QUIN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23609. &quin_mi2s_rx_switch_mixer_controls),
  23610. SND_SOC_DAPM_SWITCH("SCO_SLIM7_DL_HL", SND_SOC_NOPM, 0, 0,
  23611. &sco_slim7_switch_mixer_controls),
  23612. SND_SOC_DAPM_SWITCH("SEN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23613. &sen_mi2s_rx_switch_mixer_controls),
  23614. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  23615. &hfp_pri_aux_switch_mixer_controls),
  23616. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  23617. &hfp_aux_switch_mixer_controls),
  23618. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  23619. &hfp_int_switch_mixer_controls),
  23620. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  23621. &hfp_slim7_switch_mixer_controls),
  23622. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  23623. &usb_switch_mixer_controls),
  23624. SND_SOC_DAPM_SWITCH("A2DP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  23625. &a2dp_slim7_switch_mixer_controls),
  23626. SND_SOC_DAPM_SWITCH("WSA_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  23627. &cdc_dma_wsa_switch_mixer_controls),
  23628. SND_SOC_DAPM_SWITCH("RX_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  23629. &cdc_dma_rx_switch_mixer_controls),
  23630. SND_SOC_DAPM_SWITCH("RX_CDC_DMA_RX_1_DL_HL", SND_SOC_NOPM, 0, 0,
  23631. &cdc_dma_rx_1_switch_mixer_controls),
  23632. /* Mixer definitions */
  23633. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23634. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  23635. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23636. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  23637. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23638. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  23639. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23640. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  23641. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23642. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  23643. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23644. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  23645. SND_SOC_DAPM_MIXER("SLIMBUS_9_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23646. slimbus_9_rx_mixer_controls, ARRAY_SIZE(slimbus_9_rx_mixer_controls)),
  23647. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  23648. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  23649. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  23650. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  23651. SND_SOC_DAPM_MIXER("DISPLAY_PORT1 Mixer", SND_SOC_NOPM, 0, 0,
  23652. display_port1_mixer_controls, ARRAY_SIZE(display_port1_mixer_controls)),
  23653. SND_SOC_DAPM_MIXER("PRI_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23654. pri_spdif_rx_mixer_controls, ARRAY_SIZE(pri_spdif_rx_mixer_controls)),
  23655. SND_SOC_DAPM_MIXER("SEC_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23656. sec_spdif_rx_mixer_controls, ARRAY_SIZE(sec_spdif_rx_mixer_controls)),
  23657. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23658. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  23659. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23660. quaternary_mi2s_rx_mixer_controls,
  23661. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  23662. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23663. tertiary_mi2s_rx_mixer_controls,
  23664. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  23665. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23666. secondary_mi2s_rx_mixer_controls,
  23667. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  23668. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23669. secondary_mi2s_rx2_mixer_controls,
  23670. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  23671. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23672. primary_mi2s_rx_mixer_controls,
  23673. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  23674. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23675. int0_mi2s_rx_mixer_controls,
  23676. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  23677. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23678. int4_mi2s_rx_mixer_controls,
  23679. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  23680. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23681. quinary_mi2s_rx_mixer_controls,
  23682. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  23683. SND_SOC_DAPM_MIXER("SEN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23684. senary_mi2s_rx_mixer_controls,
  23685. ARRAY_SIZE(senary_mi2s_rx_mixer_controls)),
  23686. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23687. pri_tdm_rx_0_mixer_controls,
  23688. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  23689. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23690. pri_tdm_rx_1_mixer_controls,
  23691. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  23692. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23693. pri_tdm_rx_2_mixer_controls,
  23694. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  23695. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23696. pri_tdm_rx_3_mixer_controls,
  23697. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  23698. SND_SOC_DAPM_MIXER("PRI_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23699. pri_tdm_tx_0_mixer_controls,
  23700. ARRAY_SIZE(pri_tdm_tx_0_mixer_controls)),
  23701. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23702. sec_tdm_rx_0_mixer_controls,
  23703. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  23704. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23705. sec_tdm_rx_1_mixer_controls,
  23706. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  23707. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23708. sec_tdm_rx_2_mixer_controls,
  23709. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  23710. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23711. sec_tdm_rx_3_mixer_controls,
  23712. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  23713. SND_SOC_DAPM_MIXER("SEC_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23714. sec_tdm_tx_0_mixer_controls,
  23715. ARRAY_SIZE(sec_tdm_tx_0_mixer_controls)),
  23716. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23717. tert_tdm_rx_0_mixer_controls,
  23718. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  23719. SND_SOC_DAPM_MIXER("TERT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23720. tert_tdm_tx_0_mixer_controls,
  23721. ARRAY_SIZE(tert_tdm_tx_0_mixer_controls)),
  23722. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23723. tert_tdm_rx_1_mixer_controls,
  23724. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  23725. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23726. tert_tdm_rx_2_mixer_controls,
  23727. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  23728. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23729. tert_tdm_rx_3_mixer_controls,
  23730. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  23731. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23732. tert_tdm_rx_4_mixer_controls,
  23733. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  23734. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23735. quat_tdm_rx_0_mixer_controls,
  23736. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  23737. SND_SOC_DAPM_MIXER("QUAT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23738. quat_tdm_tx_0_mixer_controls,
  23739. ARRAY_SIZE(quat_tdm_tx_0_mixer_controls)),
  23740. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23741. quat_tdm_rx_1_mixer_controls,
  23742. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  23743. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23744. quat_tdm_rx_2_mixer_controls,
  23745. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  23746. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23747. quat_tdm_rx_3_mixer_controls,
  23748. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  23749. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23750. quin_tdm_rx_0_mixer_controls,
  23751. ARRAY_SIZE(quin_tdm_rx_0_mixer_controls)),
  23752. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23753. quin_tdm_tx_0_mixer_controls,
  23754. ARRAY_SIZE(quin_tdm_tx_0_mixer_controls)),
  23755. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23756. quin_tdm_rx_1_mixer_controls,
  23757. ARRAY_SIZE(quin_tdm_rx_1_mixer_controls)),
  23758. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23759. quin_tdm_tx_1_mixer_controls,
  23760. ARRAY_SIZE(quin_tdm_tx_1_mixer_controls)),
  23761. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23762. quin_tdm_rx_2_mixer_controls,
  23763. ARRAY_SIZE(quin_tdm_rx_2_mixer_controls)),
  23764. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23765. quin_tdm_tx_2_mixer_controls,
  23766. ARRAY_SIZE(quin_tdm_tx_2_mixer_controls)),
  23767. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23768. quin_tdm_rx_3_mixer_controls,
  23769. ARRAY_SIZE(quin_tdm_rx_3_mixer_controls)),
  23770. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23771. quin_tdm_tx_3_mixer_controls,
  23772. ARRAY_SIZE(quin_tdm_tx_3_mixer_controls)),
  23773. SND_SOC_DAPM_MIXER("SEN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23774. sen_tdm_tx_0_mixer_controls,
  23775. ARRAY_SIZE(sen_tdm_tx_0_mixer_controls)),
  23776. SND_SOC_DAPM_MIXER("SEN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23777. sen_tdm_rx_0_mixer_controls,
  23778. ARRAY_SIZE(sen_tdm_rx_0_mixer_controls)),
  23779. SND_SOC_DAPM_MIXER("SEN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23780. sen_tdm_rx_1_mixer_controls,
  23781. ARRAY_SIZE(sen_tdm_rx_1_mixer_controls)),
  23782. SND_SOC_DAPM_MIXER("SEN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23783. sen_tdm_rx_2_mixer_controls,
  23784. ARRAY_SIZE(sen_tdm_rx_2_mixer_controls)),
  23785. SND_SOC_DAPM_MIXER("SEN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23786. sen_tdm_rx_3_mixer_controls,
  23787. ARRAY_SIZE(sen_tdm_rx_3_mixer_controls)),
  23788. SND_SOC_DAPM_MIXER("PRI_META_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23789. pri_meta_mi2s_rx_mixer_controls,
  23790. ARRAY_SIZE(pri_meta_mi2s_rx_mixer_controls)),
  23791. SND_SOC_DAPM_MIXER("SEC_META_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23792. sec_meta_mi2s_rx_mixer_controls,
  23793. ARRAY_SIZE(sec_meta_mi2s_rx_mixer_controls)),
  23794. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23795. wsa_cdc_dma_rx_0_mixer_controls,
  23796. ARRAY_SIZE(wsa_cdc_dma_rx_0_mixer_controls)),
  23797. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23798. wsa_cdc_dma_rx_1_mixer_controls,
  23799. ARRAY_SIZE(wsa_cdc_dma_rx_1_mixer_controls)),
  23800. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23801. rx_cdc_dma_rx_0_mixer_controls,
  23802. ARRAY_SIZE(rx_cdc_dma_rx_0_mixer_controls)),
  23803. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23804. rx_cdc_dma_rx_1_mixer_controls,
  23805. ARRAY_SIZE(rx_cdc_dma_rx_1_mixer_controls)),
  23806. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23807. rx_cdc_dma_rx_2_mixer_controls,
  23808. ARRAY_SIZE(rx_cdc_dma_rx_2_mixer_controls)),
  23809. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23810. rx_cdc_dma_rx_3_mixer_controls,
  23811. ARRAY_SIZE(rx_cdc_dma_rx_3_mixer_controls)),
  23812. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23813. rx_cdc_dma_rx_4_mixer_controls,
  23814. ARRAY_SIZE(rx_cdc_dma_rx_4_mixer_controls)),
  23815. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_5 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23816. rx_cdc_dma_rx_5_mixer_controls,
  23817. ARRAY_SIZE(rx_cdc_dma_rx_5_mixer_controls)),
  23818. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_6 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23819. rx_cdc_dma_rx_6_mixer_controls,
  23820. ARRAY_SIZE(rx_cdc_dma_rx_6_mixer_controls)),
  23821. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_7 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23822. rx_cdc_dma_rx_7_mixer_controls,
  23823. ARRAY_SIZE(rx_cdc_dma_rx_7_mixer_controls)),
  23824. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  23825. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  23826. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  23827. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  23828. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  23829. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  23830. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  23831. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  23832. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  23833. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  23834. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  23835. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  23836. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  23837. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  23838. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  23839. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  23840. SND_SOC_DAPM_MIXER("MultiMedia10 Mixer", SND_SOC_NOPM, 0, 0,
  23841. mmul10_mixer_controls, ARRAY_SIZE(mmul10_mixer_controls)),
  23842. SND_SOC_DAPM_MIXER("MultiMedia16 Mixer", SND_SOC_NOPM, 0, 0,
  23843. mmul16_mixer_controls, ARRAY_SIZE(mmul16_mixer_controls)),
  23844. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  23845. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  23846. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  23847. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  23848. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  23849. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  23850. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  23851. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  23852. SND_SOC_DAPM_MIXER("MultiMedia21 Mixer", SND_SOC_NOPM, 0, 0,
  23853. mmul21_mixer_controls, ARRAY_SIZE(mmul21_mixer_controls)),
  23854. SND_SOC_DAPM_MIXER("MultiMedia22 Mixer", SND_SOC_NOPM, 0, 0,
  23855. mmul22_mixer_controls, ARRAY_SIZE(mmul22_mixer_controls)),
  23856. SND_SOC_DAPM_MIXER("MultiMedia23 Mixer", SND_SOC_NOPM, 0, 0,
  23857. mmul23_mixer_controls, ARRAY_SIZE(mmul23_mixer_controls)),
  23858. SND_SOC_DAPM_MIXER("MultiMedia24 Mixer", SND_SOC_NOPM, 0, 0,
  23859. mmul24_mixer_controls, ARRAY_SIZE(mmul24_mixer_controls)),
  23860. SND_SOC_DAPM_MIXER("MultiMedia25 Mixer", SND_SOC_NOPM, 0, 0,
  23861. mmul25_mixer_controls, ARRAY_SIZE(mmul25_mixer_controls)),
  23862. SND_SOC_DAPM_MIXER("MultiMedia27 Mixer", SND_SOC_NOPM, 0, 0,
  23863. mmul27_mixer_controls, ARRAY_SIZE(mmul27_mixer_controls)),
  23864. SND_SOC_DAPM_MIXER("MultiMedia28 Mixer", SND_SOC_NOPM, 0, 0,
  23865. mmul28_mixer_controls, ARRAY_SIZE(mmul28_mixer_controls)),
  23866. SND_SOC_DAPM_MIXER("MultiMedia29 Mixer", SND_SOC_NOPM, 0, 0,
  23867. mmul29_mixer_controls, ARRAY_SIZE(mmul29_mixer_controls)),
  23868. SND_SOC_DAPM_MIXER("MultiMedia30 Mixer", SND_SOC_NOPM, 0, 0,
  23869. mmul30_mixer_controls, ARRAY_SIZE(mmul30_mixer_controls)),
  23870. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23871. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  23872. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23873. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  23874. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23875. tert_auxpcm_rx_mixer_controls,
  23876. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  23877. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23878. quat_auxpcm_rx_mixer_controls,
  23879. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  23880. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23881. quin_auxpcm_rx_mixer_controls,
  23882. ARRAY_SIZE(quin_auxpcm_rx_mixer_controls)),
  23883. SND_SOC_DAPM_MIXER("SEN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23884. sen_auxpcm_rx_mixer_controls,
  23885. ARRAY_SIZE(sen_auxpcm_rx_mixer_controls)),
  23886. /* incall */
  23887. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  23888. incall_music_delivery_mixer_controls,
  23889. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  23890. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23891. incall_music2_delivery_mixer_controls,
  23892. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  23893. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23894. slimbus_4_rx_mixer_controls,
  23895. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  23896. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23897. slimbus_6_rx_mixer_controls,
  23898. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  23899. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23900. usb_audio_rx_mixer_controls,
  23901. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  23902. /* Voice Mixer */
  23903. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  23904. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  23905. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  23906. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  23907. SND_SOC_NOPM, 0, 0,
  23908. sec_i2s_rx_voice_mixer_controls,
  23909. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  23910. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  23911. SND_SOC_NOPM, 0, 0,
  23912. sec_mi2s_rx_voice_mixer_controls,
  23913. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  23914. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  23915. SND_SOC_NOPM, 0, 0,
  23916. slimbus_rx_voice_mixer_controls,
  23917. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  23918. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  23919. SND_SOC_NOPM, 0, 0,
  23920. bt_sco_rx_voice_mixer_controls,
  23921. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  23922. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  23923. SND_SOC_NOPM, 0, 0,
  23924. afe_pcm_rx_voice_mixer_controls,
  23925. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  23926. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  23927. SND_SOC_NOPM, 0, 0,
  23928. aux_pcm_rx_voice_mixer_controls,
  23929. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  23930. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  23931. SND_SOC_NOPM, 0, 0,
  23932. sec_aux_pcm_rx_voice_mixer_controls,
  23933. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  23934. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  23935. SND_SOC_NOPM, 0, 0,
  23936. tert_aux_pcm_rx_voice_mixer_controls,
  23937. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  23938. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  23939. SND_SOC_NOPM, 0, 0,
  23940. quat_aux_pcm_rx_voice_mixer_controls,
  23941. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  23942. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX_Voice Mixer",
  23943. SND_SOC_NOPM, 0, 0,
  23944. quin_aux_pcm_rx_voice_mixer_controls,
  23945. ARRAY_SIZE(quin_aux_pcm_rx_voice_mixer_controls)),
  23946. SND_SOC_DAPM_MIXER("SEN_AUX_PCM_RX_Voice Mixer",
  23947. SND_SOC_NOPM, 0, 0,
  23948. sen_aux_pcm_rx_voice_mixer_controls,
  23949. ARRAY_SIZE(sen_aux_pcm_rx_voice_mixer_controls)),
  23950. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  23951. SND_SOC_NOPM, 0, 0,
  23952. hdmi_rx_voice_mixer_controls,
  23953. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  23954. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  23955. SND_SOC_NOPM, 0, 0,
  23956. mi2s_rx_voice_mixer_controls,
  23957. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  23958. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  23959. SND_SOC_NOPM, 0, 0,
  23960. pri_mi2s_rx_voice_mixer_controls,
  23961. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  23962. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  23963. SND_SOC_NOPM, 0, 0,
  23964. int0_mi2s_rx_voice_mixer_controls,
  23965. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  23966. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  23967. SND_SOC_NOPM, 0, 0,
  23968. int4_mi2s_rx_voice_mixer_controls,
  23969. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  23970. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  23971. SND_SOC_NOPM, 0, 0,
  23972. tert_mi2s_rx_voice_mixer_controls,
  23973. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  23974. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  23975. SND_SOC_NOPM, 0, 0,
  23976. quat_mi2s_rx_voice_mixer_controls,
  23977. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  23978. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  23979. SND_SOC_NOPM, 0, 0,
  23980. quin_mi2s_rx_voice_mixer_controls,
  23981. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  23982. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0_Voice Mixer",
  23983. SND_SOC_NOPM, 0, 0,
  23984. pri_tdm_rx_0_voice_mixer_controls,
  23985. ARRAY_SIZE(pri_tdm_rx_0_voice_mixer_controls)),
  23986. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1_Voice Mixer",
  23987. SND_SOC_NOPM, 0, 0,
  23988. pri_tdm_rx_1_voice_mixer_controls,
  23989. ARRAY_SIZE(pri_tdm_rx_1_voice_mixer_controls)),
  23990. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2_Voice Mixer",
  23991. SND_SOC_NOPM, 0, 0,
  23992. pri_tdm_rx_2_voice_mixer_controls,
  23993. ARRAY_SIZE(pri_tdm_rx_2_voice_mixer_controls)),
  23994. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3_Voice Mixer",
  23995. SND_SOC_NOPM, 0, 0,
  23996. pri_tdm_rx_3_voice_mixer_controls,
  23997. ARRAY_SIZE(pri_tdm_rx_3_voice_mixer_controls)),
  23998. SND_SOC_DAPM_MIXER("SEN_MI2S_RX_Voice Mixer",
  23999. SND_SOC_NOPM, 0, 0,
  24000. sen_mi2s_rx_voice_mixer_controls,
  24001. ARRAY_SIZE(sen_mi2s_rx_voice_mixer_controls)),
  24002. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  24003. SND_SOC_NOPM, 0, 0,
  24004. quat_tdm_rx_2_voice_mixer_controls,
  24005. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  24006. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2_Voice Mixer",
  24007. SND_SOC_NOPM, 0, 0,
  24008. quin_tdm_rx_2_voice_mixer_controls,
  24009. ARRAY_SIZE(quin_tdm_rx_2_voice_mixer_controls)),
  24010. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0_Voice Mixer",
  24011. SND_SOC_NOPM, 0, 0,
  24012. wsa_cdc_dma_rx_0_voice_mixer_controls,
  24013. ARRAY_SIZE(wsa_cdc_dma_rx_0_voice_mixer_controls)),
  24014. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0_Voice Mixer",
  24015. SND_SOC_NOPM, 0, 0,
  24016. rx_cdc_dma_rx_0_voice_mixer_controls,
  24017. ARRAY_SIZE(rx_cdc_dma_rx_0_voice_mixer_controls)),
  24018. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1_Voice Mixer",
  24019. SND_SOC_NOPM, 0, 0,
  24020. rx_cdc_dma_rx_1_voice_mixer_controls,
  24021. ARRAY_SIZE(rx_cdc_dma_rx_1_voice_mixer_controls)),
  24022. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  24023. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  24024. ARRAY_SIZE(tx_voip_mixer_controls)),
  24025. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  24026. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  24027. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  24028. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  24029. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  24030. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  24031. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24032. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  24033. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24034. int_bt_a2dp_rx_mixer_controls,
  24035. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  24036. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24037. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  24038. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24039. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  24040. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  24041. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  24042. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  24043. tx_voice2_stub_mixer_controls,
  24044. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  24045. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  24046. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  24047. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  24048. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  24049. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  24050. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  24051. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  24052. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  24053. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  24054. SND_SOC_NOPM, 0, 0,
  24055. slimbus_6_rx_voice_mixer_controls,
  24056. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  24057. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  24058. slimbus_7_rx_voice_mixer_controls,
  24059. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  24060. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  24061. slimbus_8_rx_voice_mixer_controls,
  24062. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  24063. /* port mixer */
  24064. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  24065. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  24066. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  24067. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  24068. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  24069. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  24070. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  24071. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  24072. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  24073. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  24074. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  24075. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  24076. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  24077. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  24078. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  24079. SND_SOC_DAPM_MIXER("QUIN_AUXPCM_RX Port Mixer",
  24080. SND_SOC_NOPM, 0, 0, quin_auxpcm_rx_port_mixer_controls,
  24081. ARRAY_SIZE(quin_auxpcm_rx_port_mixer_controls)),
  24082. SND_SOC_DAPM_MIXER("SEN_AUXPCM_RX Port Mixer",
  24083. SND_SOC_NOPM, 0, 0, sen_auxpcm_rx_port_mixer_controls,
  24084. ARRAY_SIZE(sen_auxpcm_rx_port_mixer_controls)),
  24085. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24086. sbus_1_rx_port_mixer_controls,
  24087. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  24088. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24089. bt_sco_rx_port_mixer_controls,
  24090. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  24091. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  24092. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  24093. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  24094. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  24095. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  24096. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  24097. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  24098. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  24099. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  24100. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1 Port Mixer",
  24101. SND_SOC_NOPM, 0, 0, display_port_rx1_port_mixer_controls,
  24102. ARRAY_SIZE(display_port_rx1_port_mixer_controls)),
  24103. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  24104. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  24105. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  24106. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  24107. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  24108. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  24109. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  24110. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  24111. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  24112. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24113. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  24114. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24115. primary_mi2s_rx_port_mixer_controls,
  24116. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  24117. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24118. sec_mi2s_rx_port_mixer_controls,
  24119. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  24120. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24121. tert_mi2s_rx_port_mixer_controls,
  24122. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  24123. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24124. quat_mi2s_rx_port_mixer_controls,
  24125. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  24126. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24127. quin_mi2s_rx_port_mixer_controls,
  24128. ARRAY_SIZE(quin_mi2s_rx_port_mixer_controls)),
  24129. SND_SOC_DAPM_MIXER("SEN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24130. sen_mi2s_rx_port_mixer_controls,
  24131. ARRAY_SIZE(sen_mi2s_rx_port_mixer_controls)),
  24132. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24133. pri_tdm_rx_0_port_mixer_controls,
  24134. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  24135. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24136. pri_tdm_rx_1_port_mixer_controls,
  24137. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  24138. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24139. pri_tdm_rx_2_port_mixer_controls,
  24140. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  24141. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24142. pri_tdm_rx_3_port_mixer_controls,
  24143. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  24144. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24145. sec_tdm_rx_0_port_mixer_controls,
  24146. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  24147. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24148. sec_tdm_rx_1_port_mixer_controls,
  24149. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  24150. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24151. sec_tdm_rx_2_port_mixer_controls,
  24152. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  24153. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24154. sec_tdm_rx_3_port_mixer_controls,
  24155. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  24156. SND_SOC_DAPM_MIXER("SEC_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  24157. sec_tdm_rx_7_port_mixer_controls,
  24158. ARRAY_SIZE(sec_tdm_rx_7_port_mixer_controls)),
  24159. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24160. tert_tdm_rx_0_port_mixer_controls,
  24161. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  24162. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24163. tert_tdm_rx_1_port_mixer_controls,
  24164. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  24165. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24166. tert_tdm_rx_2_port_mixer_controls,
  24167. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  24168. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24169. tert_tdm_rx_3_port_mixer_controls,
  24170. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  24171. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24172. quat_tdm_rx_0_port_mixer_controls,
  24173. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  24174. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24175. quat_tdm_rx_1_port_mixer_controls,
  24176. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  24177. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24178. quat_tdm_rx_2_port_mixer_controls,
  24179. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  24180. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24181. quat_tdm_rx_3_port_mixer_controls,
  24182. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  24183. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  24184. quat_tdm_rx_7_port_mixer_controls,
  24185. ARRAY_SIZE(quat_tdm_rx_7_port_mixer_controls)),
  24186. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24187. quin_tdm_rx_0_port_mixer_controls,
  24188. ARRAY_SIZE(quin_tdm_rx_0_port_mixer_controls)),
  24189. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24190. quin_tdm_rx_1_port_mixer_controls,
  24191. ARRAY_SIZE(quin_tdm_rx_1_port_mixer_controls)),
  24192. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24193. quin_tdm_rx_2_port_mixer_controls,
  24194. ARRAY_SIZE(quin_tdm_rx_2_port_mixer_controls)),
  24195. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24196. quin_tdm_rx_3_port_mixer_controls,
  24197. ARRAY_SIZE(quin_tdm_rx_3_port_mixer_controls)),
  24198. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  24199. quin_tdm_rx_7_port_mixer_controls,
  24200. ARRAY_SIZE(quin_tdm_rx_7_port_mixer_controls)),
  24201. SND_SOC_DAPM_MIXER("SEN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24202. sen_tdm_rx_0_port_mixer_controls,
  24203. ARRAY_SIZE(sen_tdm_rx_0_port_mixer_controls)),
  24204. SND_SOC_DAPM_MIXER("SEN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24205. sen_tdm_rx_1_port_mixer_controls,
  24206. ARRAY_SIZE(sen_tdm_rx_1_port_mixer_controls)),
  24207. SND_SOC_DAPM_MIXER("SEN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24208. sen_tdm_rx_2_port_mixer_controls,
  24209. ARRAY_SIZE(sen_tdm_rx_2_port_mixer_controls)),
  24210. SND_SOC_DAPM_MIXER("SEN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24211. sen_tdm_rx_3_port_mixer_controls,
  24212. ARRAY_SIZE(sen_tdm_rx_3_port_mixer_controls)),
  24213. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24214. int0_mi2s_rx_port_mixer_controls,
  24215. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  24216. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24217. int4_mi2s_rx_port_mixer_controls,
  24218. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  24219. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24220. wsa_cdc_dma_rx_0_port_mixer_controls,
  24221. ARRAY_SIZE(wsa_cdc_dma_rx_0_port_mixer_controls)),
  24222. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24223. rx_cdc_dma_rx_0_port_mixer_controls,
  24224. ARRAY_SIZE(rx_cdc_dma_rx_0_port_mixer_controls)),
  24225. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24226. rx_cdc_dma_rx_1_port_mixer_controls,
  24227. ARRAY_SIZE(rx_cdc_dma_rx_1_port_mixer_controls)),
  24228. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  24229. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  24230. ARRAY_SIZE(tx_qchat_mixer_controls)),
  24231. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  24232. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  24233. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  24234. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  24235. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  24236. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  24237. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX_Voice Mixer",
  24238. SND_SOC_NOPM, 0, 0, display_port_rx_voice_mixer_controls,
  24239. ARRAY_SIZE(display_port_rx_voice_mixer_controls)),
  24240. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1_Voice Mixer",
  24241. SND_SOC_NOPM, 0, 0, display_port_rx1_voice_mixer_controls,
  24242. ARRAY_SIZE(display_port_rx1_voice_mixer_controls)),
  24243. /* lsm mixer definitions */
  24244. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  24245. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  24246. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  24247. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  24248. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  24249. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  24250. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  24251. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  24252. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  24253. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  24254. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  24255. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  24256. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  24257. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  24258. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  24259. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  24260. /* Virtual Pins to force backends ON atm */
  24261. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  24262. SND_SOC_DAPM_INPUT("BE_IN"),
  24263. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  24264. &slim0_rx_vi_fb_lch_mux),
  24265. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  24266. &slim0_rx_vi_fb_rch_mux),
  24267. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  24268. &wsa_rx_0_vi_fb_lch_mux),
  24269. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  24270. &wsa_rx_0_vi_fb_rch_mux),
  24271. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  24272. &mi2s_rx_vi_fb_mux),
  24273. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  24274. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  24275. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  24276. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  24277. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  24278. &voc_ext_ec_mux),
  24279. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  24280. &ext_ec_ref_mux_ul1),
  24281. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  24282. &ext_ec_ref_mux_ul2),
  24283. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  24284. &ext_ec_ref_mux_ul3),
  24285. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  24286. &ext_ec_ref_mux_ul4),
  24287. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  24288. &ext_ec_ref_mux_ul5),
  24289. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  24290. &ext_ec_ref_mux_ul6),
  24291. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  24292. &ext_ec_ref_mux_ul8),
  24293. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  24294. &ext_ec_ref_mux_ul9),
  24295. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL10 MUX", SND_SOC_NOPM, 0, 0,
  24296. &ext_ec_ref_mux_ul10),
  24297. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL16 MUX", SND_SOC_NOPM, 0, 0,
  24298. &ext_ec_ref_mux_ul16),
  24299. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  24300. &ext_ec_ref_mux_ul17),
  24301. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  24302. &ext_ec_ref_mux_ul18),
  24303. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  24304. &ext_ec_ref_mux_ul19),
  24305. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL28 MUX", SND_SOC_NOPM, 0, 0,
  24306. &ext_ec_ref_mux_ul28),
  24307. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL29 MUX", SND_SOC_NOPM, 0, 0,
  24308. &ext_ec_ref_mux_ul29),
  24309. };
  24310. static const struct snd_soc_dapm_route intercon[] = {
  24311. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24312. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24313. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24314. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24315. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24316. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24317. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24318. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24319. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24320. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24321. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24322. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24323. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24324. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24325. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24326. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24327. {"PRI_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24328. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  24329. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24330. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24331. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24332. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24333. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24334. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24335. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24336. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24337. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24338. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24339. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24340. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24341. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24342. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24343. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24344. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24345. {"SEC_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24346. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  24347. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24348. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24349. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24350. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24351. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24352. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24353. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24354. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24355. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24356. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24357. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24358. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24359. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24360. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24361. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24362. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24363. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24364. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  24365. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24366. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24367. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24368. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24369. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24370. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24371. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24372. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24373. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24374. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24375. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24376. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24377. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24378. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24379. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24380. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24381. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24382. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  24383. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24384. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24385. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24386. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24387. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24388. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24389. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24390. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24391. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24392. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24393. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24394. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24395. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24396. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24397. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24398. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24399. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24400. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  24401. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24402. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24403. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24404. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24405. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24406. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24407. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24408. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24409. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24410. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24411. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24412. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24413. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24414. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24415. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24416. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24417. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24418. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Audio Mixer"},
  24419. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24420. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24421. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24422. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24423. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24424. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24425. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24426. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24427. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24428. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24429. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24430. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24431. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24432. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24433. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24434. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24435. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24436. {"WSA_CDC_DMA_RX_1", NULL, "WSA_CDC_DMA_RX_1 Audio Mixer"},
  24437. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24438. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24439. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24440. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24441. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24442. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24443. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24444. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24445. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24446. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24447. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24448. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24449. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24450. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24451. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24452. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24453. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24454. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Audio Mixer"},
  24455. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24456. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24457. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24458. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24459. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24460. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24461. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24462. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24463. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24464. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24465. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24466. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24467. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24468. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24469. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24470. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24471. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24472. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1 Audio Mixer"},
  24473. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24474. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24475. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24476. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24477. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24478. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24479. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24480. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24481. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24482. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24483. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24484. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24485. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24486. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24487. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24488. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24489. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24490. {"RX_CDC_DMA_RX_2", NULL, "RX_CDC_DMA_RX_2 Audio Mixer"},
  24491. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24492. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24493. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24494. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24495. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24496. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24497. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24498. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24499. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24500. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24501. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24502. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24503. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24504. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24505. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24506. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24507. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24508. {"RX_CDC_DMA_RX_3", NULL, "RX_CDC_DMA_RX_3 Audio Mixer"},
  24509. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24510. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24511. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24512. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24513. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24514. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24515. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24516. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24517. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24518. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24519. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24520. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24521. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24522. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24523. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24524. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24525. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24526. {"RX_CDC_DMA_RX_4", NULL, "RX_CDC_DMA_RX_4 Audio Mixer"},
  24527. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24528. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24529. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24530. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24531. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24532. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24533. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24534. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24535. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24536. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24537. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24538. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24539. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24540. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24541. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24542. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24543. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24544. {"RX_CDC_DMA_RX_5", NULL, "RX_CDC_DMA_RX_5 Audio Mixer"},
  24545. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24546. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24547. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24548. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24549. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24550. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24551. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24552. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24553. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24554. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24555. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24556. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24557. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24558. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24559. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24560. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24561. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24562. {"RX_CDC_DMA_RX_6", NULL, "RX_CDC_DMA_RX_6 Audio Mixer"},
  24563. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24564. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24565. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24566. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24567. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24568. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24569. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24570. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24571. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24572. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24573. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24574. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24575. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24576. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24577. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24578. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24579. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24580. {"RX_CDC_DMA_RX_7", NULL, "RX_CDC_DMA_RX_7 Audio Mixer"},
  24581. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  24582. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  24583. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  24584. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  24585. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  24586. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  24587. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  24588. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  24589. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  24590. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  24591. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  24592. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  24593. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  24594. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  24595. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  24596. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  24597. {"HDMI Mixer", "MultiMedia26", "MM_DL26"},
  24598. {"HDMI", NULL, "HDMI Mixer"},
  24599. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  24600. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  24601. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  24602. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  24603. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  24604. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  24605. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  24606. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  24607. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  24608. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  24609. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  24610. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  24611. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  24612. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  24613. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  24614. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  24615. {"DISPLAY_PORT Mixer", "MultiMedia26", "MM_DL26"},
  24616. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  24617. {"DISPLAY_PORT1 Mixer", "MultiMedia1", "MM_DL1"},
  24618. {"DISPLAY_PORT1 Mixer", "MultiMedia2", "MM_DL2"},
  24619. {"DISPLAY_PORT1 Mixer", "MultiMedia3", "MM_DL3"},
  24620. {"DISPLAY_PORT1 Mixer", "MultiMedia4", "MM_DL4"},
  24621. {"DISPLAY_PORT1 Mixer", "MultiMedia5", "MM_DL5"},
  24622. {"DISPLAY_PORT1 Mixer", "MultiMedia6", "MM_DL6"},
  24623. {"DISPLAY_PORT1 Mixer", "MultiMedia7", "MM_DL7"},
  24624. {"DISPLAY_PORT1 Mixer", "MultiMedia8", "MM_DL8"},
  24625. {"DISPLAY_PORT1 Mixer", "MultiMedia9", "MM_DL9"},
  24626. {"DISPLAY_PORT1 Mixer", "MultiMedia10", "MM_DL10"},
  24627. {"DISPLAY_PORT1 Mixer", "MultiMedia11", "MM_DL11"},
  24628. {"DISPLAY_PORT1 Mixer", "MultiMedia12", "MM_DL12"},
  24629. {"DISPLAY_PORT1 Mixer", "MultiMedia13", "MM_DL13"},
  24630. {"DISPLAY_PORT1 Mixer", "MultiMedia14", "MM_DL14"},
  24631. {"DISPLAY_PORT1 Mixer", "MultiMedia15", "MM_DL15"},
  24632. {"DISPLAY_PORT1 Mixer", "MultiMedia16", "MM_DL16"},
  24633. {"DISPLAY_PORT1 Mixer", "MultiMedia26", "MM_DL26"},
  24634. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT1 Mixer"},
  24635. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24636. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24637. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24638. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24639. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24640. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24641. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24642. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24643. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24644. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24645. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24646. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24647. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24648. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24649. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24650. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24651. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24652. {"PRI_SPDIF_RX", NULL, "PRI_SPDIF_RX Audio Mixer"},
  24653. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24654. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24655. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24656. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24657. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24658. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24659. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24660. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24661. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24662. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24663. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24664. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24665. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24666. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24667. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24668. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24669. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24670. {"SEC_SPDIF_RX", NULL, "SEC_SPDIF_RX Audio Mixer"},
  24671. /* incall */
  24672. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  24673. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  24674. {"Incall_Music Audio Mixer", "MultiMedia4", "MM_DL4"},
  24675. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  24676. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  24677. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  24678. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24679. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24680. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24681. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24682. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  24683. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24684. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24685. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24686. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24687. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  24688. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24689. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24690. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24691. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24692. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24693. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24694. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24695. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24696. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24697. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24698. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24699. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24700. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24701. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24702. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24703. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24704. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24705. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  24706. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24707. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24708. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24709. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24710. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24711. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24712. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24713. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24714. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24715. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24716. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24717. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24718. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24719. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24720. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24721. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24722. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24723. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  24724. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24725. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24726. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24727. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24728. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24729. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24730. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24731. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24732. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24733. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24734. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24735. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24736. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24737. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24738. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24739. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24740. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24741. {"SLIMBUS_9_RX", NULL, "SLIMBUS_9_RX Audio Mixer"},
  24742. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24743. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24744. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24745. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24746. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24747. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24748. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24749. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24750. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24751. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24752. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24753. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24754. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24755. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24756. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24757. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24758. {"USB_AUDIO_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24759. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  24760. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  24761. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  24762. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  24763. {"MultiMedia9 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  24764. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  24765. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  24766. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  24767. {"MultiMedia9 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  24768. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  24769. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  24770. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24771. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  24772. {"MultiMedia1 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  24773. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  24774. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24775. {"MultiMedia8 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  24776. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24777. {"MultiMedia4 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24778. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24779. {"MultiMedia17 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24780. {"MultiMedia17 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24781. {"MultiMedia17 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  24782. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24783. {"MultiMedia18 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24784. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24785. {"MultiMedia19 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24786. {"MultiMedia28 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24787. {"MultiMedia28 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24788. {"MultiMedia29 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24789. {"MultiMedia29 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24790. {"MultiMedia30 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24791. {"MultiMedia30 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24792. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24793. {"MultiMedia8 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24794. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24795. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24796. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24797. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24798. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24799. {"MultiMedia28 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24800. {"MultiMedia29 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24801. {"MultiMedia30 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24802. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24803. {"MultiMedia18 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24804. {"MultiMedia19 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24805. {"MultiMedia28 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24806. {"MultiMedia29 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24807. {"MultiMedia30 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24808. {"MultiMedia17 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24809. {"MultiMedia18 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24810. {"MultiMedia19 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24811. {"MultiMedia28 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24812. {"MultiMedia29 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24813. {"MultiMedia30 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24814. {"MultiMedia17 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24815. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24816. {"MultiMedia19 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24817. {"MultiMedia28 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24818. {"MultiMedia29 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24819. {"MultiMedia30 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24820. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24821. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24822. {"MultiMedia3 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24823. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24824. {"MultiMedia5 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24825. {"MultiMedia10 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24826. {"MultiMedia10 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24827. {"MultiMedia16 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24828. {"MultiMedia16 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24829. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24830. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  24831. {"MultiMedia5 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  24832. {"MultiMedia10 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24833. {"MultiMedia10 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  24834. {"MultiMedia18 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24835. {"MultiMedia19 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24836. {"MultiMedia28 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24837. {"MultiMedia29 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24838. {"MultiMedia30 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24839. {"MultiMedia18 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24840. {"MultiMedia19 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24841. {"MultiMedia28 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24842. {"MultiMedia29 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24843. {"MultiMedia30 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24844. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24845. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24846. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24847. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24848. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24849. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24850. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24851. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24852. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24853. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24854. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24855. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24856. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24857. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24858. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24859. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24860. {"MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24861. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  24862. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24863. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24864. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24865. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24866. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24867. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24868. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24869. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24870. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24871. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24872. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24873. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24874. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24875. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24876. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24877. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  24878. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24879. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  24880. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24881. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24882. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24883. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24884. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24885. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24886. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24887. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24888. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24889. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24890. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24891. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24892. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24893. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24894. {"TERT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24895. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  24896. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24897. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24898. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24899. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24900. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24901. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24902. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24903. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24904. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24905. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24906. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24907. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24908. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24909. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24910. {"SEC_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24911. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  24912. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24913. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  24914. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24915. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24916. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24917. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24918. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24919. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24920. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24921. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24922. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24923. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24924. {"PRI_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24925. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24926. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24927. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24928. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24929. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24930. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24931. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24932. {"PRI_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24933. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  24934. {"PRI_MI2S_RX Audio Mixer", "DTMF", "DTMF_DL_HL"},
  24935. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24936. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24937. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24938. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24939. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24940. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24941. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24942. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24943. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24944. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24945. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24946. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24947. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24948. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24949. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24950. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  24951. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24952. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24953. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24954. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24955. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24956. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24957. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24958. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24959. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24960. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24961. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24962. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24963. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24964. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24965. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24966. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  24967. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24968. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24969. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24970. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24971. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24972. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24973. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24974. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24975. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24976. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24977. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24978. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24979. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24980. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24981. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24982. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24983. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24984. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  24985. {"SEN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24986. {"SEN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24987. {"SEN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24988. {"SEN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24989. {"SEN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24990. {"SEN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24991. {"SEN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24992. {"SEN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24993. {"SEN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24994. {"SEN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24995. {"SEN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24996. {"SEN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24997. {"SEN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24998. {"SEN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24999. {"SEN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25000. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Audio Mixer"},
  25001. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25002. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25003. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25004. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25005. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25006. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25007. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25008. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25009. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25010. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25011. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25012. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25013. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25014. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25015. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25016. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25017. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25018. {"PRI_META_MI2S_RX", NULL, "PRI_META_MI2S_RX Audio Mixer"},
  25019. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25020. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25021. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25022. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25023. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25024. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25025. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25026. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25027. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25028. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25029. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25030. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25031. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25032. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25033. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25034. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25035. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25036. {"SEC_META_MI2S_RX", NULL, "SEC_META_MI2S_RX Audio Mixer"},
  25037. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25038. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25039. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25040. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25041. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25042. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25043. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25044. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25045. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25046. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25047. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25048. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25049. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25050. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25051. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25052. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25053. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25054. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25055. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25056. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25057. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25058. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  25059. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25060. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25061. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25062. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25063. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25064. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25065. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25066. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25067. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25068. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25069. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25070. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25071. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25072. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25073. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25074. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25075. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25076. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25077. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25078. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25079. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25080. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  25081. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25082. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25083. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25084. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25085. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25086. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25087. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25088. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25089. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25090. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25091. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25092. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25093. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25094. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25095. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25096. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25097. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25098. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25099. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25100. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25101. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25102. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  25103. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25104. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25105. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25106. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25107. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25108. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25109. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25110. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25111. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25112. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25113. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25114. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25115. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25116. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25117. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25118. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25119. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25120. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25121. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25122. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25123. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25124. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  25125. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25126. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25127. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25128. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25129. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25130. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25131. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25132. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25133. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25134. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25135. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25136. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25137. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25138. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25139. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25140. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25141. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25142. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25143. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25144. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  25145. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25146. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25147. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25148. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25149. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25150. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25151. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25152. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25153. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25154. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25155. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25156. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25157. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25158. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25159. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25160. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25161. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25162. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25163. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25164. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25165. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25166. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  25167. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25168. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25169. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25170. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25171. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25172. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25173. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25174. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25175. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25176. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25177. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25178. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25179. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25180. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25181. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25182. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25183. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25184. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25185. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25186. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25187. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25188. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  25189. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25190. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25191. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25192. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25193. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25194. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25195. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25196. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25197. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25198. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25199. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25200. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25201. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25202. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25203. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25204. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25205. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25206. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25207. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25208. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25209. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25210. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  25211. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25212. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25213. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25214. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25215. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25216. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25217. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25218. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25219. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25220. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25221. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25222. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25223. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25224. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25225. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25226. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25227. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25228. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25229. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25230. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25231. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25232. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  25233. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25234. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25235. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25236. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25237. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25238. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25239. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25240. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25241. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25242. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25243. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25244. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25245. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25246. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25247. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25248. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25249. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25250. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25251. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25252. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  25253. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25254. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25255. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25256. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25257. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25258. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25259. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25260. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25261. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25262. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25263. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25264. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25265. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25266. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25267. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25268. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25269. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25270. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25271. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25272. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25273. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25274. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  25275. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25276. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25277. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25278. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25279. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25280. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25281. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25282. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25283. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25284. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25285. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25286. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25287. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25288. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25289. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25290. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25291. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25292. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25293. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25294. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  25295. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25296. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25297. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25298. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25299. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25300. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25301. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25302. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25303. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25304. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25305. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25306. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25307. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25308. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25309. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25310. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25311. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25312. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25313. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25314. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25315. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25316. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  25317. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25318. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25319. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25320. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25321. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25322. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25323. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25324. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25325. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25326. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25327. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25328. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25329. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25330. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25331. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25332. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25333. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25334. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25335. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25336. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25337. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25338. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  25339. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25340. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25341. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25342. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25343. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25344. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25345. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25346. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25347. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25348. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25349. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25350. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25351. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25352. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25353. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25354. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25355. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25356. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25357. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25358. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25359. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25360. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  25361. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25362. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25363. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25364. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25365. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25366. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25367. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25368. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25369. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25370. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25371. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25372. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25373. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25374. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25375. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25376. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25377. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25378. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25379. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25380. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25381. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25382. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  25383. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25384. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25385. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25386. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25387. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25388. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25389. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25390. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25391. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25392. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25393. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25394. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25395. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25396. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25397. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25398. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25399. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25400. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25401. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25402. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25403. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25404. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25405. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  25406. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25407. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25408. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25409. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25410. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25411. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25412. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25413. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25414. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25415. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25416. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25417. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25418. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25419. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25420. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25421. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25422. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25423. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25424. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25425. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  25426. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25427. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25428. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25429. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25430. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25431. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25432. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25433. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25434. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25435. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25436. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25437. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25438. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25439. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25440. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25441. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25442. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25443. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25444. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25445. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25446. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25447. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25448. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  25449. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25450. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25451. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25452. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25453. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25454. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25455. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25456. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25457. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25458. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25459. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25460. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25461. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25462. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25463. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25464. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25465. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25466. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25467. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25468. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25469. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25470. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25471. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  25472. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25473. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25474. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25475. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25476. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25477. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25478. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25479. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25480. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25481. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25482. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25483. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25484. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25485. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25486. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25487. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25488. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25489. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25490. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25491. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25492. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25493. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25494. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  25495. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25496. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25497. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25498. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25499. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25500. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25501. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25502. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25503. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25504. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25505. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25506. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25507. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25508. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25509. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25510. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25511. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25512. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25513. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25514. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25515. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25516. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25517. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  25518. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25519. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25520. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25521. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25522. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25523. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25524. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25525. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25526. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25527. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25528. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25529. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25530. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25531. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25532. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25533. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25534. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25535. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25536. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25537. {"QUIN_TDM_TX_0", NULL, "QUIN_TDM_TX_0 Audio Mixer"},
  25538. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25539. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25540. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25541. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25542. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25543. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25544. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25545. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25546. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25547. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25548. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25549. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25550. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25551. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25552. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25553. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25554. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25555. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25556. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25557. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25558. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25559. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25560. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  25561. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25562. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25563. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25564. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25565. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25566. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25567. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25568. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25569. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25570. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25571. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25572. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25573. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25574. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25575. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25576. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25577. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25578. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25579. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25580. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25581. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25582. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25583. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  25584. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25585. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25586. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25587. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25588. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25589. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25590. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25591. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25592. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25593. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25594. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25595. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25596. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25597. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25598. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25599. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25600. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25601. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25602. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25603. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25604. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25605. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25606. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  25607. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25608. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25609. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25610. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25611. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25612. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25613. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25614. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25615. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25616. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25617. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25618. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25619. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25620. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25621. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25622. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25623. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25624. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25625. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Audio Mixer"},
  25626. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25627. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25628. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25629. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25630. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25631. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25632. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25633. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25634. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25635. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25636. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25637. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25638. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25639. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25640. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25641. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25642. {"SEN_TDM_TX_0", NULL, "SEN_TDM_TX_0 Audio Mixer"},
  25643. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25644. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25645. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25646. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25647. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25648. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25649. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25650. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25651. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25652. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25653. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25654. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25655. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25656. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25657. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25658. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25659. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25660. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25661. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Audio Mixer"},
  25662. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25663. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25664. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25665. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25666. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25667. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25668. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25669. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25670. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25671. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25672. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25673. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25674. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25675. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25676. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25677. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25678. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25679. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25680. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Audio Mixer"},
  25681. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25682. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25683. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25684. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25685. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25686. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25687. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25688. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25689. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25690. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25691. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25692. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25693. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25694. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25695. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25696. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25697. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25698. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25699. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Audio Mixer"},
  25700. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  25701. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  25702. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  25703. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  25704. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  25705. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  25706. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  25707. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25708. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25709. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25710. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25711. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25712. {"MultiMedia1 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25713. {"MultiMedia2 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25714. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25715. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25716. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25717. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25718. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25719. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25720. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25721. {"MultiMedia1 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25722. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25723. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  25724. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25725. {"MultiMedia10 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  25726. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25727. {"MultiMedia2 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  25728. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  25729. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  25730. {"MultiMedia10 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  25731. {"MultiMedia16 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  25732. {"MultiMedia16 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  25733. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  25734. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  25735. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  25736. {"MultiMedia10 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  25737. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  25738. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  25739. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  25740. {"MultiMedia10 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  25741. {"MultiMedia16 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  25742. {"MultiMedia1 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  25743. {"MultiMedia3 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  25744. {"MultiMedia5 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  25745. {"MultiMedia1 Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  25746. {"MultiMedia3 Mixer", "SEN_AUX_PCM_TX", "SEN_AUX_PCM_TX"},
  25747. {"MultiMedia5 Mixer", "SEN_AUX_PCM_TX", "SEN_AUX_PCM_TX"},
  25748. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25749. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  25750. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25751. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25752. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25753. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25754. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25755. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25756. {"MultiMedia6 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25757. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25758. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25759. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25760. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25761. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25762. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25763. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25764. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25765. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25766. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25767. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25768. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25769. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25770. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25771. {"MultiMedia17 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25772. {"MultiMedia18 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25773. {"MultiMedia19 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25774. {"MultiMedia28 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25775. {"MultiMedia29 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25776. {"MultiMedia30 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25777. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25778. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25779. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25780. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25781. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25782. {"MultiMedia6 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25783. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25784. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25785. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25786. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25787. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25788. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25789. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25790. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25791. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25792. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25793. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25794. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25795. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25796. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25797. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25798. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25799. {"MultiMedia1 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25800. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25801. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25802. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25803. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25804. {"MultiMedia1 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25805. {"MultiMedia1 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25806. {"MultiMedia1 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25807. {"MultiMedia1 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25808. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25809. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25810. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25811. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25812. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25813. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25814. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25815. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25816. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25817. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25818. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25819. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25820. {"MultiMedia1 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25821. {"MultiMedia1 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25822. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25823. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25824. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25825. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25826. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25827. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25828. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25829. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25830. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25831. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25832. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25833. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25834. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25835. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25836. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25837. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25838. {"MultiMedia2 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25839. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25840. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25841. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25842. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25843. {"MultiMedia2 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25844. {"MultiMedia2 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25845. {"MultiMedia2 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25846. {"MultiMedia2 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25847. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25848. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25849. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25850. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25851. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25852. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25853. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25854. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25855. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25856. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25857. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25858. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25859. {"MultiMedia2 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25860. {"MultiMedia2 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25861. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25862. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25863. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25864. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25865. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25866. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25867. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25868. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25869. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25870. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25871. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25872. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25873. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25874. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25875. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25876. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25877. {"MultiMedia3 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25878. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25879. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25880. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25881. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25882. {"MultiMedia3 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25883. {"MultiMedia3 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25884. {"MultiMedia3 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25885. {"MultiMedia3 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25886. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25887. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25888. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25889. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25890. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25891. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25892. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25893. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25894. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25895. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25896. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25897. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25898. {"MultiMedia3 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25899. {"MultiMedia3 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25900. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25901. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25902. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25903. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25904. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25905. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25906. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25907. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25908. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25909. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25910. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25911. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25912. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25913. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25914. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25915. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25916. {"MultiMedia4 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25917. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25918. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25919. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25920. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25921. {"MultiMedia4 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25922. {"MultiMedia4 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25923. {"MultiMedia4 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25924. {"MultiMedia4 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25925. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25926. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25927. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25928. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25929. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25930. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25931. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25932. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25933. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25934. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25935. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25936. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25937. {"MultiMedia4 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25938. {"MultiMedia4 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25939. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25940. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25941. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25942. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25943. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25944. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25945. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25946. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25947. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25948. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25949. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25950. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25951. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25952. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25953. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25954. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25955. {"MultiMedia5 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25956. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25957. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25958. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25959. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25960. {"MultiMedia5 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25961. {"MultiMedia5 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25962. {"MultiMedia5 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25963. {"MultiMedia5 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25964. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25965. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25966. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25967. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25968. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25969. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25970. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25971. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25972. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25973. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25974. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25975. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25976. {"MultiMedia5 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25977. {"MultiMedia5 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25978. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25979. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25980. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25981. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25982. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25983. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25984. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25985. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25986. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25987. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25988. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25989. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25990. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25991. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25992. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25993. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25994. {"MultiMedia6 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25995. {"MultiMedia6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25996. {"MultiMedia6 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25997. {"MultiMedia6 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25998. {"MultiMedia6 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25999. {"MultiMedia6 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26000. {"MultiMedia6 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26001. {"MultiMedia6 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26002. {"MultiMedia6 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26003. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26004. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26005. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26006. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26007. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26008. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26009. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26010. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26011. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26012. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26013. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26014. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26015. {"MultiMedia6 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26016. {"MultiMedia6 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26017. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26018. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26019. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26020. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26021. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26022. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26023. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26024. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26025. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26026. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26027. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26028. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26029. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26030. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26031. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26032. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26033. {"MultiMedia8 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26034. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26035. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26036. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26037. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26038. {"MultiMedia8 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26039. {"MultiMedia8 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26040. {"MultiMedia8 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26041. {"MultiMedia8 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26042. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26043. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26044. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26045. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26046. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26047. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26048. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26049. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26050. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26051. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26052. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26053. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26054. {"MultiMedia8 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26055. {"MultiMedia8 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26056. {"MultiMedia9 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26057. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26058. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26059. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26060. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26061. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26062. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26063. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26064. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26065. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26066. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26067. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26068. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26069. {"MultiMedia9 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26070. {"MultiMedia9 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26071. {"MultiMedia9 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26072. {"MultiMedia9 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26073. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26074. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26075. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26076. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26077. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26078. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26079. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26080. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26081. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26082. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26083. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26084. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26085. {"MultiMedia9 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26086. {"MultiMedia9 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26087. {"MultiMedia9 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26088. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26089. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26090. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26091. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26092. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26093. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26094. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26095. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26096. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26097. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26098. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26099. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26100. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26101. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26102. {"MultiMedia10 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26103. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26104. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26105. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26106. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26107. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26108. {"MultiMedia20 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26109. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26110. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26111. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26112. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26113. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26114. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26115. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26116. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26117. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26118. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26119. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26120. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26121. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26122. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26123. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26124. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26125. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26126. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26127. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26128. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26129. {"MultiMedia20 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26130. {"MultiMedia20 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26131. {"MultiMedia20 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26132. {"MultiMedia20 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26133. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26134. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26135. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26136. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26137. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26138. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26139. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26140. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26141. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26142. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26143. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26144. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26145. {"MultiMedia20 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26146. {"MultiMedia20 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26147. {"MultiMedia20 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26148. {"MultiMedia21 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26149. {"MultiMedia21 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26150. {"MultiMedia21 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26151. {"MultiMedia21 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26152. {"MultiMedia21 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26153. {"MultiMedia21 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26154. {"MultiMedia21 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26155. {"MultiMedia21 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26156. {"MultiMedia21 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26157. {"MultiMedia21 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26158. {"MultiMedia21 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26159. {"MultiMedia21 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26160. {"MultiMedia21 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26161. {"MultiMedia21 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26162. {"MultiMedia21 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26163. {"MultiMedia21 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26164. {"MultiMedia21 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26165. {"MultiMedia21 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26166. {"MultiMedia21 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26167. {"MultiMedia21 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26168. {"MultiMedia21 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26169. {"MultiMedia21 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26170. {"MultiMedia21 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26171. {"MultiMedia21 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26172. {"MultiMedia21 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26173. {"MultiMedia21 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26174. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26175. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26176. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26177. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26178. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26179. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26180. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26181. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26182. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26183. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26184. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26185. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26186. {"MultiMedia21 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26187. {"MultiMedia21 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26188. {"MultiMedia21 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26189. {"MultiMedia22 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26190. {"MultiMedia22 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26191. {"MultiMedia22 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26192. {"MultiMedia22 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26193. {"MultiMedia22 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26194. {"MultiMedia22 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26195. {"MultiMedia22 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26196. {"MultiMedia22 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26197. {"MultiMedia22 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26198. {"MultiMedia22 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26199. {"MultiMedia22 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26200. {"MultiMedia22 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26201. {"MultiMedia22 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26202. {"MultiMedia22 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26203. {"MultiMedia22 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26204. {"MultiMedia22 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26205. {"MultiMedia22 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26206. {"MultiMedia22 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26207. {"MultiMedia22 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26208. {"MultiMedia22 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26209. {"MultiMedia23 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26210. {"MultiMedia23 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26211. {"MultiMedia23 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26212. {"MultiMedia23 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26213. {"MultiMedia23 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26214. {"MultiMedia23 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26215. {"MultiMedia23 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26216. {"MultiMedia23 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26217. {"MultiMedia23 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26218. {"MultiMedia23 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26219. {"MultiMedia23 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26220. {"MultiMedia23 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26221. {"MultiMedia23 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26222. {"MultiMedia23 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26223. {"MultiMedia23 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26224. {"MultiMedia23 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26225. {"MultiMedia23 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26226. {"MultiMedia23 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26227. {"MultiMedia23 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26228. {"MultiMedia23 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26229. {"MultiMedia24 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26230. {"MultiMedia24 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26231. {"MultiMedia24 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26232. {"MultiMedia24 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26233. {"MultiMedia24 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26234. {"MultiMedia24 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26235. {"MultiMedia24 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26236. {"MultiMedia24 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26237. {"MultiMedia24 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26238. {"MultiMedia24 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26239. {"MultiMedia24 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26240. {"MultiMedia24 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26241. {"MultiMedia24 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26242. {"MultiMedia24 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26243. {"MultiMedia24 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26244. {"MultiMedia24 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26245. {"MultiMedia24 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26246. {"MultiMedia24 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26247. {"MultiMedia24 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26248. {"MultiMedia24 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26249. {"MultiMedia25 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26250. {"MultiMedia25 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26251. {"MultiMedia25 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26252. {"MultiMedia25 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26253. {"MultiMedia25 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26254. {"MultiMedia25 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26255. {"MultiMedia25 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26256. {"MultiMedia25 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26257. {"MultiMedia25 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26258. {"MultiMedia25 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26259. {"MultiMedia25 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26260. {"MultiMedia25 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26261. {"MultiMedia25 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26262. {"MultiMedia25 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26263. {"MultiMedia25 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26264. {"MultiMedia25 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26265. {"MultiMedia25 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26266. {"MultiMedia25 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26267. {"MultiMedia25 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26268. {"MultiMedia25 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26269. {"MultiMedia27 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26270. {"MultiMedia27 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26271. {"MultiMedia27 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  26272. {"MultiMedia27 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26273. {"MultiMedia27 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  26274. {"MultiMedia27 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26275. {"MultiMedia27 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26276. {"MultiMedia27 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26277. {"MultiMedia27 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26278. {"MultiMedia27 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26279. {"MultiMedia27 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26280. {"MultiMedia27 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26281. {"MultiMedia27 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26282. {"MultiMedia27 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26283. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26284. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26285. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26286. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26287. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26288. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26289. {"MultiMedia10 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26290. {"MultiMedia16 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26291. {"MultiMedia16 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26292. {"MultiMedia16 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26293. {"MultiMedia16 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26294. {"MultiMedia16 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26295. {"MultiMedia16 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26296. {"MultiMedia16 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26297. {"MultiMedia16 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26298. {"MultiMedia16 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26299. {"MultiMedia16 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26300. {"MultiMedia16 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26301. {"MultiMedia16 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26302. {"MultiMedia16 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26303. {"MultiMedia16 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26304. {"MultiMedia16 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26305. {"MultiMedia16 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26306. {"MultiMedia16 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26307. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26308. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26309. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26310. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26311. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26312. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26313. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26314. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26315. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26316. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26317. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26318. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26319. {"MultiMedia16 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26320. {"MultiMedia16 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26321. {"MultiMedia16 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26322. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26323. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26324. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26325. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26326. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26327. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26328. {"MultiMedia17 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26329. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26330. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26331. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26332. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26333. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26334. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26335. {"MultiMedia18 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26336. {"MultiMedia18 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26337. {"MultiMedia18 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26338. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26339. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26340. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26341. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26342. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26343. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26344. {"MultiMedia19 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26345. {"MultiMedia19 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26346. {"MultiMedia19 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26347. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26348. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26349. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26350. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26351. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26352. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26353. {"MultiMedia28 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26354. {"MultiMedia28 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26355. {"MultiMedia28 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26356. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26357. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26358. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26359. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26360. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26361. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26362. {"MultiMedia29 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26363. {"MultiMedia29 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26364. {"MultiMedia29 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26365. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26366. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26367. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26368. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26369. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26370. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26371. {"MultiMedia30 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26372. {"MultiMedia30 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26373. {"MultiMedia30 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26374. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26375. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26376. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26377. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26378. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26379. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26380. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26381. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26382. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26383. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26384. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26385. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26386. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26387. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26388. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26389. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26390. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  26391. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  26392. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26393. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26394. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26395. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26396. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26397. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26398. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26399. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26400. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26401. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26402. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26403. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26404. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26405. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26406. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26407. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26408. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  26409. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  26410. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26411. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26412. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26413. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26414. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26415. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26416. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26417. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26418. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26419. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26420. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26421. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26422. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26423. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26424. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26425. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26426. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  26427. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26428. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26429. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26430. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26431. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26432. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26433. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26434. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26435. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26436. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26437. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26438. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26439. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26440. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26441. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26442. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26443. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  26444. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26445. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26446. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26447. {"MultiMedia10 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26448. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26449. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26450. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26451. {"MultiMedia28 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26452. {"MultiMedia29 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26453. {"MultiMedia30 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26454. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26455. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26456. {"MultiMedia16 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26457. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26458. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26459. {"MultiMedia16 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26460. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26461. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26462. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26463. {"MultiMedia28 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26464. {"MultiMedia29 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26465. {"MultiMedia30 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26466. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26467. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26468. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26469. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26470. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26471. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26472. {"MultiMedia10 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26473. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26474. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26475. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26476. {"MultiMedia28 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26477. {"MultiMedia29 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26478. {"MultiMedia30 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26479. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26480. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26481. {"MultiMedia16 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26482. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  26483. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26484. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  26485. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  26486. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  26487. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  26488. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  26489. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  26490. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  26491. {"MM_UL10", NULL, "MultiMedia10 Mixer"},
  26492. {"MM_UL16", NULL, "MultiMedia16 Mixer"},
  26493. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  26494. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  26495. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  26496. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  26497. {"MM_UL21", NULL, "MultiMedia21 Mixer"},
  26498. {"MM_UL22", NULL, "MultiMedia22 Mixer"},
  26499. {"MM_UL23", NULL, "MultiMedia23 Mixer"},
  26500. {"MM_UL24", NULL, "MultiMedia24 Mixer"},
  26501. {"MM_UL25", NULL, "MultiMedia25 Mixer"},
  26502. {"MM_UL27", NULL, "MultiMedia27 Mixer"},
  26503. {"MM_UL28", NULL, "MultiMedia28 Mixer"},
  26504. {"MM_UL29", NULL, "MultiMedia29 Mixer"},
  26505. {"MM_UL30", NULL, "MultiMedia30 Mixer"},
  26506. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26507. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26508. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26509. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26510. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26511. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26512. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26513. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26514. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26515. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26516. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26517. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26518. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26519. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26520. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26521. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26522. {"AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  26523. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  26524. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26525. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26526. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26527. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26528. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26529. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26530. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26531. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26532. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26533. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26534. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26535. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26536. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26537. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26538. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26539. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26540. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  26541. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  26542. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26543. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26544. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26545. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26546. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26547. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26548. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26549. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26550. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26551. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26552. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26553. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26554. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26555. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26556. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26557. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26558. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  26559. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26560. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26561. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26562. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26563. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26564. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26565. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26566. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26567. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26568. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26569. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26570. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26571. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26572. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26573. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26574. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26575. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  26576. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26577. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26578. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26579. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26580. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26581. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26582. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26583. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26584. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26585. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26586. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26587. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26588. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26589. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26590. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26591. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26592. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX Audio Mixer"},
  26593. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26594. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26595. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26596. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26597. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26598. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26599. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26600. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26601. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26602. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26603. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26604. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26605. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26606. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26607. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26608. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26609. {"SEN_AUX_PCM_RX", NULL, "SEN_AUX_PCM_RX Audio Mixer"},
  26610. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26611. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26612. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26613. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26614. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26615. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  26616. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26617. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26618. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26619. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  26620. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26621. {"SEC_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26622. {"SEC_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26623. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26624. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26625. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26626. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26627. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  26628. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26629. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26630. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26631. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26632. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26633. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  26634. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26635. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26636. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26637. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26638. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26639. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  26640. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26641. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26642. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26643. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26644. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26645. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  26646. {"DISPLAY_PORT_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26647. {"DISPLAY_PORT_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26648. {"DISPLAY_PORT_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26649. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26650. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26651. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX_Voice Mixer"},
  26652. {"DISPLAY_PORT_RX1_Voice Mixer", "Voip", "VOIP_DL"},
  26653. {"DISPLAY_PORT_RX1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26654. {"DISPLAY_PORT_RX1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26655. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26656. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26657. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1_Voice Mixer"},
  26658. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26659. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26660. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26661. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26662. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26663. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  26664. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26665. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26666. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26667. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26668. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26669. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  26670. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26671. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26672. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26673. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26674. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26675. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  26676. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26677. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26678. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26679. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26680. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26681. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  26682. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26683. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26684. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26685. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26686. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26687. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  26688. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26689. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26690. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26691. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26692. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26693. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  26694. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26695. {"QUIN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26696. {"QUIN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26697. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26698. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26699. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX_Voice Mixer"},
  26700. {"SEN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26701. {"SEN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26702. {"SEN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26703. {"SEN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26704. {"SEN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26705. {"SEN_AUX_PCM_RX", NULL, "SEN_AUX_PCM_RX_Voice Mixer"},
  26706. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26707. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26708. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26709. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26710. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26711. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  26712. {"HDMI", NULL, "HDMI_DL_HL"},
  26713. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26714. {"MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26715. {"MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26716. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26717. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26718. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26719. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26720. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  26721. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26722. {"PRI_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26723. {"PRI_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26724. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26725. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26726. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26727. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26728. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  26729. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26730. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26731. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26732. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26733. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26734. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  26735. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26736. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26737. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26738. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26739. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26740. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  26741. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26742. {"TERT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26743. {"TERT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26744. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26745. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26746. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26747. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26748. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  26749. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26750. {"QUAT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26751. {"QUAT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26752. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26753. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26754. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26755. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  26756. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26757. {"QUIN_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26758. {"QUIN_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26759. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26760. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26761. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26762. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  26763. {"PRI_TDM_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  26764. {"PRI_TDM_RX_0_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  26765. {"PRI_TDM_RX_0_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26766. {"PRI_TDM_RX_0_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26767. {"PRI_TDM_RX_0_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26768. {"PRI_TDM_RX_0_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26769. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26770. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26771. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_Voice Mixer"},
  26772. {"PRI_TDM_RX_1_Voice Mixer", "Voip", "VOIP_DL"},
  26773. {"PRI_TDM_RX_1_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  26774. {"PRI_TDM_RX_1_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26775. {"PRI_TDM_RX_1_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26776. {"PRI_TDM_RX_1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26777. {"PRI_TDM_RX_1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26778. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26779. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26780. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_Voice Mixer"},
  26781. {"PRI_TDM_RX_2_Voice Mixer", "Voip", "VOIP_DL"},
  26782. {"PRI_TDM_RX_2_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  26783. {"PRI_TDM_RX_2_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26784. {"PRI_TDM_RX_2_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26785. {"PRI_TDM_RX_2_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26786. {"PRI_TDM_RX_2_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26787. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26788. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26789. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_Voice Mixer"},
  26790. {"PRI_TDM_RX_3_Voice Mixer", "Voip", "VOIP_DL"},
  26791. {"PRI_TDM_RX_3_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  26792. {"PRI_TDM_RX_3_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26793. {"PRI_TDM_RX_3_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26794. {"PRI_TDM_RX_3_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26795. {"PRI_TDM_RX_3_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26796. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26797. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26798. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_Voice Mixer"},
  26799. {"SEN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26800. {"SEN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26801. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26802. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26803. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_Voice Mixer"},
  26804. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26805. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  26806. {"QUIN_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26807. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_Voice Mixer"},
  26808. {"WSA_CDC_DMA_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  26809. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26810. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26811. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_Voice Mixer"},
  26812. {"RX_CDC_DMA_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  26813. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26814. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26815. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_Voice Mixer"},
  26816. {"RX_CDC_DMA_RX_1_Voice Mixer", "Voip", "VOIP_DL"},
  26817. {"RX_CDC_DMA_RX_1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26818. {"RX_CDC_DMA_RX_1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26819. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1_Voice Mixer"},
  26820. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26821. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26822. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26823. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26824. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26825. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26826. {"VOC_EXT_EC MUX", "PRI_TDM_TX", "PRI_TDM_TX_0"},
  26827. {"VOC_EXT_EC MUX", "SEC_TDM_TX", "SEC_TDM_TX_0"},
  26828. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  26829. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  26830. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  26831. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26832. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26833. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26834. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26835. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26836. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26837. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  26838. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  26839. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  26840. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26841. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  26842. {"AUDIO_REF_EC_UL1 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26843. {"AUDIO_REF_EC_UL1 MUX", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26844. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26845. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26846. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26847. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26848. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26849. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26850. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26851. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26852. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26853. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26854. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26855. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26856. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26857. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26858. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26859. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26860. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26861. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26862. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26863. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26864. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26865. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26866. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26867. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26868. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26869. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26870. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26871. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26872. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26873. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26874. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26875. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26876. {"AUDIO_REF_EC_UL10 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26877. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26878. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  26879. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  26880. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  26881. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26882. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  26883. {"AUDIO_REF_EC_UL10 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26884. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26885. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26886. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26887. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26888. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26889. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26890. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26891. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26892. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26893. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26894. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26895. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26896. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26897. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26898. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26899. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26900. {"AUDIO_REF_EC_UL28 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26901. {"AUDIO_REF_EC_UL28 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26902. {"AUDIO_REF_EC_UL28 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26903. {"AUDIO_REF_EC_UL28 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26904. {"AUDIO_REF_EC_UL29 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26905. {"AUDIO_REF_EC_UL29 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26906. {"AUDIO_REF_EC_UL29 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26907. {"AUDIO_REF_EC_UL29 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26908. {"LSM1_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26909. {"LSM2_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26910. {"LSM3_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26911. {"LSM4_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26912. {"LSM5_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26913. {"LSM6_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26914. {"LSM7_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26915. {"LSM8_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26916. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26917. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  26918. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  26919. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  26920. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  26921. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  26922. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  26923. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  26924. {"MM_UL10", NULL, "AUDIO_REF_EC_UL10 MUX"},
  26925. {"MM_UL16", NULL, "AUDIO_REF_EC_UL16 MUX"},
  26926. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  26927. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  26928. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  26929. {"MM_UL28", NULL, "AUDIO_REF_EC_UL28 MUX"},
  26930. {"MM_UL29", NULL, "AUDIO_REF_EC_UL29 MUX"},
  26931. {"MM_UL30", NULL, "AUDIO_REF_EC_UL30 MUX"},
  26932. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  26933. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  26934. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  26935. {"VoiceMMode1_Tx Mixer", "SEC_MI2S_TX_MMode1", "SEC_MI2S_TX"},
  26936. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  26937. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  26938. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  26939. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  26940. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  26941. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  26942. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  26943. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  26944. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  26945. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  26946. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  26947. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  26948. {"VoiceMMode1_Tx Mixer", "QUIN_AUX_PCM_TX_MMode1", "QUIN_AUX_PCM_TX"},
  26949. {"VoiceMMode1_Tx Mixer", "SEN_AUX_PCM_TX_MMode1", "SEN_AUX_PCM_TX"},
  26950. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  26951. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_0_MMode1", "TX_CDC_DMA_TX_0"},
  26952. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_1_MMode1", "TX_CDC_DMA_TX_1"},
  26953. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_2_MMode1", "TX_CDC_DMA_TX_2"},
  26954. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_3_MMode1", "TX_CDC_DMA_TX_3"},
  26955. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_4_MMode1", "TX_CDC_DMA_TX_4"},
  26956. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_5_MMode1", "TX_CDC_DMA_TX_5"},
  26957. {"VoiceMMode1_Tx Mixer", "QUAT_MI2S_TX_MMode1", "QUAT_MI2S_TX"},
  26958. {"VoiceMMode1_Tx Mixer", "QUIN_MI2S_TX_MMode1", "QUIN_MI2S_TX"},
  26959. {"VoiceMMode1_Tx Mixer", "PRI_TDM_TX_3_MMode1", "PRI_TDM_TX_3"},
  26960. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  26961. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  26962. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  26963. {"VoiceMMode2_Tx Mixer", "SEC_MI2S_TX_MMode2", "SEC_MI2S_TX"},
  26964. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  26965. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  26966. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  26967. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  26968. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  26969. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  26970. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  26971. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  26972. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  26973. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  26974. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  26975. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  26976. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  26977. {"VoiceMMode2_Tx Mixer", "QUIN_AUX_PCM_TX_MMode2", "QUIN_AUX_PCM_TX"},
  26978. {"VoiceMMode2_Tx Mixer", "SEN_AUX_PCM_TX_MMode2", "SEN_AUX_PCM_TX"},
  26979. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_0_MMode2", "TX_CDC_DMA_TX_0"},
  26980. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_1_MMode2", "TX_CDC_DMA_TX_1"},
  26981. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_2_MMode2", "TX_CDC_DMA_TX_2"},
  26982. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_3_MMode2", "TX_CDC_DMA_TX_3"},
  26983. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_4_MMode2", "TX_CDC_DMA_TX_4"},
  26984. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_5_MMode2", "TX_CDC_DMA_TX_5"},
  26985. {"VoiceMMode2_Tx Mixer", "QUAT_MI2S_TX_MMode2", "QUAT_MI2S_TX"},
  26986. {"VoiceMMode2_Tx Mixer", "QUIN_MI2S_TX_MMode2", "QUIN_MI2S_TX"},
  26987. {"VoiceMMode2_Tx Mixer", "PRI_TDM_TX_3_MMode2", "PRI_TDM_TX_3"},
  26988. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  26989. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  26990. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  26991. {"Voip_Tx Mixer", "SEC_MI2S_TX_Voip", "SEC_MI2S_TX"},
  26992. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  26993. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  26994. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  26995. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  26996. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  26997. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  26998. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  26999. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  27000. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  27001. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  27002. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  27003. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  27004. {"Voip_Tx Mixer", "QUIN_AUX_PCM_TX_Voip", "QUIN_AUX_PCM_TX"},
  27005. {"Voip_Tx Mixer", "SEN_AUX_PCM_TX_Voip", "SEN_AUX_PCM_TX"},
  27006. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  27007. {"Voip_Tx Mixer", "PRI_TDM_TX_3_Voip", "PRI_TDM_TX_3"},
  27008. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_0_Voip", "TX_CDC_DMA_TX_0"},
  27009. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_1_Voip", "TX_CDC_DMA_TX_1"},
  27010. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_2_Voip", "TX_CDC_DMA_TX_2"},
  27011. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_3_Voip", "TX_CDC_DMA_TX_3"},
  27012. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_4_Voip", "TX_CDC_DMA_TX_4"},
  27013. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_5_Voip", "TX_CDC_DMA_TX_5"},
  27014. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  27015. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  27016. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  27017. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  27018. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  27019. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  27020. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  27021. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  27022. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  27023. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  27024. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  27025. {"SCO_SLIM7_DL_HL", "Switch", "SLIM7_DL_HL"},
  27026. {"SLIMBUS_7_RX", NULL, "SCO_SLIM7_DL_HL"},
  27027. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  27028. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  27029. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  27030. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  27031. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  27032. {"WSA_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  27033. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_DL_HL"},
  27034. {"CDC_DMA_UL_HL", NULL, "VA_CDC_DMA_TX_0"},
  27035. {"RX_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  27036. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_DL_HL"},
  27037. {"RX_CDC_DMA_RX_1_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  27038. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1_DL_HL"},
  27039. {"TX3_CDC_DMA_UL_HL", NULL, "TX_CDC_DMA_TX_3"},
  27040. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27041. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27042. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27043. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27044. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27045. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27046. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27047. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27048. {"LSM1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27049. {"LSM1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27050. {"LSM1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27051. {"LSM1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27052. {"LSM1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27053. {"LSM1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27054. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  27055. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27056. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27057. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27058. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27059. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27060. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27061. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27062. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27063. {"LSM2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27064. {"LSM2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27065. {"LSM2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27066. {"LSM2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27067. {"LSM2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27068. {"LSM2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27069. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  27070. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27071. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27072. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27073. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27074. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27075. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27076. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27077. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27078. {"LSM3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27079. {"LSM3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27080. {"LSM3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27081. {"LSM3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27082. {"LSM3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27083. {"LSM3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27084. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  27085. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27086. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27087. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27088. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27089. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27090. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27091. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27092. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27093. {"LSM4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27094. {"LSM4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27095. {"LSM4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27096. {"LSM4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27097. {"LSM4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27098. {"LSM4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27099. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  27100. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27101. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27102. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27103. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27104. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27105. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27106. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27107. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27108. {"LSM5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27109. {"LSM5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27110. {"LSM5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27111. {"LSM5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27112. {"LSM5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27113. {"LSM5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27114. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  27115. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27116. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27117. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27118. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27119. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27120. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27121. {"LSM6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27122. {"LSM6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27123. {"LSM6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27124. {"LSM6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27125. {"LSM6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27126. {"LSM6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27127. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  27128. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27129. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27130. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27131. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27132. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27133. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27134. {"LSM7 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27135. {"LSM7 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27136. {"LSM7 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27137. {"LSM7 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27138. {"LSM7 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27139. {"LSM7 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27140. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  27141. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27142. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27143. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27144. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27145. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27146. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27147. {"LSM8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27148. {"LSM8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27149. {"LSM8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27150. {"LSM8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27151. {"LSM8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27152. {"LSM8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27153. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  27154. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  27155. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  27156. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  27157. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  27158. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  27159. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  27160. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  27161. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  27162. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  27163. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  27164. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  27165. {"QCHAT_Tx Mixer", "QUIN_AUX_PCM_TX_QCHAT", "QUIN_AUX_PCM_TX"},
  27166. {"QCHAT_Tx Mixer", "SEN_AUX_PCM_TX_QCHAT", "SEN_AUX_PCM_TX"},
  27167. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  27168. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  27169. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  27170. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  27171. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  27172. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  27173. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  27174. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  27175. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  27176. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  27177. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  27178. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  27179. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  27180. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  27181. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  27182. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  27183. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  27184. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  27185. {"SLIM7_UL_HL", NULL, "A2DP_SLIM7_UL_HL"},
  27186. {"A2DP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  27187. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_DL_HL"},
  27188. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  27189. {"SEC_AUXPCM_UL_HL", NULL, "SEC_AUX_PCM_TX"},
  27190. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  27191. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  27192. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  27193. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  27194. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  27195. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  27196. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  27197. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  27198. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  27199. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  27200. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  27201. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  27202. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  27203. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  27204. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  27205. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  27206. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  27207. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  27208. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  27209. {"SEN_MI2S_RX_DL_HL", "Switch", "SEN_MI2S_DL_HL"},
  27210. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_DL_HL"},
  27211. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  27212. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  27213. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  27214. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  27215. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  27216. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  27217. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  27218. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  27219. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  27220. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  27221. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  27222. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  27223. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  27224. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  27225. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  27226. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  27227. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  27228. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  27229. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  27230. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  27231. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  27232. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  27233. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  27234. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  27235. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  27236. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  27237. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7_DL_HL"},
  27238. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  27239. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  27240. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  27241. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  27242. {"TERT_TDM_TX_7_UL_HL", NULL, "TERT_TDM_TX_7"},
  27243. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  27244. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  27245. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  27246. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  27247. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  27248. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  27249. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  27250. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  27251. {"QUAT_TDM_TX_7_UL_HL", NULL, "QUAT_TDM_TX_7"},
  27252. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  27253. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  27254. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  27255. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  27256. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7_DL_HL"},
  27257. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  27258. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  27259. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  27260. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  27261. {"QUIN_TDM_TX_7_UL_HL", NULL, "QUIN_TDM_TX_7"},
  27262. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  27263. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  27264. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  27265. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  27266. {"QUIN_TDM_RX_7", NULL, "QUIN_TDM_RX_7_DL_HL"},
  27267. {"SEN_TDM_TX_0_UL_HL", NULL, "SEN_TDM_TX_0"},
  27268. {"SEN_TDM_TX_1_UL_HL", NULL, "SEN_TDM_TX_1"},
  27269. {"SEN_TDM_TX_2_UL_HL", NULL, "SEN_TDM_TX_2"},
  27270. {"SEN_TDM_TX_3_UL_HL", NULL, "SEN_TDM_TX_3"},
  27271. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0_DL_HL"},
  27272. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1_DL_HL"},
  27273. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2_DL_HL"},
  27274. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3_DL_HL"},
  27275. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27276. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27277. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27278. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27279. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27280. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27281. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27282. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27283. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27284. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27285. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27286. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27287. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27288. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27289. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27290. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27291. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27292. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27293. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27294. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27295. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27296. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27297. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27298. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27299. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  27300. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27301. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27302. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27303. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27304. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27305. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27306. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27307. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27308. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27309. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27310. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27311. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27312. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27313. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27314. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27315. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27316. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27317. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27318. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27319. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27320. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27321. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27322. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27323. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27324. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  27325. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27326. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27327. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27328. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27329. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27330. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27331. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27332. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27333. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27334. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27335. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27336. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27337. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27338. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27339. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27340. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27341. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27342. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27343. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27344. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27345. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27346. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27347. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27348. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27349. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  27350. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27351. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27352. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27353. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27354. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27355. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27356. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27357. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27358. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27359. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27360. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27361. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27362. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27363. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27364. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27365. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27366. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27367. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27368. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27369. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27370. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27371. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27372. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27373. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27374. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  27375. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27376. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27377. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27378. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27379. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27380. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27381. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27382. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27383. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27384. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27385. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27386. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27387. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27388. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27389. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27390. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27391. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27392. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27393. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27394. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27395. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27396. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27397. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27398. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27399. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  27400. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27401. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27402. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27403. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27404. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27405. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27406. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27407. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27408. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27409. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27410. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27411. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27412. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27413. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27414. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27415. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27416. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27417. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27418. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27419. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27420. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27421. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27422. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27423. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27424. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  27425. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27426. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27427. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27428. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27429. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27430. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27431. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27432. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27433. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27434. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27435. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27436. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27437. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27438. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27439. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27440. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27441. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27442. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27443. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27444. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27445. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27446. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27447. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27448. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27449. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  27450. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27451. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27452. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27453. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27454. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27455. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27456. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27457. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27458. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27459. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27460. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27461. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27462. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27463. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27464. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27465. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27466. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27467. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27468. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27469. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27470. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27471. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27472. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27473. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27474. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  27475. {"SEC_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  27476. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7 Port Mixer"},
  27477. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27478. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27479. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27480. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27481. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27482. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27483. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27484. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27485. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27486. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27487. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27488. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27489. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27490. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27491. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27492. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27493. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27494. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27495. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27496. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27497. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27498. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27499. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27500. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27501. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  27502. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27503. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27504. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27505. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27506. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27507. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27508. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27509. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27510. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27511. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27512. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27513. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27514. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27515. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27516. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27517. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27518. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27519. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27520. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27521. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27522. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27523. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27524. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27525. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27526. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  27527. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27528. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27529. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27530. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27531. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27532. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27533. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27534. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27535. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27536. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27537. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27538. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27539. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27540. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27541. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27542. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27543. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27544. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27545. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27546. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27547. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27548. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27549. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27550. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27551. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  27552. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27553. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27554. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27555. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27556. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27557. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27558. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27559. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27560. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27561. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27562. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27563. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27564. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27565. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27566. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27567. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27568. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27569. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27570. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27571. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27572. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27573. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27574. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27575. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27576. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  27577. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27578. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27579. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27580. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27581. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27582. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27583. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27584. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27585. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27586. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27587. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27588. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27589. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27590. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27591. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27592. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27593. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27594. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27595. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27596. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27597. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27598. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27599. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27600. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27601. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  27602. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27603. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27604. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27605. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27606. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27607. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27608. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27609. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27610. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27611. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27612. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27613. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27614. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27615. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27616. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27617. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27618. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27619. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27620. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27621. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27622. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27623. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27624. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27625. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27626. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  27627. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27628. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27629. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27630. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27631. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27632. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27633. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27634. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27635. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27636. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27637. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27638. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27639. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27640. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27641. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27642. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27643. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27644. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27645. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27646. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27647. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27648. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27649. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27650. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27651. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  27652. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27653. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27654. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27655. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27656. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27657. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27658. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27659. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27660. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27661. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27662. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27663. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27664. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27665. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27666. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27667. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27668. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27669. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27670. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27671. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27672. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27673. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27674. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27675. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27676. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  27677. {"QUAT_TDM_RX_7 Port Mixer", "QUAT_TDM_TX_7", "QUAT_TDM_TX_7"},
  27678. {"QUAT_TDM_RX_7 Port Mixer", "QUIN_TDM_TX_7", "QUIN_TDM_TX_7"},
  27679. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7 Port Mixer"},
  27680. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27681. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27682. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27683. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27684. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27685. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27686. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27687. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27688. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27689. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27690. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27691. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27692. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27693. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27694. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27695. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27696. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27697. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27698. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27699. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27700. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27701. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27702. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27703. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27704. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  27705. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27706. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27707. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27708. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27709. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27710. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27711. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27712. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27713. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27714. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27715. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27716. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27717. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27718. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27719. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27720. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27721. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27722. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27723. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27724. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27725. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27726. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27727. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27728. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27729. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  27730. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27731. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27732. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27733. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27734. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27735. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27736. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27737. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27738. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27739. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27740. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27741. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27742. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27743. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27744. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27745. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27746. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27747. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27748. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27749. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27750. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27751. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27752. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27753. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27754. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  27755. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27756. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27757. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27758. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27759. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27760. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27761. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27762. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27763. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27764. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27765. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27766. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27767. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27768. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27769. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27770. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27771. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27772. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27773. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27774. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27775. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27776. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27777. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27778. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27779. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  27780. {"QUIN_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  27781. {"QUIN_TDM_RX_7 Port Mixer", "QUAT_TDM_TX_7", "QUAT_TDM_TX_7"},
  27782. {"QUIN_TDM_RX_7 Port Mixer", "QUIN_TDM_TX_7", "QUIN_TDM_TX_7"},
  27783. {"QUIN_TDM_RX_7", NULL, "QUIN_TDM_RX_7 Port Mixer"},
  27784. {"SEN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27785. {"SEN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27786. {"SEN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27787. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27788. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27789. {"SEN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27790. {"SEN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27791. {"SEN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27792. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27793. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27794. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27795. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27796. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27797. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27798. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27799. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27800. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27801. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27802. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27803. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27804. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Port Mixer"},
  27805. {"SEN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27806. {"SEN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27807. {"SEN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27808. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27809. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27810. {"SEN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27811. {"SEN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27812. {"SEN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27813. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27814. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27815. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27816. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27817. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27818. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27819. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27820. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27821. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27822. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27823. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27824. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27825. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Port Mixer"},
  27826. {"SEN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27827. {"SEN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27828. {"SEN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27829. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27830. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27831. {"SEN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27832. {"SEN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27833. {"SEN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27834. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27835. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27836. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27837. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27838. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27839. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27840. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27841. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27842. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27843. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27844. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27845. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27846. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Port Mixer"},
  27847. {"SEN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27848. {"SEN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27849. {"SEN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27850. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27851. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27852. {"SEN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27853. {"SEN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27854. {"SEN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27855. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27856. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27857. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27858. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27859. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27860. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27861. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27862. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27863. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27864. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27865. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27866. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27867. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Port Mixer"},
  27868. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27869. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27870. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27871. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27872. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27873. {"INT0_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  27874. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27875. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  27876. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27877. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27878. {"INT0_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  27879. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27880. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  27881. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27882. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27883. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27884. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27885. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27886. {"INT4_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  27887. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27888. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  27889. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27890. {"INT4_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  27891. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27892. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27893. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  27894. {"WSA_CDC_DMA_RX_0 Port Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27895. {"WSA_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27896. {"WSA_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27897. {"WSA_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27898. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Port Mixer"},
  27899. {"RX_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27900. {"RX_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27901. {"RX_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27902. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Port Mixer"},
  27903. {"RX_CDC_DMA_RX_1 Port Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27904. {"RX_CDC_DMA_RX_1 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27905. {"RX_CDC_DMA_RX_1 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27906. {"RX_CDC_DMA_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27907. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1 Port Mixer"},
  27908. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27909. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27910. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27911. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  27912. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27913. {"SLIMBUS_0_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  27914. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27915. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27916. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  27917. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  27918. {"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  27919. {"SLIMBUS_0_RX Port Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  27920. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  27921. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27922. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27923. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27924. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27925. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27926. {"SLIMBUS_0_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  27927. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27928. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  27929. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27930. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27931. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  27932. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  27933. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  27934. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  27935. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  27936. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  27937. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27938. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27939. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27940. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27941. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27942. {"AUX_PCM_RX Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27943. {"AUX_PCM_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27944. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  27945. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27946. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27947. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27948. {"SEC_AUXPCM_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27949. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  27950. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27951. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  27952. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27953. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  27954. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27955. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  27956. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27957. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  27958. {"QUIN_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27959. {"QUIN_AUXPCM_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  27960. {"QUIN_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27961. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUXPCM_RX Port Mixer"},
  27962. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  27963. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27964. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27965. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  27966. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27967. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27968. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  27969. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  27970. {"Voice Stub Tx Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  27971. {"Voice Stub Tx Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  27972. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  27973. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27974. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27975. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27976. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27977. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27978. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  27979. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  27980. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27981. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  27982. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  27983. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  27984. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27985. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  27986. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27987. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27988. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  27989. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  27990. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27991. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  27992. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27993. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27994. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  27995. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  27996. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27997. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  27998. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27999. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28000. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  28001. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  28002. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28003. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  28004. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28005. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28006. {"Voice2 Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28007. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  28008. {"STUB_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  28009. {"STUB_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  28010. {"STUB_RX", NULL, "STUB_RX Mixer"},
  28011. {"SLIMBUS_1_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  28012. {"SLIMBUS_1_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  28013. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  28014. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  28015. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  28016. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  28017. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  28018. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  28019. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  28020. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  28021. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  28022. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  28023. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  28024. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  28025. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  28026. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  28027. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  28028. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  28029. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28030. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28031. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28032. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  28033. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28034. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28035. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  28036. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  28037. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28038. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  28039. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  28040. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  28041. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  28042. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28043. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28044. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28045. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  28046. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28047. {"SLIMBUS_6_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  28048. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28049. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28050. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28051. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28052. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28053. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28054. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28055. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  28056. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28057. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  28058. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28059. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  28060. {"DISPLAY_PORT_RX1 Port Mixer", "MI2S_TX", "MI2S_TX"},
  28061. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1 Port Mixer"},
  28062. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28063. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  28064. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28065. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28066. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  28067. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28068. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28069. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28070. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28071. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28072. {"PRI_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28073. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28074. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28075. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28076. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28077. {"PRI_MI2S_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28078. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  28079. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28080. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28081. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28082. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28083. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28084. {"SEC_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28085. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28086. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28087. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28088. {"SEC_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28089. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  28090. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28091. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28092. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28093. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28094. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28095. {"TERT_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28096. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28097. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28098. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  28099. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28100. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28101. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28102. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28103. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28104. {"SEN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28105. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28106. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28107. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28108. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28109. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  28110. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28111. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28112. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28113. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28114. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28115. {"QUIN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28116. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28117. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28118. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  28119. {"SEN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28120. {"SEN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28121. {"SEN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28122. {"SEN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28123. {"SEN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28124. {"SEN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28125. {"SEN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28126. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Port Mixer"},
  28127. /* Backend Enablement */
  28128. {"BE_OUT", NULL, "PRI_I2S_RX"},
  28129. {"BE_OUT", NULL, "SEC_I2S_RX"},
  28130. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  28131. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  28132. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  28133. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  28134. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  28135. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  28136. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  28137. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  28138. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  28139. {"BE_OUT", NULL, "SLIMBUS_9_RX"},
  28140. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  28141. {"BE_OUT", NULL, "HDMI"},
  28142. {"BE_OUT", NULL, "DISPLAY_PORT"},
  28143. {"BE_OUT", NULL, "DISPLAY_PORT1"},
  28144. {"BE_OUT", NULL, "PRI_SPDIF_RX"},
  28145. {"BE_OUT", NULL, "SEC_SPDIF_RX"},
  28146. {"BE_OUT", NULL, "MI2S_RX"},
  28147. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  28148. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  28149. {"BE_OUT", NULL, "SEN_MI2S_RX"},
  28150. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  28151. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  28152. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  28153. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  28154. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  28155. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  28156. {"BE_OUT", NULL, "INT2_MI2S_RX"},
  28157. {"BE_OUT", NULL, "INT3_MI2S_RX"},
  28158. {"BE_OUT", NULL, "INT5_MI2S_RX"},
  28159. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  28160. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  28161. {"BE_OUT", NULL, "INT_FM_RX"},
  28162. {"BE_OUT", NULL, "PCM_RX"},
  28163. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  28164. {"BE_OUT", NULL, "AUX_PCM_RX"},
  28165. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  28166. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  28167. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  28168. {"BE_OUT", NULL, "QUIN_AUX_PCM_RX"},
  28169. {"BE_OUT", NULL, "SEN_AUX_PCM_RX"},
  28170. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  28171. {"BE_OUT", NULL, "INT_FM_RX"},
  28172. {"BE_OUT", NULL, "PCM_RX"},
  28173. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  28174. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  28175. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  28176. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  28177. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  28178. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  28179. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  28180. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  28181. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  28182. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  28183. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  28184. {"BE_OUT", NULL, "SEC_TDM_RX_7"},
  28185. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  28186. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  28187. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  28188. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  28189. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  28190. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  28191. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  28192. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  28193. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  28194. {"BE_OUT", NULL, "QUAT_TDM_RX_7"},
  28195. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  28196. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  28197. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  28198. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  28199. {"BE_OUT", NULL, "QUIN_TDM_RX_7"},
  28200. {"BE_OUT", NULL, "SEN_TDM_RX_0"},
  28201. {"BE_OUT", NULL, "SEN_TDM_RX_1"},
  28202. {"BE_OUT", NULL, "SEN_TDM_RX_2"},
  28203. {"BE_OUT", NULL, "SEN_TDM_RX_3"},
  28204. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_0"},
  28205. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_1"},
  28206. {"BE_OUT", NULL, "RX_CDC_DMA_RX_0"},
  28207. {"BE_OUT", NULL, "RX_CDC_DMA_RX_1"},
  28208. {"BE_OUT", NULL, "RX_CDC_DMA_RX_2"},
  28209. {"BE_OUT", NULL, "RX_CDC_DMA_RX_3"},
  28210. {"BE_OUT", NULL, "RX_CDC_DMA_RX_4"},
  28211. {"BE_OUT", NULL, "RX_CDC_DMA_RX_5"},
  28212. {"BE_OUT", NULL, "RX_CDC_DMA_RX_6"},
  28213. {"BE_OUT", NULL, "RX_CDC_DMA_RX_7"},
  28214. {"PRI_I2S_TX", NULL, "BE_IN"},
  28215. {"MI2S_TX", NULL, "BE_IN"},
  28216. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  28217. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  28218. {"PRI_MI2S_TX", NULL, "BE_IN"},
  28219. {"TERT_MI2S_TX", NULL, "BE_IN"},
  28220. {"INT0_MI2S_TX", NULL, "BE_IN"},
  28221. {"INT2_MI2S_TX", NULL, "BE_IN"},
  28222. {"INT3_MI2S_TX", NULL, "BE_IN"},
  28223. {"INT4_MI2S_TX", NULL, "BE_IN"},
  28224. {"INT5_MI2S_TX", NULL, "BE_IN"},
  28225. {"SEC_MI2S_TX", NULL, "BE_IN"},
  28226. {"SENARY_MI2S_TX", NULL, "BE_IN"},
  28227. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  28228. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  28229. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  28230. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  28231. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  28232. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  28233. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  28234. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  28235. {"SLIMBUS_9_TX", NULL, "BE_IN" },
  28236. {"USB_AUDIO_TX", NULL, "BE_IN" },
  28237. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  28238. {"INT_FM_TX", NULL, "BE_IN"},
  28239. {"PCM_TX", NULL, "BE_IN"},
  28240. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  28241. {"BE_OUT", NULL, "STUB_RX"},
  28242. {"STUB_TX", NULL, "BE_IN"},
  28243. {"STUB_1_TX", NULL, "BE_IN"},
  28244. {"BE_OUT", NULL, "AUX_PCM_RX"},
  28245. {"AUX_PCM_TX", NULL, "BE_IN"},
  28246. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  28247. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  28248. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  28249. {"QUIN_AUX_PCM_TX", NULL, "BE_IN"},
  28250. {"SEN_AUX_PCM_TX", NULL, "BE_IN"},
  28251. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  28252. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  28253. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  28254. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  28255. {"WSA_RX_0_VI_FB_LCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  28256. {"WSA_RX_0_VI_FB_RCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  28257. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  28258. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  28259. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  28260. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  28261. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  28262. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_LCH_MUX"},
  28263. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_RCH_MUX"},
  28264. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  28265. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  28266. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  28267. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  28268. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  28269. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  28270. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  28271. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  28272. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  28273. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  28274. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  28275. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  28276. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  28277. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  28278. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  28279. {"TERT_TDM_TX_7", NULL, "BE_IN"},
  28280. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  28281. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  28282. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  28283. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  28284. {"QUAT_TDM_TX_7", NULL, "BE_IN"},
  28285. {"AFE_LOOPBACK_TX", NULL, "BE_IN"},
  28286. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  28287. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  28288. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  28289. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  28290. {"QUIN_TDM_TX_7", NULL, "BE_IN"},
  28291. {"SEN_TDM_TX_0", NULL, "BE_IN"},
  28292. {"SEN_TDM_TX_1", NULL, "BE_IN"},
  28293. {"SEN_TDM_TX_2", NULL, "BE_IN"},
  28294. {"SEN_TDM_TX_3", NULL, "BE_IN"},
  28295. {"WSA_CDC_DMA_TX_0", NULL, "BE_IN"},
  28296. {"WSA_CDC_DMA_TX_1", NULL, "BE_IN"},
  28297. {"WSA_CDC_DMA_TX_2", NULL, "BE_IN"},
  28298. {"VA_CDC_DMA_TX_0", NULL, "BE_IN"},
  28299. {"VA_CDC_DMA_TX_1", NULL, "BE_IN"},
  28300. {"VA_CDC_DMA_TX_2", NULL, "BE_IN"},
  28301. {"TX_CDC_DMA_TX_0", NULL, "BE_IN"},
  28302. {"TX_CDC_DMA_TX_1", NULL, "BE_IN"},
  28303. {"TX_CDC_DMA_TX_2", NULL, "BE_IN"},
  28304. {"TX_CDC_DMA_TX_3", NULL, "BE_IN"},
  28305. {"TX_CDC_DMA_TX_4", NULL, "BE_IN"},
  28306. {"TX_CDC_DMA_TX_5", NULL, "BE_IN"},
  28307. {"PRI_SPDIF_TX", NULL, "BE_IN"},
  28308. {"SEC_SPDIF_TX", NULL, "BE_IN"},
  28309. };
  28310. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  28311. struct snd_pcm_hw_params *params)
  28312. {
  28313. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  28314. unsigned int be_id = rtd->dai_link->id;
  28315. if (be_id >= MSM_BACKEND_DAI_MAX) {
  28316. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  28317. return -EINVAL;
  28318. }
  28319. mutex_lock(&routing_lock);
  28320. msm_bedais[be_id].sample_rate = params_rate(params);
  28321. msm_bedais[be_id].channel = params_channels(params);
  28322. msm_bedais[be_id].format = params_format(params);
  28323. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  28324. __func__, msm_bedais[be_id].sample_rate,
  28325. msm_bedais[be_id].format, be_id);
  28326. mutex_unlock(&routing_lock);
  28327. return 0;
  28328. }
  28329. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  28330. {
  28331. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  28332. unsigned int be_id = rtd->dai_link->id;
  28333. int i, session_type, path_type, topology;
  28334. struct msm_pcm_routing_bdai_data *bedai;
  28335. struct msm_pcm_routing_fdai_data *fdai;
  28336. pr_debug("%s: substream->pcm->id:%s\n",
  28337. __func__, substream->pcm->id);
  28338. if (be_id >= MSM_BACKEND_DAI_MAX) {
  28339. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  28340. return -EINVAL;
  28341. }
  28342. bedai = &msm_bedais[be_id];
  28343. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  28344. 0 : 1);
  28345. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  28346. path_type = ADM_PATH_PLAYBACK;
  28347. else
  28348. path_type = ADM_PATH_LIVE_REC;
  28349. mutex_lock(&routing_lock);
  28350. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  28351. if (!is_mm_lsm_fe_id(i))
  28352. continue;
  28353. fdai = &fe_dai_map[i][session_type];
  28354. if (fdai->strm_id != INVALID_SESSION) {
  28355. int idx;
  28356. int port_id;
  28357. unsigned long copp =
  28358. session_copp_map[i][session_type][be_id];
  28359. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  28360. if (test_bit(idx, &copp))
  28361. break;
  28362. if (idx >= MAX_COPPS_PER_PORT) {
  28363. pr_debug("%s: copp idx is invalid, exiting\n",
  28364. __func__);
  28365. continue;
  28366. }
  28367. fdai->be_srate = bedai->sample_rate;
  28368. port_id = get_port_id(bedai->port_id);
  28369. topology = adm_get_topology_for_port_copp_idx(port_id,
  28370. idx);
  28371. msm_routing_unload_topology(topology);
  28372. adm_close(port_id, fdai->perf_mode, idx);
  28373. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  28374. __func__, copp, i, session_type, be_id,
  28375. topology);
  28376. clear_bit(idx,
  28377. &session_copp_map[i][session_type][be_id]);
  28378. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  28379. (fdai->passthr_mode == LEGACY_PCM))
  28380. msm_pcm_routing_deinit_pp(port_id,
  28381. topology);
  28382. }
  28383. }
  28384. bedai->active = 0;
  28385. bedai->sample_rate = 0;
  28386. bedai->channel = 0;
  28387. mutex_unlock(&routing_lock);
  28388. return 0;
  28389. }
  28390. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  28391. {
  28392. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  28393. unsigned int be_id = rtd->dai_link->id;
  28394. int i, path_type, topology;
  28395. int session_type = INVALID_SESSION;
  28396. struct msm_pcm_routing_bdai_data *bedai;
  28397. u32 channels, sample_rate;
  28398. uint16_t bits_per_sample = 16, voc_path_type, be_bit_width;
  28399. struct msm_pcm_routing_fdai_data *fdai;
  28400. u32 session_id;
  28401. struct media_format_info voc_be_media_format;
  28402. bool is_lsm;
  28403. pr_debug("%s: substream->pcm->id:%s\n",
  28404. __func__, substream->pcm->id);
  28405. if (be_id >= MSM_BACKEND_DAI_MAX) {
  28406. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  28407. return -EINVAL;
  28408. }
  28409. bedai = &msm_bedais[be_id];
  28410. mutex_lock(&routing_lock);
  28411. if (bedai->active == 1)
  28412. goto done; /* Ignore prepare if back-end already active */
  28413. /* AFE port is not active at this point. However, still
  28414. * go ahead setting active flag under the notion that
  28415. * QDSP6 is able to handle ADM starting before AFE port
  28416. * is started.
  28417. */
  28418. bedai->active = 1;
  28419. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  28420. if (!(is_mm_lsm_fe_id(i) &&
  28421. route_check_fe_id_adm_support(i)))
  28422. continue;
  28423. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
  28424. SESSION_TYPE_RX : SESSION_TYPE_TX;
  28425. fdai = &fe_dai_map[i][session_type];
  28426. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  28427. if (fdai->passthr_mode != LEGACY_PCM)
  28428. path_type = ADM_PATH_COMPRESSED_RX;
  28429. else
  28430. path_type = ADM_PATH_PLAYBACK;
  28431. } else {
  28432. if ((fdai->passthr_mode != LEGACY_PCM) &&
  28433. (fdai->passthr_mode != LISTEN))
  28434. path_type = ADM_PATH_COMPRESSED_TX;
  28435. else
  28436. path_type = ADM_PATH_LIVE_REC;
  28437. }
  28438. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  28439. (i <= MSM_FRONTEND_DAI_LSM8);
  28440. if (fdai->strm_id != INVALID_SESSION) {
  28441. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  28442. int port_id = get_port_id(bedai->port_id);
  28443. if (session_type == SESSION_TYPE_TX &&
  28444. fdai->be_srate &&
  28445. (fdai->be_srate != bedai->sample_rate)) {
  28446. pr_debug("%s: flush strm %d diff BE rates\n",
  28447. __func__,
  28448. fdai->strm_id);
  28449. if (fdai->event_info.event_func)
  28450. fdai->event_info.event_func(
  28451. MSM_PCM_RT_EVT_BUF_RECFG,
  28452. fdai->event_info.priv_data);
  28453. fdai->be_srate = 0; /* might not need it */
  28454. }
  28455. bits_per_sample = msm_routing_get_bit_width(
  28456. bedai->format);
  28457. app_type =
  28458. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  28459. if (app_type && is_lsm) {
  28460. app_type_idx =
  28461. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  28462. sample_rate =
  28463. fe_dai_app_type_cfg[i][session_type][be_id]
  28464. .sample_rate;
  28465. bits_per_sample =
  28466. lsm_app_type_cfg[app_type_idx].bit_width;
  28467. } else if (app_type) {
  28468. app_type_idx =
  28469. msm_pcm_routing_get_app_type_idx(app_type);
  28470. sample_rate =
  28471. fe_dai_app_type_cfg[i][session_type]
  28472. [be_id].sample_rate;
  28473. bits_per_sample =
  28474. app_type_cfg[app_type_idx].bit_width;
  28475. } else
  28476. sample_rate = bedai->sample_rate;
  28477. /*
  28478. * check if ADM needs to be configured with different
  28479. * channel mapping than backend
  28480. */
  28481. if (!bedai->adm_override_ch)
  28482. channels = bedai->channel;
  28483. else
  28484. channels = bedai->adm_override_ch;
  28485. acdb_dev_id =
  28486. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  28487. topology = msm_routing_get_adm_topology(i, session_type,
  28488. be_id);
  28489. if ((fdai->passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  28490. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_GEN)
  28491. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_IEC61937))
  28492. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  28493. be_bit_width = msm_routing_get_bit_width(
  28494. bedai->format);
  28495. if (hifi_filter_enabled && (bedai->sample_rate == 384000
  28496. || bedai->sample_rate == 352800) &&
  28497. be_bit_width == 32)
  28498. bits_per_sample = msm_routing_get_bit_width(
  28499. SNDRV_PCM_FORMAT_S32_LE);
  28500. copp_idx = adm_open(port_id, path_type,
  28501. sample_rate, channels, topology,
  28502. fdai->perf_mode, bits_per_sample,
  28503. app_type, acdb_dev_id,
  28504. session_type);
  28505. if ((copp_idx < 0) ||
  28506. (copp_idx >= MAX_COPPS_PER_PORT)) {
  28507. pr_err("%s: adm open failed\n", __func__);
  28508. mutex_unlock(&routing_lock);
  28509. return -EINVAL;
  28510. }
  28511. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  28512. __func__, i, session_type, be_id);
  28513. set_bit(copp_idx,
  28514. &session_copp_map[i][session_type][be_id]);
  28515. if (msm_is_resample_needed(
  28516. sample_rate,
  28517. bedai->sample_rate))
  28518. adm_copp_mfc_cfg(port_id, copp_idx,
  28519. bedai->sample_rate);
  28520. msm_pcm_routing_build_matrix(i, session_type, path_type,
  28521. fdai->perf_mode, fdai->passthr_mode);
  28522. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  28523. (fdai->passthr_mode == LEGACY_PCM))
  28524. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  28525. topology, channels);
  28526. }
  28527. }
  28528. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  28529. session_id = msm_pcm_routing_get_voc_sessionid(i);
  28530. if (session_id) {
  28531. pr_debug("%s voice session_id: 0x%x\n", __func__,
  28532. session_id);
  28533. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  28534. voc_path_type = RX_PATH;
  28535. else
  28536. voc_path_type = TX_PATH;
  28537. voc_set_route_flag(session_id, voc_path_type, 1);
  28538. memset(&voc_be_media_format, 0,
  28539. sizeof(struct media_format_info));
  28540. voc_be_media_format.port_id = bedai->port_id;
  28541. voc_be_media_format.num_channels = bedai->channel;
  28542. voc_be_media_format.sample_rate = bedai->sample_rate;
  28543. voc_be_media_format.bits_per_sample = bedai->format;
  28544. /* Defaulting this to 1 for voice call usecases */
  28545. voc_be_media_format.channel_mapping[0] = 1;
  28546. voc_set_device_config(session_id, voc_path_type,
  28547. &voc_be_media_format);
  28548. if (voc_get_route_flag(session_id, RX_PATH) &&
  28549. voc_get_route_flag(session_id, TX_PATH))
  28550. voc_enable_device(session_id);
  28551. }
  28552. }
  28553. /* Check if backend is an external ec ref port and set as needed */
  28554. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  28555. memset(&voc_be_media_format, 0,
  28556. sizeof(struct media_format_info));
  28557. /* Get format info for ec ref port from msm_bedais[] */
  28558. voc_be_media_format.port_id = bedai->port_id;
  28559. voc_be_media_format.num_channels = bedai->channel;
  28560. voc_be_media_format.bits_per_sample = bedai->format;
  28561. voc_be_media_format.sample_rate = bedai->sample_rate;
  28562. /* Defaulting this to 1 for voice call usecases */
  28563. voc_be_media_format.channel_mapping[0] = 1;
  28564. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  28565. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  28566. __func__, voc_be_media_format.port_id,
  28567. voc_be_media_format.num_channels,
  28568. voc_be_media_format.bits_per_sample,
  28569. voc_be_media_format.sample_rate);
  28570. }
  28571. done:
  28572. mutex_unlock(&routing_lock);
  28573. return 0;
  28574. }
  28575. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  28576. int fe_id)
  28577. {
  28578. int index, topo_id, be_idx;
  28579. unsigned long pp_config = 0;
  28580. bool mute_on;
  28581. int latency, session_type;
  28582. bool compr_passthr_mode = true;
  28583. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  28584. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX) {
  28585. pr_err("%s: Device pp params on invalid port %d\n",
  28586. __func__, port_id);
  28587. return -EINVAL;
  28588. }
  28589. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  28590. if (port_id == msm_bedais[be_idx].port_id)
  28591. break;
  28592. }
  28593. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  28594. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  28595. return -EINVAL;
  28596. }
  28597. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  28598. if (msm_bedais_pp_params[index].port_id == port_id)
  28599. break;
  28600. }
  28601. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  28602. pr_err("%s: Invalid backend pp params index %d\n",
  28603. __func__, index);
  28604. return -EINVAL;
  28605. }
  28606. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  28607. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  28608. pr_err("%s: Invalid passthrough topology 0x%x\n",
  28609. __func__, topo_id);
  28610. return -EINVAL;
  28611. }
  28612. session_type =
  28613. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  28614. SESSION_TYPE_RX : SESSION_TYPE_TX;
  28615. if ((fe_dai_map[fe_id][session_type].passthr_mode == LEGACY_PCM) ||
  28616. (fe_dai_map[fe_id][session_type].passthr_mode == LISTEN))
  28617. compr_passthr_mode = false;
  28618. pp_config = msm_bedais_pp_params[index].pp_params_config;
  28619. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  28620. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  28621. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  28622. mute_on = msm_bedais_pp_params[index].mute_on;
  28623. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  28624. adm_send_compressed_device_mute(port_id,
  28625. copp_idx,
  28626. mute_on);
  28627. }
  28628. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  28629. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  28630. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  28631. &pp_config);
  28632. latency = msm_bedais_pp_params[index].latency;
  28633. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  28634. adm_send_compressed_device_latency(port_id,
  28635. copp_idx,
  28636. latency);
  28637. }
  28638. return 0;
  28639. }
  28640. static uint32_t msm_routing_get_topology(size_t data_size, void *data)
  28641. {
  28642. uint32_t topology = NULL_COPP_TOPOLOGY;
  28643. void *cal_info = NULL;
  28644. uint32_t size = 0;
  28645. /* Retrieve cal_info size from cal data*/
  28646. if (data_size < sizeof(struct audio_cal_type_basic) +
  28647. sizeof(struct audio_cal_info_adm_top)) {
  28648. pr_err("%s: Invalid data size: %zd\n", __func__, data_size);
  28649. goto done;
  28650. }
  28651. size = data_size - sizeof(struct audio_cal_type_basic);
  28652. cal_info = kzalloc(size, GFP_KERNEL);
  28653. if (!cal_info)
  28654. goto done;
  28655. memcpy(cal_info,
  28656. ((uint8_t *)data + sizeof(struct audio_cal_type_basic)), size);
  28657. topology = ((struct audio_cal_info_adm_top *)cal_info)->topology;
  28658. kfree(cal_info);
  28659. cal_info = NULL;
  28660. done:
  28661. pr_debug("%s: Using topology %d\n", __func__, topology);
  28662. return topology;
  28663. }
  28664. static void msm_routing_load_topology(size_t data_size, void *data)
  28665. {
  28666. uint32_t topology_id;
  28667. int ret = -EINVAL;
  28668. topology_id = msm_routing_get_topology(data_size, data);
  28669. if (topology_id != NULL_COPP_TOPOLOGY)
  28670. ret = q6core_load_unload_topo_modules(topology_id,
  28671. CORE_LOAD_TOPOLOGY);
  28672. if (ret < 0)
  28673. pr_debug("%s %d load topology failed\n",
  28674. __func__, topology_id);
  28675. }
  28676. static void msm_routing_unload_topology(uint32_t topology_id)
  28677. {
  28678. int ret = -EINVAL;
  28679. if (topology_id != NULL_COPP_TOPOLOGY)
  28680. ret = q6core_load_unload_topo_modules(topology_id,
  28681. CORE_UNLOAD_TOPOLOGY);
  28682. if (ret < 0)
  28683. pr_debug("%s %d unload topology failed\n",
  28684. __func__, topology_id);
  28685. }
  28686. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  28687. struct snd_ctl_elem_value *ucontrol)
  28688. {
  28689. int pp_id = ucontrol->value.integer.value[0];
  28690. int port_id = 0;
  28691. int index, be_idx, i, topo_id, idx;
  28692. bool mute;
  28693. int latency, session_type;
  28694. bool compr_passthr_mode = true;
  28695. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  28696. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  28697. port_id = msm_bedais[be_idx].port_id;
  28698. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX)
  28699. break;
  28700. }
  28701. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  28702. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  28703. return -EINVAL;
  28704. }
  28705. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  28706. if (msm_bedais_pp_params[index].port_id == port_id)
  28707. break;
  28708. }
  28709. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  28710. pr_err("%s: Invalid pp params backend index %d\n",
  28711. __func__, index);
  28712. return -EINVAL;
  28713. }
  28714. session_type =
  28715. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  28716. SESSION_TYPE_RX : SESSION_TYPE_TX;
  28717. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  28718. MSM_FRONTEND_DAI_MM_SIZE) {
  28719. if ((fe_dai_map[i][session_type].passthr_mode == LEGACY_PCM) ||
  28720. (fe_dai_map[i][session_type].passthr_mode == LISTEN))
  28721. compr_passthr_mode = false;
  28722. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  28723. unsigned long copp =
  28724. session_copp_map[i]
  28725. [SESSION_TYPE_RX][be_idx];
  28726. if (!test_bit(idx, &copp))
  28727. continue;
  28728. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  28729. idx);
  28730. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  28731. continue;
  28732. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  28733. __func__, port_id, copp, msm_bedais[be_idx].active,
  28734. fe_dai_map[i][session_type].passthr_mode);
  28735. switch (pp_id) {
  28736. case ADM_PP_PARAM_MUTE_ID:
  28737. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  28738. mute = ucontrol->value.integer.value[1] ? true : false;
  28739. msm_bedais_pp_params[index].mute_on = mute;
  28740. set_bit(ADM_PP_PARAM_MUTE_BIT,
  28741. &msm_bedais_pp_params[index].pp_params_config);
  28742. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  28743. adm_send_compressed_device_mute(port_id,
  28744. idx, mute);
  28745. break;
  28746. case ADM_PP_PARAM_LATENCY_ID:
  28747. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  28748. msm_bedais_pp_params[index].latency =
  28749. ucontrol->value.integer.value[1];
  28750. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  28751. &msm_bedais_pp_params[index].pp_params_config);
  28752. latency = msm_bedais_pp_params[index].latency =
  28753. ucontrol->value.integer.value[1];
  28754. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  28755. adm_send_compressed_device_latency(port_id,
  28756. idx, latency);
  28757. break;
  28758. default:
  28759. pr_info("%s, device pp param %d not supported\n",
  28760. __func__, pp_id);
  28761. break;
  28762. }
  28763. }
  28764. }
  28765. return 0;
  28766. }
  28767. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  28768. struct snd_ctl_elem_value *ucontrol)
  28769. {
  28770. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  28771. return 0;
  28772. }
  28773. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  28774. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  28775. 0, 3, msm_routing_get_device_pp_params_mixer,
  28776. msm_routing_put_device_pp_params_mixer),
  28777. };
  28778. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  28779. struct snd_ctl_elem_value *ucontrol)
  28780. {
  28781. ucontrol->value.integer.value[0] =
  28782. core_get_license_status(ASM_MEDIA_FMT_APTX);
  28783. pr_debug("%s: status %ld\n", __func__,
  28784. ucontrol->value.integer.value[0]);
  28785. return 0;
  28786. }
  28787. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  28788. struct snd_ctl_elem_value *ucontrol)
  28789. {
  28790. int32_t status = 0;
  28791. status = core_set_license(ucontrol->value.integer.value[0],
  28792. APTX_CLASSIC_DEC_LICENSE_ID);
  28793. pr_debug("%s: status %d\n", __func__, status);
  28794. return status;
  28795. }
  28796. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  28797. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  28798. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  28799. msm_aptx_dec_license_control_put),
  28800. };
  28801. static int msm_routing_put_port_chmap_mixer(struct snd_kcontrol *kcontrol,
  28802. struct snd_ctl_elem_value *ucontrol)
  28803. {
  28804. uint8_t channel_map[PCM_FORMAT_MAX_NUM_CHANNEL_V8];
  28805. uint32_t be_idx = ucontrol->value.integer.value[0];
  28806. int i;
  28807. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  28808. pr_err("%s: Invalid Backend index %d\n", __func__, be_idx);
  28809. return -EINVAL;
  28810. }
  28811. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; i++) {
  28812. channel_map[i] = (char)(ucontrol->value.integer.value[i + 1]);
  28813. if (channel_map[i] > PCM_MAX_CHMAP_ID) {
  28814. pr_err("%s: Invalid channel map %d\n",
  28815. __func__, channel_map[i]);
  28816. return -EINVAL;
  28817. }
  28818. }
  28819. adm_set_port_multi_ch_map(channel_map, msm_bedais[be_idx].port_id);
  28820. return 0;
  28821. }
  28822. static const struct snd_kcontrol_new port_multi_channel_map_mixer_controls[] = {
  28823. SOC_SINGLE_MULTI_EXT("Backend Device Channel Map", SND_SOC_NOPM, 0,
  28824. MSM_BACKEND_DAI_MAX, 0,
  28825. PCM_FORMAT_MAX_NUM_CHANNEL_V8 + 1, NULL,
  28826. msm_routing_put_port_chmap_mixer),
  28827. };
  28828. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  28829. struct snd_ctl_elem_info *uinfo)
  28830. {
  28831. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  28832. uinfo->count = sizeof(be_dai_name_table);
  28833. return 0;
  28834. }
  28835. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  28836. unsigned int __user *bytes,
  28837. unsigned int size)
  28838. {
  28839. int i;
  28840. int ret = 0;
  28841. if (size < sizeof(be_dai_name_table)) {
  28842. pr_err("%s: invalid size %d requested, returning\n",
  28843. __func__, size);
  28844. ret = -EINVAL;
  28845. goto done;
  28846. }
  28847. /*
  28848. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  28849. * needed when adding new backends
  28850. */
  28851. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  28852. be_dai_name_table[i].be_id = i;
  28853. strlcpy(be_dai_name_table[i].be_name,
  28854. msm_bedais[i].name,
  28855. LPASS_BE_NAME_MAX_LENGTH);
  28856. }
  28857. ret = copy_to_user(bytes, &be_dai_name_table,
  28858. sizeof(be_dai_name_table));
  28859. if (ret) {
  28860. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  28861. ret = -EFAULT;
  28862. }
  28863. done:
  28864. return ret;
  28865. }
  28866. static const struct snd_kcontrol_new
  28867. msm_routing_be_dai_name_table_mixer_controls[] = {
  28868. {
  28869. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  28870. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  28871. .info = msm_routing_be_dai_name_table_info,
  28872. .name = "Backend DAI Name Table",
  28873. .tlv.c = snd_soc_bytes_tlv_callback,
  28874. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  28875. .max = sizeof(be_dai_name_table),
  28876. .get = msm_routing_be_dai_name_table_tlv_get,
  28877. }
  28878. },
  28879. };
  28880. static int msm_routing_stereo_channel_reverse_control_get(
  28881. struct snd_kcontrol *kcontrol,
  28882. struct snd_ctl_elem_value *ucontrol)
  28883. {
  28884. ucontrol->value.integer.value[0] = swap_ch;
  28885. pr_debug("%s: Swap channel value: %ld\n", __func__,
  28886. ucontrol->value.integer.value[0]);
  28887. return 0;
  28888. }
  28889. static int msm_routing_stereo_channel_reverse_control_put(
  28890. struct snd_kcontrol *kcontrol,
  28891. struct snd_ctl_elem_value *ucontrol)
  28892. {
  28893. int i, idx, be_index, port_id;
  28894. int ret = 0;
  28895. unsigned long copp;
  28896. pr_debug("%s Swap channel value:%ld\n", __func__,
  28897. ucontrol->value.integer.value[0]);
  28898. swap_ch = ucontrol->value.integer.value[0];
  28899. mutex_lock(&routing_lock);
  28900. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  28901. port_id = msm_bedais[be_index].port_id;
  28902. if (!msm_bedais[be_index].active)
  28903. continue;
  28904. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  28905. MSM_FRONTEND_DAI_MM_SIZE) {
  28906. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  28907. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  28908. if (!test_bit(idx, &copp))
  28909. continue;
  28910. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  28911. __func__, port_id, idx);
  28912. ret = adm_swap_speaker_channels(
  28913. port_id, idx,
  28914. msm_bedais[be_index].sample_rate,
  28915. swap_ch);
  28916. if (ret) {
  28917. pr_err("%s:Swap_channel failed, err=%d\n",
  28918. __func__, ret);
  28919. goto done;
  28920. }
  28921. }
  28922. }
  28923. }
  28924. done:
  28925. mutex_unlock(&routing_lock);
  28926. return ret;
  28927. }
  28928. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  28929. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  28930. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  28931. msm_routing_stereo_channel_reverse_control_put),
  28932. };
  28933. static int msm_routing_instance_id_support_info(struct snd_kcontrol *kcontrol,
  28934. struct snd_ctl_elem_info *uinfo)
  28935. {
  28936. uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
  28937. uinfo->count = 1;
  28938. return 0;
  28939. }
  28940. static int msm_routing_instance_id_support_put(
  28941. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  28942. {
  28943. bool supported = ucontrol->value.integer.value[0] ? true : false;
  28944. q6common_update_instance_id_support(supported);
  28945. return 0;
  28946. }
  28947. static int msm_routing_instance_id_support_get(
  28948. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  28949. {
  28950. bool supported = false;
  28951. supported = q6common_is_instance_id_supported();
  28952. ucontrol->value.integer.value[0] = supported ? 1 : 0;
  28953. return 0;
  28954. }
  28955. static const struct snd_kcontrol_new
  28956. msm_routing_feature_support_mixer_controls[] = {
  28957. {
  28958. .access = SNDRV_CTL_ELEM_ACCESS_READ |
  28959. SNDRV_CTL_ELEM_ACCESS_WRITE,
  28960. .info = msm_routing_instance_id_support_info,
  28961. .name = "Instance ID Support",
  28962. .put = msm_routing_instance_id_support_put,
  28963. .get = msm_routing_instance_id_support_get,
  28964. },
  28965. };
  28966. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  28967. .hw_params = msm_pcm_routing_hw_params,
  28968. .close = msm_pcm_routing_close,
  28969. .prepare = msm_pcm_routing_prepare,
  28970. };
  28971. #ifdef CONFIG_DOA_PARAMS_ENABLED
  28972. void msm_routing_add_doa_control(struct snd_soc_component *component)
  28973. {
  28974. snd_soc_add_component_controls(component,
  28975. msm_source_doa_tracking_controls,
  28976. ARRAY_SIZE(msm_source_doa_tracking_controls));
  28977. }
  28978. #else
  28979. void msm_routing_add_doa_control(struct snd_soc_component *component)
  28980. {
  28981. return;
  28982. }
  28983. #endif
  28984. /* Not used but frame seems to require it */
  28985. static int msm_routing_probe(struct snd_soc_component *component)
  28986. {
  28987. snd_soc_dapm_new_controls(&component->dapm, msm_qdsp6_widgets,
  28988. ARRAY_SIZE(msm_qdsp6_widgets));
  28989. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_OUT");
  28990. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_IN");
  28991. snd_soc_dapm_add_routes(&component->dapm, intercon,
  28992. ARRAY_SIZE(intercon));
  28993. snd_soc_dapm_new_widgets(component->dapm.card);
  28994. snd_soc_add_component_controls(component, lsm_controls,
  28995. ARRAY_SIZE(lsm_controls));
  28996. snd_soc_add_component_controls(component, aanc_slim_0_rx_mux,
  28997. ARRAY_SIZE(aanc_slim_0_rx_mux));
  28998. snd_soc_add_component_controls(component, aanc_noise_level,
  28999. ARRAY_SIZE(aanc_noise_level));
  29000. snd_soc_add_component_controls(component, msm_voc_session_controls,
  29001. ARRAY_SIZE(msm_voc_session_controls));
  29002. snd_soc_add_component_controls(component, app_type_cfg_controls,
  29003. ARRAY_SIZE(app_type_cfg_controls));
  29004. snd_soc_add_component_controls(component, lsm_app_type_cfg_controls,
  29005. ARRAY_SIZE(lsm_app_type_cfg_controls));
  29006. snd_soc_add_component_controls(component, module_cfg_controls,
  29007. ARRAY_SIZE(module_cfg_controls));
  29008. snd_soc_add_component_controls(component,
  29009. stereo_to_custom_stereo_controls,
  29010. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  29011. snd_soc_add_component_controls(component, ec_ref_param_controls,
  29012. ARRAY_SIZE(ec_ref_param_controls));
  29013. snd_soc_add_component_controls(component, channel_mixer_controls,
  29014. ARRAY_SIZE(channel_mixer_controls));
  29015. msm_qti_pp_add_controls(component);
  29016. msm_dts_srs_tm_add_controls(component);
  29017. msm_dolby_dap_add_controls(component);
  29018. snd_soc_add_component_controls(component,
  29019. use_ds1_or_ds2_controls,
  29020. ARRAY_SIZE(use_ds1_or_ds2_controls));
  29021. snd_soc_add_component_controls(component,
  29022. hifi_filter_controls,
  29023. ARRAY_SIZE(hifi_filter_controls));
  29024. snd_soc_add_component_controls(component,
  29025. use_ffecns_freeze_event_controls,
  29026. ARRAY_SIZE(use_ffecns_freeze_event_controls));
  29027. snd_soc_add_component_controls(component,
  29028. device_pp_params_mixer_controls,
  29029. ARRAY_SIZE(device_pp_params_mixer_controls));
  29030. snd_soc_add_component_controls(component,
  29031. msm_routing_be_dai_name_table_mixer_controls,
  29032. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  29033. /* Add doa control based on config */
  29034. msm_routing_add_doa_control(component);
  29035. snd_soc_add_component_controls(component, msm_source_tracking_controls,
  29036. ARRAY_SIZE(msm_source_tracking_controls));
  29037. snd_soc_add_component_controls(component, adm_channel_config_controls,
  29038. ARRAY_SIZE(adm_channel_config_controls));
  29039. snd_soc_add_component_controls(component, aptx_dec_license_controls,
  29040. ARRAY_SIZE(aptx_dec_license_controls));
  29041. snd_soc_add_component_controls(component,
  29042. stereo_channel_reverse_control,
  29043. ARRAY_SIZE(stereo_channel_reverse_control));
  29044. snd_soc_add_component_controls(
  29045. component, msm_routing_feature_support_mixer_controls,
  29046. ARRAY_SIZE(msm_routing_feature_support_mixer_controls));
  29047. snd_soc_add_component_controls(component,
  29048. port_multi_channel_map_mixer_controls,
  29049. ARRAY_SIZE(port_multi_channel_map_mixer_controls));
  29050. return 0;
  29051. }
  29052. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  29053. {
  29054. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  29055. }
  29056. void msm_routing_pcm_free(struct snd_pcm *pcm)
  29057. {
  29058. msm_pcm_routing_hwdep_free(pcm);
  29059. }
  29060. static struct snd_soc_component_driver msm_soc_routing_component = {
  29061. .name = DRV_NAME,
  29062. .ops = &msm_routing_pcm_ops,
  29063. .probe = msm_routing_probe,
  29064. .pcm_new = msm_routing_pcm_new,
  29065. .pcm_free = msm_routing_pcm_free,
  29066. };
  29067. static int msm_routing_pcm_probe(struct platform_device *pdev)
  29068. {
  29069. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  29070. return snd_soc_register_component(&pdev->dev,
  29071. &msm_soc_routing_component,
  29072. NULL, 0);
  29073. }
  29074. static int msm_routing_pcm_remove(struct platform_device *pdev)
  29075. {
  29076. snd_soc_unregister_component(&pdev->dev);
  29077. return 0;
  29078. }
  29079. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  29080. {.compatible = "qcom,msm-pcm-routing"},
  29081. {}
  29082. };
  29083. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  29084. static struct platform_driver msm_routing_pcm_driver = {
  29085. .driver = {
  29086. .name = "msm-pcm-routing",
  29087. .owner = THIS_MODULE,
  29088. .of_match_table = msm_pcm_routing_dt_match,
  29089. .suppress_bind_attrs = true,
  29090. },
  29091. .probe = msm_routing_pcm_probe,
  29092. .remove = msm_routing_pcm_remove,
  29093. };
  29094. int msm_routing_check_backend_enabled(int fedai_id)
  29095. {
  29096. int i;
  29097. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  29098. /* bad ID assigned in machine driver */
  29099. pr_err("%s: bad MM ID\n", __func__);
  29100. return 0;
  29101. }
  29102. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  29103. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  29104. return msm_bedais[i].active;
  29105. }
  29106. return 0;
  29107. }
  29108. static int get_cal_type_index(int32_t cal_type)
  29109. {
  29110. int ret = -EINVAL;
  29111. switch (cal_type) {
  29112. case ADM_TOPOLOGY_CAL_TYPE:
  29113. ret = ADM_TOPOLOGY_CAL_TYPE_IDX;
  29114. break;
  29115. case ADM_LSM_TOPOLOGY_CAL_TYPE:
  29116. ret = ADM_LSM_TOPOLOGY_CAL_TYPE_IDX;
  29117. break;
  29118. default:
  29119. pr_err("%s: Invalid cal type %d\n", __func__, cal_type);
  29120. }
  29121. return ret;
  29122. }
  29123. static int msm_routing_set_cal(int32_t cal_type,
  29124. size_t data_size, void *data)
  29125. {
  29126. int ret = 0;
  29127. int cal_index;
  29128. pr_debug("%s\n", __func__);
  29129. cal_index = get_cal_type_index(cal_type);
  29130. if (cal_index < 0) {
  29131. pr_err("%s: Could not get cal index %d\n",
  29132. __func__, cal_index);
  29133. ret = -EINVAL;
  29134. goto done;
  29135. }
  29136. ret = cal_utils_set_cal(data_size, data, cal_data[cal_index], 0, NULL);
  29137. if (ret < 0) {
  29138. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  29139. __func__, ret, cal_type);
  29140. ret = -EINVAL;
  29141. goto done;
  29142. }
  29143. /* Pre-load if it is ADM topology */
  29144. if ((cal_index == ADM_TOPOLOGY_CAL_TYPE_IDX) ||
  29145. (cal_index == ADM_LSM_TOPOLOGY_CAL_TYPE_IDX)) {
  29146. msm_routing_load_topology(data_size, data);
  29147. }
  29148. done:
  29149. return ret;
  29150. }
  29151. static void msm_routing_delete_cal_data(void)
  29152. {
  29153. pr_debug("%s\n", __func__);
  29154. cal_utils_destroy_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0]);
  29155. }
  29156. static int msm_routing_init_cal_data(void)
  29157. {
  29158. int ret = 0;
  29159. struct cal_type_info cal_type_info[] = {
  29160. {{ADM_TOPOLOGY_CAL_TYPE,
  29161. {NULL, NULL, NULL,
  29162. msm_routing_set_cal, NULL, NULL} },
  29163. {NULL, NULL, cal_utils_match_buf_num} },
  29164. {{ADM_LSM_TOPOLOGY_CAL_TYPE,
  29165. {NULL, NULL, NULL,
  29166. msm_routing_set_cal, NULL, NULL} },
  29167. {NULL, NULL, cal_utils_match_buf_num} },
  29168. };
  29169. pr_debug("%s\n", __func__);
  29170. ret = cal_utils_create_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0],
  29171. &cal_type_info[0]);
  29172. if (ret < 0) {
  29173. pr_err("%s: could not create cal type!\n",
  29174. __func__);
  29175. ret = -EINVAL;
  29176. goto err;
  29177. }
  29178. return ret;
  29179. err:
  29180. msm_routing_delete_cal_data();
  29181. return ret;
  29182. }
  29183. int __init msm_soc_routing_platform_init(void)
  29184. {
  29185. mutex_init(&routing_lock);
  29186. if (msm_routing_init_cal_data())
  29187. pr_err("%s: could not init cal data!\n", __func__);
  29188. afe_set_routing_callback(
  29189. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  29190. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  29191. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  29192. return platform_driver_register(&msm_routing_pcm_driver);
  29193. }
  29194. void msm_soc_routing_platform_exit(void)
  29195. {
  29196. msm_routing_delete_cal_data();
  29197. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  29198. mutex_destroy(&routing_lock);
  29199. platform_driver_unregister(&msm_routing_pcm_driver);
  29200. }
  29201. MODULE_DESCRIPTION("MSM routing platform driver");
  29202. MODULE_LICENSE("GPL v2");