msm-pcm-routing-v2.c 1.2 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423
  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;
  64. static int slim0_rx_aanc_fb_port;
  65. static int msm_route_ec_ref_rx;
  66. static int msm_ec_ref_ch = 4;
  67. static int msm_ec_ref_ch_downmixed = 4;
  68. static int msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  69. static int msm_ec_ref_sampling_rate = 48000;
  70. static uint32_t voc_session_id = ALL_SESSION_VSID;
  71. static int msm_route_ext_ec_ref;
  72. static bool is_custom_stereo_on;
  73. static bool is_ds2_on;
  74. static bool swap_ch;
  75. static bool hifi_filter_enabled;
  76. static int aanc_level;
  77. static int num_app_cfg_types;
  78. static int msm_ec_ref_port_id;
  79. static int afe_loopback_tx_port_index;
  80. static int afe_loopback_tx_port_id = -1;
  81. #define WEIGHT_0_DB 0x4000
  82. /* all the FEs which can support channel mixer */
  83. static struct msm_pcm_channel_mixer channel_mixer[MSM_FRONTEND_DAI_MM_SIZE];
  84. /* all the FES which can support channel mixer for bidirection */
  85. static struct msm_pcm_channel_mixer
  86. channel_mixer_v2[MSM_FRONTEND_DAI_MM_SIZE][2];
  87. /* input BE for each FE */
  88. static int channel_input[MSM_FRONTEND_DAI_MM_SIZE][ADM_MAX_CHANNELS];
  89. enum {
  90. MADNONE,
  91. MADAUDIO,
  92. MADBEACON,
  93. MADULTRASOUND,
  94. MADSWAUDIO,
  95. };
  96. #define ADM_LSM_PORT_INDEX 9
  97. #define SLIMBUS_0_TX_TEXT "SLIMBUS_0_TX"
  98. #define SLIMBUS_1_TX_TEXT "SLIMBUS_1_TX"
  99. #define SLIMBUS_2_TX_TEXT "SLIMBUS_2_TX"
  100. #define SLIMBUS_3_TX_TEXT "SLIMBUS_3_TX"
  101. #define SLIMBUS_4_TX_TEXT "SLIMBUS_4_TX"
  102. #define SLIMBUS_5_TX_TEXT "SLIMBUS_5_TX"
  103. #define TERT_MI2S_TX_TEXT "TERT_MI2S_TX"
  104. #define QUAT_MI2S_TX_TEXT "QUAT_MI2S_TX"
  105. #define ADM_LSM_TX_TEXT "ADM_LSM_TX"
  106. #define INT3_MI2S_TX_TEXT "INT3_MI2S_TX"
  107. #define VA_CDC_DMA_TX_0_TEXT "VA_CDC_DMA_TX_0"
  108. #define VA_CDC_DMA_TX_1_TEXT "VA_CDC_DMA_TX_1"
  109. #define VA_CDC_DMA_TX_2_TEXT "VA_CDC_DMA_TX_2"
  110. #define TX_CDC_DMA_TX_3_TEXT "TX_CDC_DMA_TX_3"
  111. #define QUIN_TDM_TX_TEXT "QUIN_TDM_TX_0"
  112. #define TERT_TDM_TX_TEXT "TERT_TDM_TX_0"
  113. #define LSM_FUNCTION_TEXT "LSM Function"
  114. static const char * const lsm_port_text[] = {
  115. "None",
  116. SLIMBUS_0_TX_TEXT, SLIMBUS_1_TX_TEXT, SLIMBUS_2_TX_TEXT,
  117. SLIMBUS_3_TX_TEXT, SLIMBUS_4_TX_TEXT, SLIMBUS_5_TX_TEXT,
  118. TERT_MI2S_TX_TEXT, QUAT_MI2S_TX_TEXT, ADM_LSM_TX_TEXT,
  119. INT3_MI2S_TX_TEXT, VA_CDC_DMA_TX_0_TEXT, VA_CDC_DMA_TX_1_TEXT,
  120. VA_CDC_DMA_TX_2_TEXT, TX_CDC_DMA_TX_3_TEXT, QUIN_TDM_TX_TEXT,
  121. TERT_TDM_TX_TEXT
  122. };
  123. struct msm_pcm_route_bdai_pp_params {
  124. u16 port_id; /* AFE port ID */
  125. unsigned long pp_params_config;
  126. bool mute_on;
  127. int latency;
  128. };
  129. static struct msm_pcm_route_bdai_pp_params
  130. msm_bedais_pp_params[MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX] = {
  131. {HDMI_RX, 0, 0, 0},
  132. {DISPLAY_PORT_RX, 0, 0, 0},
  133. };
  134. /*
  135. * The be_dai_name_table is passed to HAL so that it can specify the
  136. * BE ID for the BE it wants to enable based on the name. Thus there
  137. * is a matching table and structure in HAL that need to be updated
  138. * if any changes to these are made.
  139. */
  140. struct msm_pcm_route_bdai_name {
  141. unsigned int be_id;
  142. char be_name[LPASS_BE_NAME_MAX_LENGTH];
  143. };
  144. static struct msm_pcm_route_bdai_name be_dai_name_table[MSM_BACKEND_DAI_MAX];
  145. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  146. int fe_id);
  147. static void msm_routing_load_topology(size_t data_size, void *data);
  148. static void msm_routing_unload_topology(uint32_t topology_id);
  149. static int msm_routing_get_bit_width(unsigned int format)
  150. {
  151. int bit_width;
  152. switch (format) {
  153. case SNDRV_PCM_FORMAT_S32_LE:
  154. bit_width = 32;
  155. break;
  156. case SNDRV_PCM_FORMAT_S24_LE:
  157. case SNDRV_PCM_FORMAT_S24_3LE:
  158. bit_width = 24;
  159. break;
  160. case SNDRV_PCM_FORMAT_S16_LE:
  161. default:
  162. bit_width = 16;
  163. }
  164. return bit_width;
  165. }
  166. static bool msm_is_resample_needed(int input_sr, int output_sr)
  167. {
  168. bool rc = false;
  169. if (input_sr != output_sr)
  170. rc = true;
  171. pr_debug("perform resampling (%s) for copp rate (%d)afe rate (%d)",
  172. (rc ? "oh yes" : "not really"),
  173. input_sr, output_sr);
  174. return rc;
  175. }
  176. static void msm_pcm_routing_cfg_pp(int port_id, int copp_idx, int topology,
  177. int channels)
  178. {
  179. int rc = 0;
  180. switch (topology) {
  181. case SRS_TRUMEDIA_TOPOLOGY_ID:
  182. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  183. msm_dts_srs_tm_init(port_id, copp_idx);
  184. break;
  185. case DS2_ADM_COPP_TOPOLOGY_ID:
  186. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY %d\n",
  187. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  188. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  189. is_custom_stereo_on);
  190. if (rc < 0)
  191. pr_err("%s: DS2 topo_id 0x%x, port %d, CS %d rc %d\n",
  192. __func__, topology, port_id,
  193. is_custom_stereo_on, rc);
  194. break;
  195. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  196. if (is_ds2_on) {
  197. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY\n", __func__);
  198. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  199. is_custom_stereo_on);
  200. if (rc < 0)
  201. pr_err("%s:DS2 topo_id 0x%x, port %d, rc %d\n",
  202. __func__, topology, port_id, rc);
  203. } else {
  204. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  205. rc = msm_dolby_dap_init(port_id, copp_idx, channels,
  206. is_custom_stereo_on);
  207. if (rc < 0)
  208. pr_err("%s: DS1 topo_id 0x%x, port %d, rc %d\n",
  209. __func__, topology, port_id, rc);
  210. }
  211. break;
  212. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  213. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  214. rc = msm_qti_pp_asphere_init(port_id, copp_idx);
  215. if (rc < 0)
  216. pr_err("%s: topo_id 0x%x, port %d, copp %d, rc %d\n",
  217. __func__, topology, port_id, copp_idx, rc);
  218. break;
  219. default:
  220. /* custom topology specific feature param handlers */
  221. break;
  222. }
  223. }
  224. static void msm_pcm_routing_deinit_pp(int port_id, int topology)
  225. {
  226. switch (topology) {
  227. case SRS_TRUMEDIA_TOPOLOGY_ID:
  228. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  229. msm_dts_srs_tm_deinit(port_id);
  230. break;
  231. case DS2_ADM_COPP_TOPOLOGY_ID:
  232. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID %d\n",
  233. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  234. msm_ds2_dap_deinit(port_id);
  235. break;
  236. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  237. if (is_ds2_on) {
  238. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID\n", __func__);
  239. msm_ds2_dap_deinit(port_id);
  240. } else {
  241. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  242. msm_dolby_dap_deinit(port_id);
  243. }
  244. break;
  245. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  246. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  247. msm_qti_pp_asphere_deinit(port_id);
  248. break;
  249. default:
  250. /* custom topology specific feature deinit handlers */
  251. break;
  252. }
  253. }
  254. static void msm_pcm_routng_cfg_matrix_map_pp(struct route_payload payload,
  255. int path_type, int perf_mode)
  256. {
  257. int itr = 0, rc = 0;
  258. if ((path_type == ADM_PATH_PLAYBACK) &&
  259. (perf_mode == LEGACY_PCM_MODE) &&
  260. is_custom_stereo_on) {
  261. for (itr = 0; itr < payload.num_copps; itr++) {
  262. if ((payload.port_id[itr] != SLIMBUS_0_RX) &&
  263. (payload.port_id[itr] != RT_PROXY_PORT_001_RX)) {
  264. continue;
  265. }
  266. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd(
  267. payload.port_id[itr],
  268. payload.copp_idx[itr],
  269. payload.session_id,
  270. Q14_GAIN_ZERO_POINT_FIVE,
  271. Q14_GAIN_ZERO_POINT_FIVE,
  272. Q14_GAIN_ZERO_POINT_FIVE,
  273. Q14_GAIN_ZERO_POINT_FIVE);
  274. if (rc < 0)
  275. pr_err("%s: err setting custom stereo\n",
  276. __func__);
  277. }
  278. }
  279. }
  280. #define SLIMBUS_EXTPROC_RX AFE_PORT_INVALID
  281. struct msm_pcm_routing_bdai_data msm_bedais[MSM_BACKEND_DAI_MAX] = {
  282. { PRIMARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_RX},
  283. { PRIMARY_I2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_TX},
  284. { SLIMBUS_0_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_RX},
  285. { SLIMBUS_0_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_TX},
  286. { HDMI_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_HDMI},
  287. { INT_BT_SCO_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_RX},
  288. { INT_BT_SCO_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_TX},
  289. { INT_FM_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_RX},
  290. { INT_FM_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_TX},
  291. { RT_PROXY_PORT_001_RX, 0, {0}, {0}, 0, 0, 0, 0,
  292. LPASS_BE_AFE_PCM_RX},
  293. { RT_PROXY_PORT_001_TX, 0, {0}, {0}, 0, 0, 0, 0,
  294. LPASS_BE_AFE_PCM_TX},
  295. { AFE_PORT_ID_PRIMARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  296. LPASS_BE_AUXPCM_RX},
  297. { AFE_PORT_ID_PRIMARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  298. LPASS_BE_AUXPCM_TX},
  299. { VOICE_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  300. LPASS_BE_VOICE_PLAYBACK_TX},
  301. { VOICE2_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  302. LPASS_BE_VOICE2_PLAYBACK_TX},
  303. { VOICE_RECORD_RX, 0, {0}, {0}, 0, 0, 0, 0,
  304. LPASS_BE_INCALL_RECORD_RX},
  305. { VOICE_RECORD_TX, 0, {0}, {0}, 0, 0, 0, 0,
  306. LPASS_BE_INCALL_RECORD_TX},
  307. { MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_RX},
  308. { MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_TX},
  309. { SECONDARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SEC_I2S_RX},
  310. { SLIMBUS_1_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_RX},
  311. { SLIMBUS_1_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_TX},
  312. { SLIMBUS_2_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_RX},
  313. { SLIMBUS_2_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_TX},
  314. { SLIMBUS_3_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_RX},
  315. { SLIMBUS_3_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_TX},
  316. { SLIMBUS_4_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_RX},
  317. { SLIMBUS_4_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_TX},
  318. { SLIMBUS_5_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_RX},
  319. { SLIMBUS_5_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_TX},
  320. { SLIMBUS_6_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_RX},
  321. { SLIMBUS_6_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_TX},
  322. { SLIMBUS_7_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_RX},
  323. { SLIMBUS_7_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_TX},
  324. { SLIMBUS_8_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_RX},
  325. { SLIMBUS_8_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_TX},
  326. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_RX},
  327. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_TX},
  328. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_1_TX},
  329. { AFE_PORT_ID_QUATERNARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  330. LPASS_BE_QUAT_MI2S_RX},
  331. { AFE_PORT_ID_QUATERNARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  332. LPASS_BE_QUAT_MI2S_TX},
  333. { AFE_PORT_ID_SECONDARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  334. LPASS_BE_SEC_MI2S_RX},
  335. { AFE_PORT_ID_SECONDARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  336. LPASS_BE_SEC_MI2S_TX},
  337. { AFE_PORT_ID_PRIMARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  338. LPASS_BE_PRI_MI2S_RX},
  339. { AFE_PORT_ID_PRIMARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  340. LPASS_BE_PRI_MI2S_TX},
  341. { AFE_PORT_ID_TERTIARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  342. LPASS_BE_TERT_MI2S_RX},
  343. { AFE_PORT_ID_TERTIARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  344. LPASS_BE_TERT_MI2S_TX},
  345. { AUDIO_PORT_ID_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  346. LPASS_BE_AUDIO_I2S_RX},
  347. { AFE_PORT_ID_SECONDARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  348. LPASS_BE_SEC_AUXPCM_RX},
  349. { AFE_PORT_ID_SECONDARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  350. LPASS_BE_SEC_AUXPCM_TX},
  351. { AFE_PORT_ID_PRIMARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  352. LPASS_BE_PRI_SPDIF_RX},
  353. { AFE_PORT_ID_SECONDARY_MI2S_RX_SD1, 0, {0}, {0}, 0, 0, 0, 0,
  354. LPASS_BE_SEC_MI2S_RX_SD1},
  355. { AFE_PORT_ID_QUINARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  356. LPASS_BE_QUIN_MI2S_RX},
  357. { AFE_PORT_ID_QUINARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  358. LPASS_BE_QUIN_MI2S_TX},
  359. { AFE_PORT_ID_SENARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  360. LPASS_BE_SENARY_MI2S_TX},
  361. { AFE_PORT_ID_PRIMARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  362. LPASS_BE_PRI_TDM_RX_0},
  363. { AFE_PORT_ID_PRIMARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  364. LPASS_BE_PRI_TDM_TX_0},
  365. { AFE_PORT_ID_PRIMARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  366. LPASS_BE_PRI_TDM_RX_1},
  367. { AFE_PORT_ID_PRIMARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  368. LPASS_BE_PRI_TDM_TX_1},
  369. { AFE_PORT_ID_PRIMARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  370. LPASS_BE_PRI_TDM_RX_2},
  371. { AFE_PORT_ID_PRIMARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  372. LPASS_BE_PRI_TDM_TX_2},
  373. { AFE_PORT_ID_PRIMARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  374. LPASS_BE_PRI_TDM_RX_3},
  375. { AFE_PORT_ID_PRIMARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  376. LPASS_BE_PRI_TDM_TX_3},
  377. { AFE_PORT_ID_PRIMARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  378. LPASS_BE_PRI_TDM_RX_4},
  379. { AFE_PORT_ID_PRIMARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  380. LPASS_BE_PRI_TDM_TX_4},
  381. { AFE_PORT_ID_PRIMARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  382. LPASS_BE_PRI_TDM_RX_5},
  383. { AFE_PORT_ID_PRIMARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  384. LPASS_BE_PRI_TDM_TX_5},
  385. { AFE_PORT_ID_PRIMARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  386. LPASS_BE_PRI_TDM_RX_6},
  387. { AFE_PORT_ID_PRIMARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  388. LPASS_BE_PRI_TDM_TX_6},
  389. { AFE_PORT_ID_PRIMARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  390. LPASS_BE_PRI_TDM_RX_7},
  391. { AFE_PORT_ID_PRIMARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  392. LPASS_BE_PRI_TDM_TX_7},
  393. { AFE_PORT_ID_SECONDARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  394. LPASS_BE_SEC_TDM_RX_0},
  395. { AFE_PORT_ID_SECONDARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  396. LPASS_BE_SEC_TDM_TX_0},
  397. { AFE_PORT_ID_SECONDARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  398. LPASS_BE_SEC_TDM_RX_1},
  399. { AFE_PORT_ID_SECONDARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  400. LPASS_BE_SEC_TDM_TX_1},
  401. { AFE_PORT_ID_SECONDARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  402. LPASS_BE_SEC_TDM_RX_2},
  403. { AFE_PORT_ID_SECONDARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  404. LPASS_BE_SEC_TDM_TX_2},
  405. { AFE_PORT_ID_SECONDARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  406. LPASS_BE_SEC_TDM_RX_3},
  407. { AFE_PORT_ID_SECONDARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  408. LPASS_BE_SEC_TDM_TX_3},
  409. { AFE_PORT_ID_SECONDARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  410. LPASS_BE_SEC_TDM_RX_4},
  411. { AFE_PORT_ID_SECONDARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  412. LPASS_BE_SEC_TDM_TX_4},
  413. { AFE_PORT_ID_SECONDARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  414. LPASS_BE_SEC_TDM_RX_5},
  415. { AFE_PORT_ID_SECONDARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  416. LPASS_BE_SEC_TDM_TX_5},
  417. { AFE_PORT_ID_SECONDARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  418. LPASS_BE_SEC_TDM_RX_6},
  419. { AFE_PORT_ID_SECONDARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  420. LPASS_BE_SEC_TDM_TX_6},
  421. { AFE_PORT_ID_SECONDARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  422. LPASS_BE_SEC_TDM_RX_7},
  423. { AFE_PORT_ID_SECONDARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  424. LPASS_BE_SEC_TDM_TX_7},
  425. { AFE_PORT_ID_TERTIARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  426. LPASS_BE_TERT_TDM_RX_0},
  427. { AFE_PORT_ID_TERTIARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  428. LPASS_BE_TERT_TDM_TX_0},
  429. { AFE_PORT_ID_TERTIARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  430. LPASS_BE_TERT_TDM_RX_1},
  431. { AFE_PORT_ID_TERTIARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  432. LPASS_BE_TERT_TDM_TX_1},
  433. { AFE_PORT_ID_TERTIARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  434. LPASS_BE_TERT_TDM_RX_2},
  435. { AFE_PORT_ID_TERTIARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  436. LPASS_BE_TERT_TDM_TX_2},
  437. { AFE_PORT_ID_TERTIARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  438. LPASS_BE_TERT_TDM_RX_3},
  439. { AFE_PORT_ID_TERTIARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  440. LPASS_BE_TERT_TDM_TX_3},
  441. { AFE_PORT_ID_TERTIARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  442. LPASS_BE_TERT_TDM_RX_4},
  443. { AFE_PORT_ID_TERTIARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  444. LPASS_BE_TERT_TDM_TX_4},
  445. { AFE_PORT_ID_TERTIARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  446. LPASS_BE_TERT_TDM_RX_5},
  447. { AFE_PORT_ID_TERTIARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  448. LPASS_BE_TERT_TDM_TX_5},
  449. { AFE_PORT_ID_TERTIARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  450. LPASS_BE_TERT_TDM_RX_6},
  451. { AFE_PORT_ID_TERTIARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  452. LPASS_BE_TERT_TDM_TX_6},
  453. { AFE_PORT_ID_TERTIARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  454. LPASS_BE_TERT_TDM_RX_7},
  455. { AFE_PORT_ID_TERTIARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  456. LPASS_BE_TERT_TDM_TX_7},
  457. { AFE_PORT_ID_QUATERNARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  458. LPASS_BE_QUAT_TDM_RX_0},
  459. { AFE_PORT_ID_QUATERNARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  460. LPASS_BE_QUAT_TDM_TX_0},
  461. { AFE_PORT_ID_QUATERNARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  462. LPASS_BE_QUAT_TDM_RX_1},
  463. { AFE_PORT_ID_QUATERNARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  464. LPASS_BE_QUAT_TDM_TX_1},
  465. { AFE_PORT_ID_QUATERNARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  466. LPASS_BE_QUAT_TDM_RX_2},
  467. { AFE_PORT_ID_QUATERNARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  468. LPASS_BE_QUAT_TDM_TX_2},
  469. { AFE_PORT_ID_QUATERNARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  470. LPASS_BE_QUAT_TDM_RX_3},
  471. { AFE_PORT_ID_QUATERNARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  472. LPASS_BE_QUAT_TDM_TX_3},
  473. { AFE_PORT_ID_QUATERNARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  474. LPASS_BE_QUAT_TDM_RX_4},
  475. { AFE_PORT_ID_QUATERNARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  476. LPASS_BE_QUAT_TDM_TX_4},
  477. { AFE_PORT_ID_QUATERNARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  478. LPASS_BE_QUAT_TDM_RX_5},
  479. { AFE_PORT_ID_QUATERNARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  480. LPASS_BE_QUAT_TDM_TX_5},
  481. { AFE_PORT_ID_QUATERNARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  482. LPASS_BE_QUAT_TDM_RX_6},
  483. { AFE_PORT_ID_QUATERNARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  484. LPASS_BE_QUAT_TDM_TX_6},
  485. { AFE_PORT_ID_QUATERNARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  486. LPASS_BE_QUAT_TDM_RX_7},
  487. { AFE_PORT_ID_QUATERNARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  488. LPASS_BE_QUAT_TDM_TX_7},
  489. { AFE_PORT_ID_QUINARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  490. LPASS_BE_QUIN_TDM_RX_0},
  491. { AFE_PORT_ID_QUINARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  492. LPASS_BE_QUIN_TDM_TX_0},
  493. { AFE_PORT_ID_QUINARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  494. LPASS_BE_QUIN_TDM_RX_1},
  495. { AFE_PORT_ID_QUINARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  496. LPASS_BE_QUIN_TDM_TX_1},
  497. { AFE_PORT_ID_QUINARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  498. LPASS_BE_QUIN_TDM_RX_2},
  499. { AFE_PORT_ID_QUINARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  500. LPASS_BE_QUIN_TDM_TX_2},
  501. { AFE_PORT_ID_QUINARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  502. LPASS_BE_QUIN_TDM_RX_3},
  503. { AFE_PORT_ID_QUINARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  504. LPASS_BE_QUIN_TDM_TX_3},
  505. { AFE_PORT_ID_QUINARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  506. LPASS_BE_QUIN_TDM_RX_4},
  507. { AFE_PORT_ID_QUINARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  508. LPASS_BE_QUIN_TDM_TX_4},
  509. { AFE_PORT_ID_QUINARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  510. LPASS_BE_QUIN_TDM_RX_5},
  511. { AFE_PORT_ID_QUINARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  512. LPASS_BE_QUIN_TDM_TX_5},
  513. { AFE_PORT_ID_QUINARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  514. LPASS_BE_QUIN_TDM_RX_6},
  515. { AFE_PORT_ID_QUINARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  516. LPASS_BE_QUIN_TDM_TX_6},
  517. { AFE_PORT_ID_QUINARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  518. LPASS_BE_QUIN_TDM_RX_7},
  519. { AFE_PORT_ID_QUINARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  520. LPASS_BE_QUIN_TDM_TX_7},
  521. { AFE_PORT_ID_SENARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  522. LPASS_BE_SEN_TDM_RX_0},
  523. { AFE_PORT_ID_SENARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  524. LPASS_BE_SEN_TDM_TX_0},
  525. { AFE_PORT_ID_SENARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  526. LPASS_BE_SEN_TDM_RX_1},
  527. { AFE_PORT_ID_SENARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  528. LPASS_BE_SEN_TDM_TX_1},
  529. { AFE_PORT_ID_SENARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  530. LPASS_BE_SEN_TDM_RX_2},
  531. { AFE_PORT_ID_SENARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  532. LPASS_BE_SEN_TDM_TX_2},
  533. { AFE_PORT_ID_SENARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  534. LPASS_BE_SEN_TDM_RX_3},
  535. { AFE_PORT_ID_SENARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  536. LPASS_BE_SEN_TDM_TX_3},
  537. { AFE_PORT_ID_SENARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  538. LPASS_BE_SEN_TDM_RX_4},
  539. { AFE_PORT_ID_SENARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  540. LPASS_BE_SEN_TDM_TX_4},
  541. { AFE_PORT_ID_SENARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  542. LPASS_BE_SEN_TDM_RX_5},
  543. { AFE_PORT_ID_SENARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  544. LPASS_BE_SEN_TDM_TX_5},
  545. { AFE_PORT_ID_SENARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  546. LPASS_BE_SEN_TDM_RX_6},
  547. { AFE_PORT_ID_SENARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  548. LPASS_BE_SEN_TDM_TX_6},
  549. { AFE_PORT_ID_SENARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  550. LPASS_BE_SEN_TDM_RX_7},
  551. { AFE_PORT_ID_SENARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  552. LPASS_BE_SEN_TDM_TX_7},
  553. { INT_BT_A2DP_RX, 0, {0}, {0}, 0, 0, 0, 0,
  554. LPASS_BE_INT_BT_A2DP_RX},
  555. { AFE_PORT_ID_USB_RX, 0, {0}, {0}, 0, 0, 0, 0,
  556. LPASS_BE_USB_AUDIO_RX},
  557. { AFE_PORT_ID_USB_TX, 0, {0}, {0}, 0, 0, 0, 0,
  558. LPASS_BE_USB_AUDIO_TX},
  559. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  560. LPASS_BE_DISPLAY_PORT},
  561. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  562. LPASS_BE_DISPLAY_PORT1},
  563. { AFE_PORT_ID_TERTIARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  564. LPASS_BE_TERT_AUXPCM_RX},
  565. { AFE_PORT_ID_TERTIARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  566. LPASS_BE_TERT_AUXPCM_TX},
  567. { AFE_PORT_ID_QUATERNARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  568. LPASS_BE_QUAT_AUXPCM_RX},
  569. { AFE_PORT_ID_QUATERNARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  570. LPASS_BE_QUAT_AUXPCM_TX},
  571. { AFE_PORT_ID_QUINARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  572. LPASS_BE_QUIN_AUXPCM_RX},
  573. { AFE_PORT_ID_QUINARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  574. LPASS_BE_QUIN_AUXPCM_TX},
  575. { AFE_PORT_ID_INT0_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  576. LPASS_BE_INT0_MI2S_RX},
  577. { AFE_PORT_ID_INT0_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  578. LPASS_BE_INT0_MI2S_TX},
  579. { AFE_PORT_ID_INT1_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  580. LPASS_BE_INT1_MI2S_RX},
  581. { AFE_PORT_ID_INT1_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  582. LPASS_BE_INT1_MI2S_TX},
  583. { AFE_PORT_ID_INT2_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  584. LPASS_BE_INT2_MI2S_RX},
  585. { AFE_PORT_ID_INT2_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  586. LPASS_BE_INT2_MI2S_TX},
  587. { AFE_PORT_ID_INT3_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  588. LPASS_BE_INT3_MI2S_RX},
  589. { AFE_PORT_ID_INT3_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  590. LPASS_BE_INT3_MI2S_TX},
  591. { AFE_PORT_ID_INT4_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  592. LPASS_BE_INT4_MI2S_RX},
  593. { AFE_PORT_ID_INT4_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  594. LPASS_BE_INT4_MI2S_TX},
  595. { AFE_PORT_ID_INT5_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  596. LPASS_BE_INT5_MI2S_RX},
  597. { AFE_PORT_ID_INT5_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  598. LPASS_BE_INT5_MI2S_TX},
  599. { AFE_PORT_ID_INT6_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  600. LPASS_BE_INT6_MI2S_RX},
  601. { AFE_PORT_ID_INT6_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  602. LPASS_BE_INT6_MI2S_TX},
  603. { AFE_PORT_ID_SENARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  604. LPASS_BE_SEN_AUXPCM_RX},
  605. { AFE_PORT_ID_SENARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  606. LPASS_BE_SEN_AUXPCM_TX},
  607. { AFE_PORT_ID_SENARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  608. LPASS_BE_SENARY_MI2S_RX},
  609. { AFE_PORT_ID_WSA_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  610. LPASS_BE_WSA_CDC_DMA_RX_0},
  611. { AFE_PORT_ID_WSA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  612. LPASS_BE_WSA_CDC_DMA_TX_0},
  613. { AFE_PORT_ID_WSA_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  614. LPASS_BE_WSA_CDC_DMA_RX_1},
  615. { AFE_PORT_ID_WSA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  616. LPASS_BE_WSA_CDC_DMA_TX_1},
  617. { AFE_PORT_ID_WSA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  618. LPASS_BE_WSA_CDC_DMA_TX_2},
  619. { AFE_PORT_ID_VA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  620. LPASS_BE_VA_CDC_DMA_TX_0},
  621. { AFE_PORT_ID_VA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  622. LPASS_BE_VA_CDC_DMA_TX_1},
  623. { AFE_PORT_ID_VA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  624. LPASS_BE_VA_CDC_DMA_TX_2},
  625. { AFE_PORT_ID_RX_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  626. LPASS_BE_RX_CDC_DMA_RX_0},
  627. { AFE_PORT_ID_TX_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  628. LPASS_BE_TX_CDC_DMA_TX_0},
  629. { AFE_PORT_ID_RX_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  630. LPASS_BE_RX_CDC_DMA_RX_1},
  631. { AFE_PORT_ID_TX_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  632. LPASS_BE_TX_CDC_DMA_TX_1},
  633. { AFE_PORT_ID_RX_CODEC_DMA_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  634. LPASS_BE_RX_CDC_DMA_RX_2},
  635. { AFE_PORT_ID_TX_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  636. LPASS_BE_TX_CDC_DMA_TX_2},
  637. { AFE_PORT_ID_RX_CODEC_DMA_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  638. LPASS_BE_RX_CDC_DMA_RX_3},
  639. { AFE_PORT_ID_TX_CODEC_DMA_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  640. LPASS_BE_TX_CDC_DMA_TX_3},
  641. { AFE_PORT_ID_RX_CODEC_DMA_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  642. LPASS_BE_RX_CDC_DMA_RX_4},
  643. { AFE_PORT_ID_TX_CODEC_DMA_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  644. LPASS_BE_TX_CDC_DMA_TX_4},
  645. { AFE_PORT_ID_RX_CODEC_DMA_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  646. LPASS_BE_RX_CDC_DMA_RX_5},
  647. { AFE_PORT_ID_TX_CODEC_DMA_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  648. LPASS_BE_TX_CDC_DMA_TX_5},
  649. { AFE_PORT_ID_RX_CODEC_DMA_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  650. LPASS_BE_RX_CDC_DMA_RX_6},
  651. { AFE_PORT_ID_RX_CODEC_DMA_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  652. LPASS_BE_RX_CDC_DMA_RX_7},
  653. { AFE_PORT_ID_PRIMARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  654. LPASS_BE_PRI_SPDIF_TX},
  655. { AFE_PORT_ID_SECONDARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  656. LPASS_BE_SEC_SPDIF_RX},
  657. { AFE_PORT_ID_SECONDARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  658. LPASS_BE_SEC_SPDIF_TX},
  659. { SLIMBUS_9_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_RX},
  660. { SLIMBUS_9_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_TX},
  661. { AFE_LOOPBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_AFE_LOOPBACK_TX},
  662. { AFE_PORT_ID_PRIMARY_META_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  663. LPASS_BE_PRI_META_MI2S_RX},
  664. { AFE_PORT_ID_SECONDARY_META_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  665. LPASS_BE_SEC_META_MI2S_RX},
  666. };
  667. /* Track ASM playback & capture sessions of DAI
  668. * Track LSM listen sessions
  669. */
  670. static struct msm_pcm_routing_fdai_data
  671. fe_dai_map[MSM_FRONTEND_DAI_MAX][2] = {
  672. /* MULTIMEDIA1 */
  673. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  674. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  675. /* MULTIMEDIA2 */
  676. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  677. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  678. /* MULTIMEDIA3 */
  679. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  680. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  681. /* MULTIMEDIA4 */
  682. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  683. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  684. /* MULTIMEDIA5 */
  685. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  686. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  687. /* MULTIMEDIA6 */
  688. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  689. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  690. /* MULTIMEDIA7*/
  691. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  692. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  693. /* MULTIMEDIA8 */
  694. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  695. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  696. /* MULTIMEDIA9 */
  697. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  698. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  699. /* MULTIMEDIA10 */
  700. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  701. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  702. /* MULTIMEDIA11 */
  703. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  704. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  705. /* MULTIMEDIA12 */
  706. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  707. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  708. /* MULTIMEDIA13 */
  709. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  710. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  711. /* MULTIMEDIA14 */
  712. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  713. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  714. /* MULTIMEDIA15 */
  715. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  716. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  717. /* MULTIMEDIA16 */
  718. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  719. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  720. /* MULTIMEDIA17 */
  721. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  722. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  723. /* MULTIMEDIA18 */
  724. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  725. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  726. /* MULTIMEDIA19 */
  727. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  728. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  729. /* MULTIMEDIA20 */
  730. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  731. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  732. /* MULTIMEDIA21 */
  733. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  734. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  735. /* MULTIMEDIA22 */
  736. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  737. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  738. /* MULTIMEDIA23 */
  739. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  740. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  741. /* MULTIMEDIA24 */
  742. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  743. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  744. /* MULTIMEDIA25 */
  745. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  746. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  747. /* MULTIMEDIA26 */
  748. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  749. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  750. /* MULTIMEDIA27 */
  751. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  752. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  753. /* MULTIMEDIA28 */
  754. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  755. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  756. /* MULTIMEDIA29 */
  757. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  758. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  759. /* MULTIMEDIA30 */
  760. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  761. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  762. /* VOIP */
  763. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  764. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  765. /* AFE_RX */
  766. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  767. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  768. /* AFE_TX */
  769. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  770. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  771. /* VOICE_STUB */
  772. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  773. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  774. /* DTMF_RX */
  775. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  776. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  777. /* QCHAT */
  778. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  779. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  780. /* VOLTE_STUB */
  781. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  782. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  783. /* LSM1 */
  784. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  785. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  786. /* LSM2 */
  787. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  788. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  789. /* LSM3 */
  790. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  791. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  792. /* LSM4 */
  793. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  794. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  795. /* LSM5 */
  796. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  797. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  798. /* LSM6 */
  799. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  800. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  801. /* LSM7 */
  802. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  803. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  804. /* LSM8 */
  805. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  806. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  807. /* VOICE2_STUB */
  808. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  809. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  810. /* VOICEMMODE1 */
  811. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  812. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  813. /* VOICEMMODE2 */
  814. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  815. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  816. };
  817. static unsigned long session_copp_map[MSM_FRONTEND_DAI_MAX][2]
  818. [MSM_BACKEND_DAI_MAX];
  819. static struct msm_pcm_routing_app_type_data app_type_cfg[MAX_APP_TYPES];
  820. static struct msm_pcm_routing_app_type_data lsm_app_type_cfg[MAX_APP_TYPES];
  821. static struct msm_pcm_stream_app_type_cfg
  822. fe_dai_app_type_cfg[MSM_FRONTEND_DAI_MAX][2][MSM_BACKEND_DAI_MAX];
  823. static int last_be_id_configured[MSM_FRONTEND_DAI_MAX][MAX_SESSION_TYPES];
  824. /* The caller of this should acquire routing lock */
  825. void msm_pcm_routing_get_bedai_info(int be_idx,
  826. struct msm_pcm_routing_bdai_data *be_dai)
  827. {
  828. if (be_idx >= 0 && be_idx < MSM_BACKEND_DAI_MAX)
  829. memcpy(be_dai, &msm_bedais[be_idx],
  830. sizeof(struct msm_pcm_routing_bdai_data));
  831. }
  832. /* The caller of this should acquire routing lock */
  833. void msm_pcm_routing_get_fedai_info(int fe_idx, int sess_type,
  834. struct msm_pcm_routing_fdai_data *fe_dai)
  835. {
  836. if ((sess_type == SESSION_TYPE_TX) || (sess_type == SESSION_TYPE_RX))
  837. memcpy(fe_dai, &fe_dai_map[fe_idx][sess_type],
  838. sizeof(struct msm_pcm_routing_fdai_data));
  839. }
  840. void msm_pcm_routing_acquire_lock(void)
  841. {
  842. mutex_lock(&routing_lock);
  843. }
  844. void msm_pcm_routing_release_lock(void)
  845. {
  846. mutex_unlock(&routing_lock);
  847. }
  848. static int msm_pcm_routing_get_app_type_idx(int app_type)
  849. {
  850. int idx;
  851. pr_debug("%s: app_type: %d\n", __func__, app_type);
  852. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  853. if (app_type_cfg[idx].app_type == app_type)
  854. return idx;
  855. }
  856. pr_info("%s: App type not available, fallback to default\n", __func__);
  857. return 0;
  858. }
  859. static int msm_pcm_routing_get_lsm_app_type_idx(int app_type)
  860. {
  861. int idx;
  862. pr_debug("%s: app_type: %d\n", __func__, app_type);
  863. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  864. if (lsm_app_type_cfg[idx].app_type == app_type)
  865. return idx;
  866. }
  867. pr_debug("%s: App type not available, fallback to default\n", __func__);
  868. return 0;
  869. }
  870. static int get_port_id(int port_id)
  871. {
  872. int ret = port_id;
  873. if (port_id == AFE_LOOPBACK_TX) {
  874. /*
  875. * Return afe_loopback_tx_port_id if set. Else return
  876. * msm_ec_ref_port_id to maintain backward compatibility.
  877. */
  878. if (afe_loopback_tx_port_id != -1)
  879. ret = afe_loopback_tx_port_id;
  880. else
  881. ret = msm_ec_ref_port_id;
  882. }
  883. return ret;
  884. }
  885. static bool is_mm_lsm_fe_id(int fe_id)
  886. {
  887. bool rc = true;
  888. if (fe_id > MSM_FRONTEND_DAI_MM_MAX_ID &&
  889. ((fe_id < MSM_FRONTEND_DAI_LSM1) ||
  890. (fe_id > MSM_FRONTEND_DAI_LSM8))) {
  891. rc = false;
  892. }
  893. return rc;
  894. }
  895. /*
  896. * msm_pcm_routing_send_chmix_cfg:
  897. * send the channel mixer command to mix the input channels
  898. * into output channels.
  899. *
  900. * @fe_id: front end id
  901. * @ip_channel_cnt: input channel count
  902. * @op_channel_cnt: output channel count
  903. * @ch_wght_coeff: channel weight co-efficients for channel mixing
  904. * @session_type: indicates session is of type TX or RX
  905. * @stream_type: indicates either Audio or Listen stream type
  906. */
  907. int msm_pcm_routing_send_chmix_cfg(int fe_id, int ip_channel_cnt,
  908. int op_channel_cnt, int *ch_wght_coeff,
  909. int session_type, int stream_type)
  910. {
  911. int rc = 0, idx = 0;
  912. int be_index = 0, port_id;
  913. unsigned int session_id = 0;
  914. pr_debug("%s:fe_id[%d] ip_ch[%d] op_ch[%d] sess_type [%d], stream_type[%d]",
  915. __func__, fe_id, ip_channel_cnt, op_channel_cnt, session_type,
  916. stream_type);
  917. if (!is_mm_lsm_fe_id(fe_id)) {
  918. /* bad ID assigned in machine driver */
  919. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  920. return -EINVAL;
  921. }
  922. if (ch_wght_coeff == NULL) {
  923. pr_err("%s: Null channel weightage coefficients passed\n",
  924. __func__);
  925. return -EINVAL;
  926. }
  927. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  928. port_id = msm_bedais[be_index].port_id;
  929. if (!msm_bedais[be_index].active ||
  930. !test_bit(fe_id, &msm_bedais[be_index].fe_sessions[0]))
  931. continue;
  932. session_id = fe_dai_map[fe_id][session_type].strm_id;
  933. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  934. unsigned long copp =
  935. session_copp_map[fe_id][session_type][be_index];
  936. if (!test_bit(idx, &copp))
  937. continue;
  938. msm_qti_pp_send_chmix_cfg_cmd(port_id, idx,
  939. session_id, ip_channel_cnt,
  940. op_channel_cnt, ch_wght_coeff,
  941. session_type, stream_type);
  942. if (rc < 0)
  943. pr_err("%s: err setting channel mix config\n",
  944. __func__);
  945. }
  946. }
  947. return 0;
  948. }
  949. EXPORT_SYMBOL(msm_pcm_routing_send_chmix_cfg);
  950. /**
  951. * msm_pcm_routing_set_channel_mixer_cfg - cache channel mixer
  952. * setting before use case start.
  953. *
  954. * @fe_id: frontend idx
  955. * @type: stream direction type
  956. * @params: parameters of channel mixer setting
  957. *
  958. * Return 0 for success
  959. */
  960. int msm_pcm_routing_set_channel_mixer_cfg(
  961. int fe_id, int type,
  962. struct msm_pcm_channel_mixer *params)
  963. {
  964. int i, j = 0;
  965. channel_mixer_v2[fe_id][type].enable = params->enable;
  966. channel_mixer_v2[fe_id][type].rule = params->rule;
  967. channel_mixer_v2[fe_id][type].input_channel =
  968. params->input_channel;
  969. channel_mixer_v2[fe_id][type].output_channel =
  970. params->output_channel;
  971. channel_mixer_v2[fe_id][type].port_idx = params->port_idx;
  972. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  973. channel_mixer_v2[fe_id][type].in_ch_map[i] =
  974. params->in_ch_map[i];
  975. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  976. channel_mixer_v2[fe_id][type].out_ch_map[i] =
  977. params->out_ch_map[i];
  978. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  979. for (j = 0; j < ADM_MAX_CHANNELS; j++)
  980. channel_mixer_v2[fe_id][type].channel_weight[i][j] =
  981. params->channel_weight[i][j];
  982. channel_mixer_v2[fe_id][type].override_in_ch_map =
  983. params->override_in_ch_map;
  984. channel_mixer_v2[fe_id][type].override_out_ch_map =
  985. params->override_out_ch_map;
  986. return 0;
  987. }
  988. EXPORT_SYMBOL(msm_pcm_routing_set_channel_mixer_cfg);
  989. int msm_pcm_routing_reg_stream_app_type_cfg(
  990. int fedai_id, int session_type, int be_id,
  991. struct msm_pcm_stream_app_type_cfg *cfg_data)
  992. {
  993. int ret = 0;
  994. if (cfg_data == NULL) {
  995. pr_err("%s: Received NULL pointer for cfg_data\n", __func__);
  996. ret = -EINVAL;
  997. goto done;
  998. }
  999. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  1000. __func__, fedai_id, session_type, be_id,
  1001. cfg_data->app_type, cfg_data->acdb_dev_id,
  1002. cfg_data->sample_rate);
  1003. if (!is_mm_lsm_fe_id(fedai_id)) {
  1004. pr_err("%s: Invalid machine driver ID %d\n",
  1005. __func__, fedai_id);
  1006. ret = -EINVAL;
  1007. goto done;
  1008. }
  1009. if (session_type != SESSION_TYPE_RX &&
  1010. session_type != SESSION_TYPE_TX) {
  1011. pr_err("%s: Invalid session type %d\n",
  1012. __func__, session_type);
  1013. ret = -EINVAL;
  1014. goto done;
  1015. }
  1016. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1017. pr_err("%s: Received out of bounds be_id %d\n",
  1018. __func__, be_id);
  1019. ret = -EINVAL;
  1020. goto done;
  1021. }
  1022. fe_dai_app_type_cfg[fedai_id][session_type][be_id] = *cfg_data;
  1023. /*
  1024. * Store the BE ID of the configuration information set as the latest so
  1025. * the get mixer control knows what to return.
  1026. */
  1027. last_be_id_configured[fedai_id][session_type] = be_id;
  1028. done:
  1029. return ret;
  1030. }
  1031. EXPORT_SYMBOL(msm_pcm_routing_reg_stream_app_type_cfg);
  1032. /**
  1033. * msm_pcm_routing_get_stream_app_type_cfg
  1034. *
  1035. * Receives fedai_id, session_type, be_id, and populates app_type,
  1036. * acdb_dev_id, & sample rate. Returns 0 on success. On failure returns
  1037. * -EINVAL and does not alter passed values.
  1038. *
  1039. * fedai_id - Passed value, front end ID for which app type config is wanted
  1040. * session_type - Passed value, session type for which app type config
  1041. * is wanted
  1042. * be_id - Returned value, back end device id the app type config data is for
  1043. * cfg_data - Returned value, configuration data used by app type config
  1044. */
  1045. int msm_pcm_routing_get_stream_app_type_cfg(
  1046. int fedai_id, int session_type, int *bedai_id,
  1047. struct msm_pcm_stream_app_type_cfg *cfg_data)
  1048. {
  1049. int be_id;
  1050. int ret = 0;
  1051. if (bedai_id == NULL) {
  1052. pr_err("%s: Received NULL pointer for backend ID\n", __func__);
  1053. ret = -EINVAL;
  1054. goto done;
  1055. } else if (cfg_data == NULL) {
  1056. pr_err("%s: NULL pointer sent for cfg_data\n", __func__);
  1057. ret = -EINVAL;
  1058. goto done;
  1059. } else if (!is_mm_lsm_fe_id(fedai_id)) {
  1060. pr_err("%s: Invalid FE ID %d\n", __func__, fedai_id);
  1061. ret = -EINVAL;
  1062. goto done;
  1063. } else if (session_type != SESSION_TYPE_RX &&
  1064. session_type != SESSION_TYPE_TX) {
  1065. pr_err("%s: Invalid session type %d\n", __func__, session_type);
  1066. ret = -EINVAL;
  1067. goto done;
  1068. }
  1069. be_id = last_be_id_configured[fedai_id][session_type];
  1070. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1071. pr_err("%s: Invalid BE ID %d\n", __func__, be_id);
  1072. ret = -EINVAL;
  1073. goto done;
  1074. }
  1075. *bedai_id = be_id;
  1076. *cfg_data = fe_dai_app_type_cfg[fedai_id][session_type][be_id];
  1077. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  1078. __func__, fedai_id, session_type, *bedai_id,
  1079. cfg_data->app_type, cfg_data->acdb_dev_id,
  1080. cfg_data->sample_rate);
  1081. done:
  1082. return ret;
  1083. }
  1084. EXPORT_SYMBOL(msm_pcm_routing_get_stream_app_type_cfg);
  1085. static struct cal_block_data *msm_routing_find_topology_by_path(int path,
  1086. int cal_index)
  1087. {
  1088. struct list_head *ptr, *next;
  1089. struct cal_block_data *cal_block = NULL;
  1090. pr_debug("%s\n", __func__);
  1091. list_for_each_safe(ptr, next,
  1092. &cal_data[cal_index]->cal_blocks) {
  1093. cal_block = list_entry(ptr,
  1094. struct cal_block_data, list);
  1095. if (cal_utils_is_cal_stale(cal_block))
  1096. continue;
  1097. if (((struct audio_cal_info_adm_top *)cal_block
  1098. ->cal_info)->path == path) {
  1099. return cal_block;
  1100. }
  1101. }
  1102. pr_debug("%s: Can't find topology for path %d\n", __func__, path);
  1103. return NULL;
  1104. }
  1105. static struct cal_block_data *msm_routing_find_topology(int path,
  1106. int app_type,
  1107. int acdb_id,
  1108. int cal_index,
  1109. bool exact)
  1110. {
  1111. struct list_head *ptr, *next;
  1112. struct cal_block_data *cal_block = NULL;
  1113. struct audio_cal_info_adm_top *cal_info;
  1114. pr_debug("%s\n", __func__);
  1115. list_for_each_safe(ptr, next,
  1116. &cal_data[cal_index]->cal_blocks) {
  1117. cal_block = list_entry(ptr,
  1118. struct cal_block_data, list);
  1119. if (cal_utils_is_cal_stale(cal_block))
  1120. continue;
  1121. cal_info = (struct audio_cal_info_adm_top *)
  1122. cal_block->cal_info;
  1123. if ((cal_info->path == path) &&
  1124. (cal_info->app_type == app_type) &&
  1125. (cal_info->acdb_id == acdb_id)) {
  1126. return cal_block;
  1127. }
  1128. }
  1129. pr_debug("%s: Can't find topology for path %d, app %d, "
  1130. "acdb_id %d %s\n", __func__, path, app_type, acdb_id,
  1131. exact ? "fail" : "defaulting to search by path");
  1132. return exact ? NULL : msm_routing_find_topology_by_path(path,
  1133. cal_index);
  1134. }
  1135. static int msm_routing_find_topology_on_index(int session_type, int app_type,
  1136. int acdb_dev_id, int idx,
  1137. bool exact)
  1138. {
  1139. int topology = -EINVAL;
  1140. struct cal_block_data *cal_block = NULL;
  1141. mutex_lock(&cal_data[idx]->lock);
  1142. cal_block = msm_routing_find_topology(session_type, app_type,
  1143. acdb_dev_id, idx, exact);
  1144. if (cal_block != NULL) {
  1145. topology = ((struct audio_cal_info_adm_top *)
  1146. cal_block->cal_info)->topology;
  1147. }
  1148. mutex_unlock(&cal_data[idx]->lock);
  1149. return topology;
  1150. }
  1151. /*
  1152. * Retrieving cal_block will mark cal_block as stale.
  1153. * Hence it cannot be reused or resent unless the flag
  1154. * is reset.
  1155. */
  1156. static int msm_routing_get_adm_topology(int fedai_id, int session_type,
  1157. int be_id)
  1158. {
  1159. int topology = NULL_COPP_TOPOLOGY;
  1160. int app_type = 0, acdb_dev_id = 0;
  1161. pr_debug("%s: fedai_id %d, session_type %d, be_id %d\n",
  1162. __func__, fedai_id, session_type, be_id);
  1163. if (cal_data == NULL)
  1164. goto done;
  1165. app_type = fe_dai_app_type_cfg[fedai_id][session_type][be_id].app_type;
  1166. acdb_dev_id =
  1167. fe_dai_app_type_cfg[fedai_id][session_type][be_id].acdb_dev_id;
  1168. pr_debug("%s: Check for exact LSM topology\n", __func__);
  1169. topology = msm_routing_find_topology_on_index(session_type,
  1170. app_type,
  1171. acdb_dev_id,
  1172. ADM_LSM_TOPOLOGY_CAL_TYPE_IDX,
  1173. true /*exact*/);
  1174. if (topology < 0) {
  1175. pr_debug("%s: Check for compatible topology\n", __func__);
  1176. topology = msm_routing_find_topology_on_index(session_type,
  1177. app_type,
  1178. acdb_dev_id,
  1179. ADM_TOPOLOGY_CAL_TYPE_IDX,
  1180. false /*exact*/);
  1181. if (topology < 0)
  1182. topology = NULL_COPP_TOPOLOGY;
  1183. }
  1184. done:
  1185. pr_debug("%s: Using topology %d\n", __func__, topology);
  1186. return topology;
  1187. }
  1188. static uint8_t is_be_dai_extproc(int be_dai)
  1189. {
  1190. if (be_dai == MSM_BACKEND_DAI_EXTPROC_RX ||
  1191. be_dai == MSM_BACKEND_DAI_EXTPROC_TX ||
  1192. be_dai == MSM_BACKEND_DAI_EXTPROC_EC_TX)
  1193. return 1;
  1194. else
  1195. return 0;
  1196. }
  1197. static void msm_pcm_routing_build_matrix(int fedai_id, int sess_type,
  1198. int path_type, int perf_mode,
  1199. uint32_t passthr_mode)
  1200. {
  1201. int i, port_type, j, num_copps = 0;
  1202. struct route_payload payload;
  1203. port_type = ((path_type == ADM_PATH_PLAYBACK ||
  1204. path_type == ADM_PATH_COMPRESSED_RX) ?
  1205. MSM_AFE_PORT_TYPE_RX : MSM_AFE_PORT_TYPE_TX);
  1206. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1207. if (!is_be_dai_extproc(i) &&
  1208. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1209. (msm_bedais[i].active) &&
  1210. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1211. int port_id = get_port_id(msm_bedais[i].port_id);
  1212. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1213. unsigned long copp =
  1214. session_copp_map[fedai_id][sess_type][i];
  1215. if (test_bit(j, &copp)) {
  1216. payload.port_id[num_copps] = port_id;
  1217. payload.copp_idx[num_copps] = j;
  1218. payload.app_type[num_copps] =
  1219. fe_dai_app_type_cfg
  1220. [fedai_id][sess_type][i]
  1221. .app_type;
  1222. payload.acdb_dev_id[num_copps] =
  1223. fe_dai_app_type_cfg
  1224. [fedai_id][sess_type][i]
  1225. .acdb_dev_id;
  1226. payload.sample_rate[num_copps] =
  1227. fe_dai_app_type_cfg
  1228. [fedai_id][sess_type][i]
  1229. .sample_rate;
  1230. num_copps++;
  1231. }
  1232. }
  1233. }
  1234. }
  1235. if (num_copps) {
  1236. payload.num_copps = num_copps;
  1237. payload.session_id = fe_dai_map[fedai_id][sess_type].strm_id;
  1238. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1239. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1240. }
  1241. }
  1242. void msm_pcm_routing_reg_psthr_stream(int fedai_id, int dspst_id,
  1243. int stream_type)
  1244. {
  1245. int i, session_type, path_type, port_type;
  1246. u32 mode = 0;
  1247. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1248. /* bad ID assigned in machine driver */
  1249. pr_err("%s: bad MM ID\n", __func__);
  1250. return;
  1251. }
  1252. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1253. session_type = SESSION_TYPE_RX;
  1254. path_type = ADM_PATH_PLAYBACK;
  1255. port_type = MSM_AFE_PORT_TYPE_RX;
  1256. } else {
  1257. session_type = SESSION_TYPE_TX;
  1258. path_type = ADM_PATH_LIVE_REC;
  1259. port_type = MSM_AFE_PORT_TYPE_TX;
  1260. }
  1261. mutex_lock(&routing_lock);
  1262. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1263. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1264. if (!is_be_dai_extproc(i) &&
  1265. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1266. (msm_bedais[i].active) &&
  1267. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1268. mode = afe_get_port_type(msm_bedais[i].port_id);
  1269. adm_connect_afe_port(mode, dspst_id,
  1270. msm_bedais[i].port_id);
  1271. break;
  1272. }
  1273. }
  1274. mutex_unlock(&routing_lock);
  1275. }
  1276. static bool route_check_fe_id_adm_support(int fe_id)
  1277. {
  1278. bool rc = true;
  1279. if ((fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1280. (fe_id <= MSM_FRONTEND_DAI_LSM8)) {
  1281. /* fe id is listen while port is set to afe */
  1282. if (lsm_port_index != ADM_LSM_PORT_INDEX) {
  1283. pr_debug("%s: fe_id %d, lsm mux slim port %d\n",
  1284. __func__, fe_id, lsm_port_index);
  1285. rc = false;
  1286. }
  1287. }
  1288. return rc;
  1289. }
  1290. /*
  1291. * msm_pcm_routing_get_pp_ch_cnt:
  1292. * Read the processed channel count
  1293. *
  1294. * @fe_id: Front end ID
  1295. * @session_type: Inidicates RX or TX session type
  1296. */
  1297. int msm_pcm_routing_get_pp_ch_cnt(int fe_id, int session_type)
  1298. {
  1299. struct msm_pcm_stream_app_type_cfg cfg_data;
  1300. int be_id = 0, app_type_idx = 0, app_type = 0;
  1301. int ret = -EINVAL;
  1302. memset(&cfg_data, 0, sizeof(cfg_data));
  1303. if (!is_mm_lsm_fe_id(fe_id)) {
  1304. pr_err("%s: bad MM ID\n", __func__);
  1305. return -EINVAL;
  1306. }
  1307. ret = msm_pcm_routing_get_stream_app_type_cfg(fe_id, session_type,
  1308. &be_id, &cfg_data);
  1309. if (ret) {
  1310. pr_err("%s: cannot get stream app type cfg\n", __func__);
  1311. return ret;
  1312. }
  1313. app_type = cfg_data.app_type;
  1314. app_type_idx = msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1315. return lsm_app_type_cfg[app_type_idx].num_out_channels;
  1316. }
  1317. EXPORT_SYMBOL(msm_pcm_routing_get_pp_ch_cnt);
  1318. int msm_pcm_routing_reg_phy_compr_stream(int fe_id, int perf_mode,
  1319. int dspst_id, int stream_type,
  1320. uint32_t passthr_mode)
  1321. {
  1322. int i, j, session_type, path_type, port_type, topology;
  1323. int num_copps = 0;
  1324. struct route_payload payload;
  1325. u32 channels, sample_rate;
  1326. u16 bit_width = 16, be_bit_width;
  1327. bool is_lsm;
  1328. pr_debug("%s:fe_id[%d] perf_mode[%d] id[%d] stream_type[%d] passt[%d]",
  1329. __func__, fe_id, perf_mode, dspst_id,
  1330. stream_type, passthr_mode);
  1331. if (!is_mm_lsm_fe_id(fe_id)) {
  1332. /* bad ID assigned in machine driver */
  1333. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  1334. return -EINVAL;
  1335. }
  1336. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1337. session_type = SESSION_TYPE_RX;
  1338. if (passthr_mode != LEGACY_PCM)
  1339. path_type = ADM_PATH_COMPRESSED_RX;
  1340. else
  1341. path_type = ADM_PATH_PLAYBACK;
  1342. port_type = MSM_AFE_PORT_TYPE_RX;
  1343. } else if (stream_type == SNDRV_PCM_STREAM_CAPTURE) {
  1344. session_type = SESSION_TYPE_TX;
  1345. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1346. path_type = ADM_PATH_COMPRESSED_TX;
  1347. else
  1348. path_type = ADM_PATH_LIVE_REC;
  1349. port_type = MSM_AFE_PORT_TYPE_TX;
  1350. } else {
  1351. pr_err("%s: invalid stream type %d\n", __func__, stream_type);
  1352. return -EINVAL;
  1353. }
  1354. is_lsm = (fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1355. (fe_id <= MSM_FRONTEND_DAI_LSM8);
  1356. mutex_lock(&routing_lock);
  1357. fe_dai_map[fe_id][session_type].strm_id = dspst_id;
  1358. fe_dai_map[fe_id][session_type].perf_mode = perf_mode;
  1359. fe_dai_map[fe_id][session_type].passthr_mode = passthr_mode;
  1360. if (!route_check_fe_id_adm_support(fe_id)) {
  1361. /* ignore adm open if not supported for fe_id */
  1362. pr_debug("%s: No ADM support for fe id %d\n", __func__, fe_id);
  1363. mutex_unlock(&routing_lock);
  1364. return 0;
  1365. }
  1366. payload.num_copps = 0; /* only RX needs to use payload */
  1367. /* re-enable EQ if active */
  1368. msm_qti_pp_send_eq_values(fe_id);
  1369. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1370. if (!is_be_dai_extproc(i) &&
  1371. (afe_get_port_type(msm_bedais[i].port_id) ==
  1372. port_type) &&
  1373. (msm_bedais[i].active) &&
  1374. (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))) {
  1375. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1376. int port_id = get_port_id(msm_bedais[i].port_id);
  1377. /*
  1378. * check if ADM needs to be configured with different
  1379. * channel mapping than backend
  1380. */
  1381. if (!msm_bedais[i].adm_override_ch)
  1382. channels = msm_bedais[i].channel;
  1383. else
  1384. channels = msm_bedais[i].adm_override_ch;
  1385. bit_width = msm_routing_get_bit_width(
  1386. msm_bedais[i].format);
  1387. app_type =
  1388. fe_dai_app_type_cfg[fe_id][session_type][i].app_type;
  1389. if (app_type && is_lsm) {
  1390. app_type_idx =
  1391. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1392. sample_rate =
  1393. fe_dai_app_type_cfg[fe_id][session_type][i]
  1394. .sample_rate;
  1395. bit_width =
  1396. lsm_app_type_cfg[app_type_idx].bit_width;
  1397. } else if (app_type) {
  1398. app_type_idx =
  1399. msm_pcm_routing_get_app_type_idx(
  1400. app_type);
  1401. sample_rate =
  1402. fe_dai_app_type_cfg[fe_id][session_type][i].sample_rate;
  1403. bit_width =
  1404. app_type_cfg[app_type_idx].bit_width;
  1405. } else {
  1406. sample_rate = msm_bedais[i].sample_rate;
  1407. }
  1408. acdb_dev_id =
  1409. fe_dai_app_type_cfg[fe_id][session_type][i].acdb_dev_id;
  1410. topology = msm_routing_get_adm_topology(fe_id,
  1411. session_type,
  1412. i);
  1413. if ((passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  1414. || (passthr_mode ==
  1415. COMPRESSED_PASSTHROUGH_GEN)
  1416. || (passthr_mode ==
  1417. COMPRESSED_PASSTHROUGH_IEC61937))
  1418. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  1419. pr_debug("%s: Before adm open topology %d\n", __func__,
  1420. topology);
  1421. be_bit_width = msm_routing_get_bit_width(
  1422. msm_bedais[i].format);
  1423. if (hifi_filter_enabled && (msm_bedais[i].sample_rate
  1424. == 384000 || msm_bedais[i].sample_rate ==
  1425. 352800) && be_bit_width == 32)
  1426. bit_width = msm_routing_get_bit_width(
  1427. SNDRV_PCM_FORMAT_S32_LE);
  1428. copp_idx =
  1429. adm_open(port_id, path_type, sample_rate,
  1430. channels, topology, perf_mode,
  1431. bit_width, app_type, acdb_dev_id,
  1432. session_type);
  1433. if ((copp_idx < 0) ||
  1434. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1435. pr_err("%s:adm open failed coppid:%d\n",
  1436. __func__, copp_idx);
  1437. mutex_unlock(&routing_lock);
  1438. return -EINVAL;
  1439. }
  1440. pr_debug("%s: set idx bit of fe:%d, type: %d, be:%d\n",
  1441. __func__, fe_id, session_type, i);
  1442. set_bit(copp_idx,
  1443. &session_copp_map[fe_id][session_type][i]);
  1444. if (msm_is_resample_needed(
  1445. sample_rate,
  1446. msm_bedais[i].sample_rate))
  1447. adm_copp_mfc_cfg(port_id, copp_idx,
  1448. msm_bedais[i].sample_rate);
  1449. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1450. unsigned long copp =
  1451. session_copp_map[fe_id][session_type][i];
  1452. if (test_bit(j, &copp)) {
  1453. payload.port_id[num_copps] = port_id;
  1454. payload.copp_idx[num_copps] = j;
  1455. payload.app_type[num_copps] =
  1456. fe_dai_app_type_cfg
  1457. [fe_id][session_type][i]
  1458. .app_type;
  1459. payload.acdb_dev_id[num_copps] =
  1460. fe_dai_app_type_cfg
  1461. [fe_id][session_type][i]
  1462. .acdb_dev_id;
  1463. payload.sample_rate[num_copps] =
  1464. fe_dai_app_type_cfg
  1465. [fe_id][session_type][i]
  1466. .sample_rate;
  1467. num_copps++;
  1468. }
  1469. }
  1470. if (passthr_mode != COMPRESSED_PASSTHROUGH_DSD
  1471. && passthr_mode != COMPRESSED_PASSTHROUGH_GEN
  1472. && passthr_mode != COMPRESSED_PASSTHROUGH_IEC61937)
  1473. msm_routing_send_device_pp_params(port_id,
  1474. copp_idx, fe_id);
  1475. }
  1476. }
  1477. if (num_copps) {
  1478. payload.num_copps = num_copps;
  1479. payload.session_id = fe_dai_map[fe_id][session_type].strm_id;
  1480. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1481. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1482. }
  1483. mutex_unlock(&routing_lock);
  1484. return 0;
  1485. }
  1486. static u32 msm_pcm_routing_get_voc_sessionid(u16 val)
  1487. {
  1488. u32 session_id;
  1489. switch (val) {
  1490. case MSM_FRONTEND_DAI_QCHAT:
  1491. session_id = voc_get_session_id(QCHAT_SESSION_NAME);
  1492. break;
  1493. case MSM_FRONTEND_DAI_VOIP:
  1494. session_id = voc_get_session_id(VOIP_SESSION_NAME);
  1495. break;
  1496. case MSM_FRONTEND_DAI_VOICEMMODE1:
  1497. session_id = voc_get_session_id(VOICEMMODE1_NAME);
  1498. break;
  1499. case MSM_FRONTEND_DAI_VOICEMMODE2:
  1500. session_id = voc_get_session_id(VOICEMMODE2_NAME);
  1501. break;
  1502. default:
  1503. session_id = 0;
  1504. }
  1505. pr_debug("%s session_id 0x%x", __func__, session_id);
  1506. return session_id;
  1507. }
  1508. static int msm_pcm_routing_channel_mixer_v2(int fe_id, bool perf_mode,
  1509. int dspst_id, int stream_type)
  1510. {
  1511. int copp_idx = 0;
  1512. int sess_type = 0;
  1513. int j = 0, be_id = 0;
  1514. int ret = 0;
  1515. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1516. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1517. return 0;
  1518. }
  1519. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1520. sess_type = SESSION_TYPE_RX;
  1521. else
  1522. sess_type = SESSION_TYPE_TX;
  1523. if (!(channel_mixer_v2[fe_id][sess_type].enable)) {
  1524. pr_debug("%s: channel mixer not enabled for FE %d direction %d\n",
  1525. __func__, fe_id, sess_type);
  1526. return 0;
  1527. }
  1528. be_id = channel_mixer_v2[fe_id][sess_type].port_idx - 1;
  1529. channel_mixer_v2[fe_id][sess_type].input_channels[0] =
  1530. channel_mixer_v2[fe_id][sess_type].input_channel;
  1531. pr_debug("%s sess type %d,fe_id %d,override in:%d out:%d,be active %d\n",
  1532. __func__, sess_type, fe_id,
  1533. channel_mixer_v2[fe_id][sess_type].override_in_ch_map,
  1534. channel_mixer_v2[fe_id][sess_type].override_out_ch_map,
  1535. msm_bedais[be_id].active);
  1536. if ((msm_bedais[be_id].active) &&
  1537. test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0])) {
  1538. unsigned long copp =
  1539. session_copp_map[fe_id][sess_type][be_id];
  1540. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1541. if (test_bit(j, &copp)) {
  1542. copp_idx = j;
  1543. break;
  1544. }
  1545. }
  1546. ret = adm_programable_channel_mixer(
  1547. msm_bedais[be_id].port_id,
  1548. copp_idx, dspst_id, sess_type,
  1549. &channel_mixer_v2[fe_id][sess_type], 0);
  1550. }
  1551. return ret;
  1552. }
  1553. static int msm_pcm_routing_channel_mixer(int fe_id, bool perf_mode,
  1554. int dspst_id, int stream_type)
  1555. {
  1556. int copp_idx = 0;
  1557. int sess_type = 0;
  1558. int i = 0, j = 0, be_id;
  1559. int ret = 0;
  1560. ret = msm_pcm_routing_channel_mixer_v2(fe_id, perf_mode,
  1561. dspst_id, stream_type);
  1562. if (ret) {
  1563. pr_err("%s channel mixer v2 cmd set failure%d\n", __func__,
  1564. fe_id);
  1565. return ret;
  1566. }
  1567. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1568. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1569. return 0;
  1570. }
  1571. if (!(channel_mixer[fe_id].enable)) {
  1572. pr_debug("%s: channel mixer not enabled for FE %d\n",
  1573. __func__, fe_id);
  1574. return 0;
  1575. }
  1576. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1577. sess_type = SESSION_TYPE_RX;
  1578. else
  1579. sess_type = SESSION_TYPE_TX;
  1580. for (i = 0; i < ADM_MAX_CHANNELS && channel_input[fe_id][i] > 0;
  1581. ++i) {
  1582. be_id = channel_input[fe_id][i] - 1;
  1583. channel_mixer[fe_id].input_channels[i] =
  1584. msm_bedais[be_id].channel;
  1585. if ((msm_bedais[be_id].active) &&
  1586. test_bit(fe_id,
  1587. &msm_bedais[be_id].fe_sessions[0])) {
  1588. unsigned long copp =
  1589. session_copp_map[fe_id][sess_type][be_id];
  1590. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1591. if (test_bit(j, &copp)) {
  1592. copp_idx = j;
  1593. break;
  1594. }
  1595. }
  1596. pr_debug("%s: fe %d, be %d, channel %d, copp %d\n",
  1597. __func__,
  1598. fe_id, be_id, msm_bedais[be_id].channel,
  1599. copp_idx);
  1600. ret = adm_programable_channel_mixer(
  1601. get_port_id(msm_bedais[be_id].port_id),
  1602. copp_idx, dspst_id, sess_type,
  1603. channel_mixer + fe_id, i);
  1604. }
  1605. }
  1606. return ret;
  1607. }
  1608. /**
  1609. * msm_pcm_routing_set_channel_mixer_runtime - apply channel mixer
  1610. * setting during runtime.
  1611. *
  1612. * @be_id: backend index
  1613. * @session_id: session index
  1614. * @session_type: session type
  1615. * @params: parameters for channel mixer
  1616. *
  1617. * Retuen: 0 for success, else error
  1618. */
  1619. int msm_pcm_routing_set_channel_mixer_runtime(int be_id, int session_id,
  1620. int session_type,
  1621. struct msm_pcm_channel_mixer *params)
  1622. {
  1623. int rc = 0;
  1624. int port_id, copp_idx = 0;
  1625. be_id--;
  1626. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1627. pr_err("%s: invalid backend id %d\n", __func__,
  1628. be_id);
  1629. return -EINVAL;
  1630. }
  1631. port_id = msm_bedais[be_id].port_id;
  1632. copp_idx = adm_get_default_copp_idx(port_id);
  1633. pr_debug("%s: port_id - %d, copp_idx %d session id - %d\n",
  1634. __func__, port_id, copp_idx, session_id);
  1635. if ((params->input_channel < 0) ||
  1636. (params->input_channel > ADM_MAX_CHANNELS)) {
  1637. pr_err("%s: invalid input channel %d\n", __func__,
  1638. params->input_channel);
  1639. return -EINVAL;
  1640. }
  1641. if ((params->output_channel < 0) ||
  1642. (params->output_channel > ADM_MAX_CHANNELS)) {
  1643. pr_err("%s: invalid output channel %d\n", __func__,
  1644. params->output_channel);
  1645. return -EINVAL;
  1646. }
  1647. params->input_channels[0] = params->input_channel;
  1648. pr_debug("%s sess type %d,override in:%d out:%d,be active %d\n",
  1649. __func__, session_type,
  1650. params->override_in_ch_map,
  1651. params->override_out_ch_map,
  1652. msm_bedais[be_id].active);
  1653. rc = adm_programable_channel_mixer(port_id,
  1654. copp_idx,
  1655. session_id,
  1656. session_type,
  1657. params,
  1658. 0);
  1659. if (rc) {
  1660. pr_err("%s: send params failed rc=%d\n", __func__, rc);
  1661. rc = -EINVAL;
  1662. }
  1663. return rc;
  1664. }
  1665. EXPORT_SYMBOL(msm_pcm_routing_set_channel_mixer_runtime);
  1666. int msm_pcm_routing_reg_phy_stream(int fedai_id, int perf_mode,
  1667. int dspst_id, int stream_type)
  1668. {
  1669. int i, j, session_type, path_type, port_type, topology, num_copps = 0;
  1670. struct route_payload payload;
  1671. u32 channels, sample_rate;
  1672. uint16_t bits_per_sample = 16, be_bit_width;
  1673. uint32_t passthr_mode = LEGACY_PCM;
  1674. int ret = 0;
  1675. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1676. /* bad ID assigned in machine driver */
  1677. pr_err("%s: bad MM ID %d\n", __func__, fedai_id);
  1678. return -EINVAL;
  1679. }
  1680. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1681. session_type = SESSION_TYPE_RX;
  1682. path_type = ADM_PATH_PLAYBACK;
  1683. port_type = MSM_AFE_PORT_TYPE_RX;
  1684. } else {
  1685. session_type = SESSION_TYPE_TX;
  1686. path_type = ADM_PATH_LIVE_REC;
  1687. port_type = MSM_AFE_PORT_TYPE_TX;
  1688. }
  1689. mutex_lock(&routing_lock);
  1690. payload.num_copps = 0; /* only RX needs to use payload */
  1691. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1692. fe_dai_map[fedai_id][session_type].perf_mode = perf_mode;
  1693. fe_dai_map[fedai_id][session_type].passthr_mode = LEGACY_PCM;
  1694. /* re-enable EQ if active */
  1695. msm_qti_pp_send_eq_values(fedai_id);
  1696. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1697. if (!is_be_dai_extproc(i) &&
  1698. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1699. (msm_bedais[i].active) &&
  1700. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1701. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1702. int port_id = get_port_id(msm_bedais[i].port_id);
  1703. /*
  1704. * check if ADM needs to be configured with different
  1705. * channel mapping than backend
  1706. */
  1707. if (!msm_bedais[i].adm_override_ch)
  1708. channels = msm_bedais[i].channel;
  1709. else
  1710. channels = msm_bedais[i].adm_override_ch;
  1711. bits_per_sample = msm_routing_get_bit_width(
  1712. msm_bedais[i].format);
  1713. app_type =
  1714. fe_dai_app_type_cfg[fedai_id][session_type][i].app_type;
  1715. if (app_type) {
  1716. app_type_idx =
  1717. msm_pcm_routing_get_app_type_idx(app_type);
  1718. sample_rate =
  1719. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1720. .sample_rate;
  1721. bits_per_sample =
  1722. app_type_cfg[app_type_idx].bit_width;
  1723. } else
  1724. sample_rate = msm_bedais[i].sample_rate;
  1725. acdb_dev_id =
  1726. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1727. .acdb_dev_id;
  1728. topology = msm_routing_get_adm_topology(fedai_id,
  1729. session_type,
  1730. i);
  1731. be_bit_width = msm_routing_get_bit_width(
  1732. msm_bedais[i].format);
  1733. if (hifi_filter_enabled && (msm_bedais[i].sample_rate ==
  1734. 384000 ||msm_bedais[i].sample_rate == 352800)
  1735. && be_bit_width == 32)
  1736. bits_per_sample = msm_routing_get_bit_width(
  1737. SNDRV_PCM_FORMAT_S32_LE);
  1738. copp_idx = adm_open(port_id, path_type,
  1739. sample_rate, channels, topology,
  1740. perf_mode, bits_per_sample,
  1741. app_type, acdb_dev_id,
  1742. session_type);
  1743. if ((copp_idx < 0) ||
  1744. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1745. pr_err("%s: adm open failed copp_idx:%d\n",
  1746. __func__, copp_idx);
  1747. mutex_unlock(&routing_lock);
  1748. return -EINVAL;
  1749. }
  1750. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1751. __func__, fedai_id, session_type, i);
  1752. set_bit(copp_idx,
  1753. &session_copp_map[fedai_id][session_type][i]);
  1754. if (msm_is_resample_needed(
  1755. sample_rate,
  1756. msm_bedais[i].sample_rate))
  1757. adm_copp_mfc_cfg(port_id, copp_idx,
  1758. msm_bedais[i].sample_rate);
  1759. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1760. unsigned long copp =
  1761. session_copp_map[fedai_id][session_type][i];
  1762. if (test_bit(j, &copp)) {
  1763. payload.port_id[num_copps] = port_id;
  1764. payload.copp_idx[num_copps] = j;
  1765. payload.app_type[num_copps] =
  1766. fe_dai_app_type_cfg
  1767. [fedai_id][session_type]
  1768. [i].app_type;
  1769. payload.acdb_dev_id[num_copps] =
  1770. fe_dai_app_type_cfg
  1771. [fedai_id][session_type]
  1772. [i].acdb_dev_id;
  1773. payload.sample_rate[num_copps] =
  1774. fe_dai_app_type_cfg
  1775. [fedai_id][session_type]
  1776. [i].sample_rate;
  1777. num_copps++;
  1778. }
  1779. }
  1780. if (perf_mode == LEGACY_PCM_MODE)
  1781. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  1782. topology, channels);
  1783. }
  1784. }
  1785. if (num_copps) {
  1786. payload.num_copps = num_copps;
  1787. payload.session_id = fe_dai_map[fedai_id][session_type].strm_id;
  1788. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1789. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1790. }
  1791. ret = msm_pcm_routing_channel_mixer(fedai_id, perf_mode,
  1792. dspst_id, stream_type);
  1793. mutex_unlock(&routing_lock);
  1794. return ret;
  1795. }
  1796. int msm_pcm_routing_reg_phy_stream_v2(int fedai_id, int perf_mode,
  1797. int dspst_id, int stream_type,
  1798. struct msm_pcm_routing_evt event_info)
  1799. {
  1800. if (msm_pcm_routing_reg_phy_stream(fedai_id, perf_mode, dspst_id,
  1801. stream_type)) {
  1802. pr_err("%s: failed to reg phy stream\n", __func__);
  1803. return -EINVAL;
  1804. }
  1805. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1806. fe_dai_map[fedai_id][SESSION_TYPE_RX].event_info = event_info;
  1807. else
  1808. fe_dai_map[fedai_id][SESSION_TYPE_TX].event_info = event_info;
  1809. return 0;
  1810. }
  1811. void msm_pcm_routing_dereg_phy_stream(int fedai_id, int stream_type)
  1812. {
  1813. int i, port_type, session_type, path_type, topology, port_id;
  1814. struct msm_pcm_routing_fdai_data *fdai;
  1815. if (!is_mm_lsm_fe_id(fedai_id)) {
  1816. /* bad ID assigned in machine driver */
  1817. pr_err("%s: bad MM ID\n", __func__);
  1818. return;
  1819. }
  1820. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1821. port_type = MSM_AFE_PORT_TYPE_RX;
  1822. session_type = SESSION_TYPE_RX;
  1823. path_type = ADM_PATH_PLAYBACK;
  1824. } else {
  1825. port_type = MSM_AFE_PORT_TYPE_TX;
  1826. session_type = SESSION_TYPE_TX;
  1827. path_type = ADM_PATH_LIVE_REC;
  1828. }
  1829. mutex_lock(&routing_lock);
  1830. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1831. if (!is_be_dai_extproc(i) &&
  1832. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1833. (msm_bedais[i].active) &&
  1834. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1835. int idx;
  1836. unsigned long copp =
  1837. session_copp_map[fedai_id][session_type][i];
  1838. fdai = &fe_dai_map[fedai_id][session_type];
  1839. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1840. if (test_bit(idx, &copp))
  1841. break;
  1842. if (idx >= MAX_COPPS_PER_PORT || idx < 0) {
  1843. pr_debug("%s: copp idx is invalid, exiting\n",
  1844. __func__);
  1845. continue;
  1846. }
  1847. port_id = get_port_id(msm_bedais[i].port_id);
  1848. topology = adm_get_topology_for_port_copp_idx(
  1849. port_id, idx);
  1850. msm_routing_unload_topology(topology);
  1851. adm_close(port_id, fdai->perf_mode, idx);
  1852. pr_debug("%s:copp:%ld,idx bit fe:%d,type:%d,be:%d\n",
  1853. __func__, copp, fedai_id, session_type, i);
  1854. clear_bit(idx,
  1855. &session_copp_map[fedai_id][session_type][i]);
  1856. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1857. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1858. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1859. (fdai->passthr_mode == LEGACY_PCM))
  1860. msm_pcm_routing_deinit_pp(port_id, topology);
  1861. }
  1862. }
  1863. fe_dai_map[fedai_id][session_type].strm_id = INVALID_SESSION;
  1864. fe_dai_map[fedai_id][session_type].be_srate = 0;
  1865. mutex_unlock(&routing_lock);
  1866. }
  1867. /* Check if FE/BE route is set */
  1868. static bool msm_pcm_routing_route_is_set(u16 be_id, u16 fe_id)
  1869. {
  1870. bool rc = false;
  1871. if (!is_mm_lsm_fe_id(fe_id)) {
  1872. /* recheck FE ID in the mixer control defined in this file */
  1873. pr_err("%s: bad MM ID\n", __func__);
  1874. return rc;
  1875. }
  1876. if (test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0]))
  1877. rc = true;
  1878. return rc;
  1879. }
  1880. static void msm_pcm_routing_process_audio(u16 reg, u16 val, int set)
  1881. {
  1882. int session_type, path_type, topology;
  1883. u32 channels, sample_rate;
  1884. uint16_t bits_per_sample = 16, be_bit_width;
  1885. struct msm_pcm_routing_fdai_data *fdai;
  1886. uint32_t passthr_mode;
  1887. bool is_lsm;
  1888. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1889. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  1890. afe_get_port_type(msm_bedais[reg].port_id) ==
  1891. MSM_AFE_PORT_TYPE_RX) {
  1892. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  1893. __func__, set, msm_bedais[reg].port_id);
  1894. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  1895. } else if (!is_mm_lsm_fe_id(val)) {
  1896. /* recheck FE ID in the mixer control defined in this file */
  1897. pr_err("%s: bad MM ID\n", __func__);
  1898. return;
  1899. }
  1900. if (!route_check_fe_id_adm_support(val)) {
  1901. /* ignore adm open if not supported for fe_id */
  1902. pr_debug("%s: No ADM support for fe id %d\n", __func__, val);
  1903. if (set)
  1904. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1905. else
  1906. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1907. return;
  1908. }
  1909. session_type =
  1910. (afe_get_port_type(msm_bedais[reg].port_id) == MSM_AFE_PORT_TYPE_RX) ?
  1911. SESSION_TYPE_RX : SESSION_TYPE_TX;
  1912. fdai = &fe_dai_map[val][session_type];
  1913. passthr_mode = fdai->passthr_mode;
  1914. if (session_type == SESSION_TYPE_RX) {
  1915. if (passthr_mode != LEGACY_PCM)
  1916. path_type = ADM_PATH_COMPRESSED_RX;
  1917. else
  1918. path_type = ADM_PATH_PLAYBACK;
  1919. } else {
  1920. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1921. path_type = ADM_PATH_COMPRESSED_TX;
  1922. else
  1923. path_type = ADM_PATH_LIVE_REC;
  1924. }
  1925. is_lsm = (val >= MSM_FRONTEND_DAI_LSM1) &&
  1926. (val <= MSM_FRONTEND_DAI_LSM8);
  1927. mutex_lock(&routing_lock);
  1928. if (set) {
  1929. if (!test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1930. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1931. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1932. voc_start_playback(set, msm_bedais[reg].port_id);
  1933. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1934. if (msm_bedais[reg].active && fdai->strm_id !=
  1935. INVALID_SESSION) {
  1936. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1937. int port_id = get_port_id(msm_bedais[reg].port_id);
  1938. /*
  1939. * check if ADM needs to be configured with different
  1940. * channel mapping than backend
  1941. */
  1942. if (!msm_bedais[reg].adm_override_ch)
  1943. channels = msm_bedais[reg].channel;
  1944. else
  1945. channels = msm_bedais[reg].adm_override_ch;
  1946. if (session_type == SESSION_TYPE_TX &&
  1947. fdai->be_srate &&
  1948. (fdai->be_srate != msm_bedais[reg].sample_rate)) {
  1949. pr_debug("%s: flush strm %d diff BE rates\n",
  1950. __func__, fdai->strm_id);
  1951. if (fdai->event_info.event_func)
  1952. fdai->event_info.event_func(
  1953. MSM_PCM_RT_EVT_BUF_RECFG,
  1954. fdai->event_info.priv_data);
  1955. fdai->be_srate = 0; /* might not need it */
  1956. }
  1957. bits_per_sample = msm_routing_get_bit_width(
  1958. msm_bedais[reg].format);
  1959. app_type =
  1960. fe_dai_app_type_cfg[val][session_type][reg].app_type;
  1961. if (app_type && is_lsm) {
  1962. app_type_idx =
  1963. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1964. sample_rate =
  1965. fe_dai_app_type_cfg[val][session_type][reg]
  1966. .sample_rate;
  1967. bits_per_sample =
  1968. lsm_app_type_cfg[app_type_idx].bit_width;
  1969. } else if (app_type) {
  1970. app_type_idx =
  1971. msm_pcm_routing_get_app_type_idx(app_type);
  1972. sample_rate =
  1973. fe_dai_app_type_cfg[val][session_type][reg]
  1974. .sample_rate;
  1975. bits_per_sample =
  1976. app_type_cfg[app_type_idx].bit_width;
  1977. } else
  1978. sample_rate = msm_bedais[reg].sample_rate;
  1979. topology = msm_routing_get_adm_topology(val,
  1980. session_type,
  1981. reg);
  1982. acdb_dev_id =
  1983. fe_dai_app_type_cfg[val][session_type][reg].acdb_dev_id;
  1984. be_bit_width = msm_routing_get_bit_width(
  1985. msm_bedais[reg].format);
  1986. if (hifi_filter_enabled && (msm_bedais[reg].sample_rate
  1987. == 384000 ||msm_bedais[reg].sample_rate ==
  1988. 352800) && be_bit_width == 32)
  1989. bits_per_sample = msm_routing_get_bit_width(
  1990. SNDRV_PCM_FORMAT_S32_LE);
  1991. copp_idx = adm_open(port_id, path_type,
  1992. sample_rate, channels, topology,
  1993. fdai->perf_mode, bits_per_sample,
  1994. app_type, acdb_dev_id,
  1995. session_type);
  1996. if ((copp_idx < 0) ||
  1997. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1998. pr_err("%s: adm open failed\n", __func__);
  1999. mutex_unlock(&routing_lock);
  2000. return;
  2001. }
  2002. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  2003. __func__, val, session_type, reg);
  2004. set_bit(copp_idx,
  2005. &session_copp_map[val][session_type][reg]);
  2006. if (msm_is_resample_needed(
  2007. sample_rate,
  2008. msm_bedais[reg].sample_rate))
  2009. adm_copp_mfc_cfg(port_id, copp_idx,
  2010. msm_bedais[reg].sample_rate);
  2011. if (session_type == SESSION_TYPE_RX &&
  2012. fdai->event_info.event_func)
  2013. fdai->event_info.event_func(
  2014. MSM_PCM_RT_EVT_DEVSWITCH,
  2015. fdai->event_info.priv_data);
  2016. msm_pcm_routing_build_matrix(val, session_type,
  2017. path_type,
  2018. fdai->perf_mode,
  2019. passthr_mode);
  2020. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  2021. (passthr_mode == LEGACY_PCM))
  2022. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  2023. topology, channels);
  2024. }
  2025. } else {
  2026. if (test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  2027. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  2028. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  2029. voc_start_playback(set, msm_bedais[reg].port_id);
  2030. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2031. if (msm_bedais[reg].active && fdai->strm_id !=
  2032. INVALID_SESSION) {
  2033. int idx;
  2034. int port_id;
  2035. unsigned long copp =
  2036. session_copp_map[val][session_type][reg];
  2037. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  2038. if (test_bit(idx, &copp))
  2039. break;
  2040. if (idx >= MAX_COPPS_PER_PORT) {
  2041. pr_debug("%s: copp idx is invalid, exiting\n",
  2042. __func__);
  2043. mutex_unlock(&routing_lock);
  2044. return;
  2045. }
  2046. port_id = get_port_id(msm_bedais[reg].port_id);
  2047. topology = adm_get_topology_for_port_copp_idx(port_id,
  2048. idx);
  2049. msm_routing_unload_topology(topology);
  2050. adm_close(port_id, fdai->perf_mode, idx);
  2051. pr_debug("%s: copp: %ld, reset idx bit fe:%d, type: %d, be:%d topology=0x%x\n",
  2052. __func__, copp, val, session_type, reg,
  2053. topology);
  2054. clear_bit(idx,
  2055. &session_copp_map[val][session_type][reg]);
  2056. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  2057. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  2058. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  2059. (passthr_mode == LEGACY_PCM))
  2060. msm_pcm_routing_deinit_pp(port_id, topology);
  2061. msm_pcm_routing_build_matrix(val, session_type,
  2062. path_type,
  2063. fdai->perf_mode,
  2064. passthr_mode);
  2065. }
  2066. }
  2067. if ((msm_bedais[reg].port_id == VOICE_RECORD_RX)
  2068. || (msm_bedais[reg].port_id == VOICE_RECORD_TX))
  2069. voc_start_record(msm_bedais[reg].port_id, set, voc_session_id);
  2070. mutex_unlock(&routing_lock);
  2071. }
  2072. static int msm_routing_get_audio_mixer(struct snd_kcontrol *kcontrol,
  2073. struct snd_ctl_elem_value *ucontrol)
  2074. {
  2075. struct soc_mixer_control *mc =
  2076. (struct soc_mixer_control *)kcontrol->private_value;
  2077. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2078. ucontrol->value.integer.value[0] = 1;
  2079. else
  2080. ucontrol->value.integer.value[0] = 0;
  2081. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2082. ucontrol->value.integer.value[0]);
  2083. return 0;
  2084. }
  2085. static int msm_routing_put_audio_mixer(struct snd_kcontrol *kcontrol,
  2086. struct snd_ctl_elem_value *ucontrol)
  2087. {
  2088. struct snd_soc_dapm_widget *widget =
  2089. snd_soc_dapm_kcontrol_widget(kcontrol);
  2090. struct soc_mixer_control *mc =
  2091. (struct soc_mixer_control *)kcontrol->private_value;
  2092. struct snd_soc_dapm_update *update = NULL;
  2093. if (ucontrol->value.integer.value[0] &&
  2094. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false) {
  2095. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  2096. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2097. update);
  2098. } else if (!ucontrol->value.integer.value[0] &&
  2099. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true) {
  2100. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  2101. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2102. update);
  2103. }
  2104. return 1;
  2105. }
  2106. static int msm_routing_get_listen_mixer(struct snd_kcontrol *kcontrol,
  2107. struct snd_ctl_elem_value *ucontrol)
  2108. {
  2109. struct soc_mixer_control *mc =
  2110. (struct soc_mixer_control *)kcontrol->private_value;
  2111. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2112. ucontrol->value.integer.value[0] = 1;
  2113. else
  2114. ucontrol->value.integer.value[0] = 0;
  2115. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2116. ucontrol->value.integer.value[0]);
  2117. return 0;
  2118. }
  2119. static int msm_routing_put_listen_mixer(struct snd_kcontrol *kcontrol,
  2120. struct snd_ctl_elem_value *ucontrol)
  2121. {
  2122. struct snd_soc_dapm_widget *widget =
  2123. snd_soc_dapm_kcontrol_widget(kcontrol);
  2124. struct soc_mixer_control *mc =
  2125. (struct soc_mixer_control *)kcontrol->private_value;
  2126. struct snd_soc_dapm_update *update = NULL;
  2127. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2128. ucontrol->value.integer.value[0]);
  2129. if (ucontrol->value.integer.value[0]) {
  2130. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false)
  2131. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  2132. snd_soc_dapm_mixer_update_power(widget->dapm,
  2133. kcontrol, 1, update);
  2134. } else if (!ucontrol->value.integer.value[0]) {
  2135. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true)
  2136. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  2137. snd_soc_dapm_mixer_update_power(widget->dapm,
  2138. kcontrol, 0, update);
  2139. }
  2140. return 1;
  2141. }
  2142. static void msm_pcm_routing_process_voice(u16 reg, u16 val, int set)
  2143. {
  2144. u32 session_id = 0;
  2145. u16 path_type;
  2146. struct media_format_info voc_be_media_format;
  2147. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  2148. session_id = msm_pcm_routing_get_voc_sessionid(val);
  2149. pr_debug("%s: FE DAI 0x%x session_id 0x%x\n",
  2150. __func__, val, session_id);
  2151. mutex_lock(&routing_lock);
  2152. if (set)
  2153. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2154. else
  2155. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2156. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  2157. afe_get_port_type(msm_bedais[reg].port_id) ==
  2158. MSM_AFE_PORT_TYPE_RX) {
  2159. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  2160. __func__, set, msm_bedais[reg].port_id);
  2161. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  2162. }
  2163. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  2164. MSM_AFE_PORT_TYPE_RX)
  2165. path_type = RX_PATH;
  2166. else
  2167. path_type = TX_PATH;
  2168. if (set) {
  2169. if (msm_bedais[reg].active) {
  2170. voc_set_route_flag(session_id, path_type, 1);
  2171. memset(&voc_be_media_format, 0,
  2172. sizeof(struct media_format_info));
  2173. voc_be_media_format.port_id = msm_bedais[reg].port_id;
  2174. voc_be_media_format.num_channels =
  2175. msm_bedais[reg].channel;
  2176. voc_be_media_format.sample_rate =
  2177. msm_bedais[reg].sample_rate;
  2178. voc_be_media_format.bits_per_sample =
  2179. msm_bedais[reg].format;
  2180. /* Defaulting this to 1 for voice call usecases */
  2181. voc_be_media_format.channel_mapping[0] = 1;
  2182. voc_set_device_config(session_id, path_type,
  2183. &voc_be_media_format);
  2184. if (voc_get_route_flag(session_id, TX_PATH) &&
  2185. voc_get_route_flag(session_id, RX_PATH))
  2186. voc_enable_device(session_id);
  2187. } else {
  2188. pr_debug("%s BE is not active\n", __func__);
  2189. }
  2190. } else {
  2191. voc_set_route_flag(session_id, path_type, 0);
  2192. voc_disable_device(session_id);
  2193. }
  2194. mutex_unlock(&routing_lock);
  2195. }
  2196. static int msm_routing_get_voice_mixer(struct snd_kcontrol *kcontrol,
  2197. struct snd_ctl_elem_value *ucontrol)
  2198. {
  2199. struct soc_mixer_control *mc =
  2200. (struct soc_mixer_control *)kcontrol->private_value;
  2201. mutex_lock(&routing_lock);
  2202. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2203. ucontrol->value.integer.value[0] = 1;
  2204. else
  2205. ucontrol->value.integer.value[0] = 0;
  2206. mutex_unlock(&routing_lock);
  2207. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2208. ucontrol->value.integer.value[0]);
  2209. return 0;
  2210. }
  2211. static int msm_routing_put_voice_mixer(struct snd_kcontrol *kcontrol,
  2212. struct snd_ctl_elem_value *ucontrol)
  2213. {
  2214. struct snd_soc_dapm_widget *widget =
  2215. snd_soc_dapm_kcontrol_widget(kcontrol);
  2216. struct soc_mixer_control *mc =
  2217. (struct soc_mixer_control *)kcontrol->private_value;
  2218. struct snd_soc_dapm_update *update = NULL;
  2219. if (ucontrol->value.integer.value[0]) {
  2220. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 1);
  2221. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2222. update);
  2223. } else {
  2224. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 0);
  2225. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2226. update);
  2227. }
  2228. return 1;
  2229. }
  2230. static int msm_routing_get_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  2231. struct snd_ctl_elem_value *ucontrol)
  2232. {
  2233. struct soc_mixer_control *mc =
  2234. (struct soc_mixer_control *)kcontrol->private_value;
  2235. mutex_lock(&routing_lock);
  2236. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2237. ucontrol->value.integer.value[0] = 1;
  2238. else
  2239. ucontrol->value.integer.value[0] = 0;
  2240. mutex_unlock(&routing_lock);
  2241. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2242. ucontrol->value.integer.value[0]);
  2243. return 0;
  2244. }
  2245. static int msm_routing_put_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  2246. struct snd_ctl_elem_value *ucontrol)
  2247. {
  2248. struct snd_soc_dapm_widget *widget =
  2249. snd_soc_dapm_kcontrol_widget(kcontrol);
  2250. struct soc_mixer_control *mc =
  2251. (struct soc_mixer_control *)kcontrol->private_value;
  2252. struct snd_soc_dapm_update *update = NULL;
  2253. if (ucontrol->value.integer.value[0]) {
  2254. mutex_lock(&routing_lock);
  2255. set_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  2256. mutex_unlock(&routing_lock);
  2257. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2258. update);
  2259. } else {
  2260. mutex_lock(&routing_lock);
  2261. clear_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  2262. mutex_unlock(&routing_lock);
  2263. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2264. update);
  2265. }
  2266. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2267. ucontrol->value.integer.value[0]);
  2268. return 1;
  2269. }
  2270. /*
  2271. * Return the mapping between port ID and backend ID to enable the AFE callback
  2272. * to determine the acdb_dev_id from the port id
  2273. */
  2274. int msm_pcm_get_be_id_from_port_id(int port_id)
  2275. {
  2276. int i;
  2277. int be_id = -EINVAL;
  2278. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  2279. if (msm_bedais[i].port_id == port_id) {
  2280. be_id = i;
  2281. break;
  2282. }
  2283. }
  2284. return be_id;
  2285. }
  2286. /*
  2287. * Return the registered dev_acdb_id given a port ID to enable identifying the
  2288. * correct AFE calibration information by comparing the header information.
  2289. */
  2290. static int msm_pcm_get_dev_acdb_id_by_port_id(int port_id)
  2291. {
  2292. int acdb_id = -EINVAL;
  2293. int i = 0;
  2294. int session;
  2295. int port_type = afe_get_port_type(port_id);
  2296. int be_id = msm_pcm_get_be_id_from_port_id(port_id);
  2297. pr_debug("%s:port_id %d be_id %d, port_type 0x%x\n",
  2298. __func__, port_id, be_id, port_type);
  2299. if (port_type == MSM_AFE_PORT_TYPE_TX) {
  2300. session = SESSION_TYPE_TX;
  2301. } else if (port_type == MSM_AFE_PORT_TYPE_RX) {
  2302. session = SESSION_TYPE_RX;
  2303. } else {
  2304. pr_err("%s: Invalid port type %d\n", __func__, port_type);
  2305. acdb_id = -EINVAL;
  2306. goto exit;
  2307. }
  2308. if (be_id < 0) {
  2309. pr_err("%s: Error getting backend id %d\n", __func__, be_id);
  2310. goto exit;
  2311. }
  2312. mutex_lock(&routing_lock);
  2313. i = find_first_bit(&msm_bedais[be_id].fe_sessions[0],
  2314. MSM_FRONTEND_DAI_MAX);
  2315. if (i < MSM_FRONTEND_DAI_MAX)
  2316. acdb_id = fe_dai_app_type_cfg[i][session][be_id].acdb_dev_id;
  2317. pr_debug("%s: FE[%d] session[%d] BE[%d] acdb_id(%d)\n",
  2318. __func__, i, session, be_id, acdb_id);
  2319. mutex_unlock(&routing_lock);
  2320. exit:
  2321. return acdb_id;
  2322. }
  2323. static int msm_routing_get_switch_mixer(struct snd_kcontrol *kcontrol,
  2324. struct snd_ctl_elem_value *ucontrol)
  2325. {
  2326. ucontrol->value.integer.value[0] = fm_switch_enable;
  2327. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2328. ucontrol->value.integer.value[0]);
  2329. return 0;
  2330. }
  2331. static int msm_routing_put_switch_mixer(struct snd_kcontrol *kcontrol,
  2332. struct snd_ctl_elem_value *ucontrol)
  2333. {
  2334. struct snd_soc_dapm_widget *widget =
  2335. snd_soc_dapm_kcontrol_widget(kcontrol);
  2336. struct snd_soc_dapm_update *update = NULL;
  2337. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2338. ucontrol->value.integer.value[0]);
  2339. if (ucontrol->value.integer.value[0])
  2340. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2341. update);
  2342. else
  2343. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2344. update);
  2345. fm_switch_enable = ucontrol->value.integer.value[0];
  2346. return 1;
  2347. }
  2348. static int msm_routing_get_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2349. struct snd_ctl_elem_value *ucontrol)
  2350. {
  2351. ucontrol->value.integer.value[0] = hfp_switch_enable;
  2352. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2353. ucontrol->value.integer.value[0]);
  2354. return 0;
  2355. }
  2356. static int msm_routing_put_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2357. struct snd_ctl_elem_value *ucontrol)
  2358. {
  2359. struct snd_soc_dapm_widget *widget =
  2360. snd_soc_dapm_kcontrol_widget(kcontrol);
  2361. struct snd_soc_dapm_update *update = NULL;
  2362. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2363. ucontrol->value.integer.value[0]);
  2364. if (ucontrol->value.integer.value[0])
  2365. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2366. 1, update);
  2367. else
  2368. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2369. 0, update);
  2370. hfp_switch_enable = ucontrol->value.integer.value[0];
  2371. return 1;
  2372. }
  2373. static int msm_routing_a2dp_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2374. struct snd_ctl_elem_value *ucontrol)
  2375. {
  2376. ucontrol->value.integer.value[0] = a2dp_switch_enable;
  2377. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2378. ucontrol->value.integer.value[0]);
  2379. return 0;
  2380. }
  2381. static int msm_routing_a2dp_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2382. struct snd_ctl_elem_value *ucontrol)
  2383. {
  2384. struct snd_soc_dapm_widget *widget =
  2385. snd_soc_dapm_kcontrol_widget(kcontrol);
  2386. struct snd_soc_dapm_update *update = NULL;
  2387. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2388. ucontrol->value.integer.value[0]);
  2389. a2dp_switch_enable = ucontrol->value.integer.value[0];
  2390. if (a2dp_switch_enable)
  2391. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2392. 1, update);
  2393. else
  2394. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2395. 0, update);
  2396. return 1;
  2397. }
  2398. static int msm_routing_sco_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2399. struct snd_ctl_elem_value *ucontrol)
  2400. {
  2401. ucontrol->value.integer.value[0] = sco_switch_enable;
  2402. pr_debug("%s: SCO Switch enable %ld\n", __func__,
  2403. ucontrol->value.integer.value[0]);
  2404. return 0;
  2405. }
  2406. static int msm_routing_sco_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2407. struct snd_ctl_elem_value *ucontrol)
  2408. {
  2409. struct snd_soc_dapm_widget *widget =
  2410. snd_soc_dapm_kcontrol_widget(kcontrol);
  2411. struct snd_soc_dapm_update *update = NULL;
  2412. pr_debug("%s: SCO Switch enable %ld\n", __func__,
  2413. ucontrol->value.integer.value[0]);
  2414. sco_switch_enable = ucontrol->value.integer.value[0];
  2415. if (sco_switch_enable)
  2416. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2417. 1, update);
  2418. else
  2419. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2420. 0, update);
  2421. return 1;
  2422. }
  2423. static int msm_routing_get_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2424. struct snd_ctl_elem_value *ucontrol)
  2425. {
  2426. ucontrol->value.integer.value[0] = int0_mi2s_switch_enable;
  2427. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2428. ucontrol->value.integer.value[0]);
  2429. return 0;
  2430. }
  2431. static int msm_routing_put_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2432. struct snd_ctl_elem_value *ucontrol)
  2433. {
  2434. struct snd_soc_dapm_widget *widget =
  2435. snd_soc_dapm_kcontrol_widget(kcontrol);
  2436. struct snd_soc_dapm_update *update = NULL;
  2437. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2438. ucontrol->value.integer.value[0]);
  2439. if (ucontrol->value.integer.value[0])
  2440. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2441. update);
  2442. else
  2443. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2444. update);
  2445. int0_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2446. return 1;
  2447. }
  2448. static int msm_routing_get_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2449. struct snd_ctl_elem_value *ucontrol)
  2450. {
  2451. ucontrol->value.integer.value[0] = int4_mi2s_switch_enable;
  2452. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2453. ucontrol->value.integer.value[0]);
  2454. return 0;
  2455. }
  2456. static int msm_routing_put_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2457. struct snd_ctl_elem_value *ucontrol)
  2458. {
  2459. struct snd_soc_dapm_widget *widget =
  2460. snd_soc_dapm_kcontrol_widget(kcontrol);
  2461. struct snd_soc_dapm_update *update = NULL;
  2462. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2463. ucontrol->value.integer.value[0]);
  2464. if (ucontrol->value.integer.value[0])
  2465. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2466. update);
  2467. else
  2468. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2469. update);
  2470. int4_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2471. return 1;
  2472. }
  2473. static int msm_routing_get_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2474. struct snd_ctl_elem_value *ucontrol)
  2475. {
  2476. ucontrol->value.integer.value[0] = usb_switch_enable;
  2477. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2478. ucontrol->value.integer.value[0]);
  2479. return 0;
  2480. }
  2481. static int msm_routing_put_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2482. struct snd_ctl_elem_value *ucontrol)
  2483. {
  2484. struct snd_soc_dapm_widget *widget =
  2485. snd_soc_dapm_kcontrol_widget(kcontrol);
  2486. struct snd_soc_dapm_update *update = NULL;
  2487. pr_debug("%s: USB Switch enable %ld\n", __func__,
  2488. ucontrol->value.integer.value[0]);
  2489. if (ucontrol->value.integer.value[0])
  2490. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2491. 1, update);
  2492. else
  2493. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2494. 0, update);
  2495. usb_switch_enable = ucontrol->value.integer.value[0];
  2496. return 1;
  2497. }
  2498. static int msm_routing_get_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2499. struct snd_ctl_elem_value *ucontrol)
  2500. {
  2501. ucontrol->value.integer.value[0] = pri_mi2s_switch_enable;
  2502. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2503. ucontrol->value.integer.value[0]);
  2504. return 0;
  2505. }
  2506. static int msm_routing_put_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2507. struct snd_ctl_elem_value *ucontrol)
  2508. {
  2509. struct snd_soc_dapm_widget *widget =
  2510. snd_soc_dapm_kcontrol_widget(kcontrol);
  2511. struct snd_soc_dapm_update *update = NULL;
  2512. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2513. ucontrol->value.integer.value[0]);
  2514. if (ucontrol->value.integer.value[0])
  2515. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2516. update);
  2517. else
  2518. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2519. update);
  2520. pri_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2521. return 1;
  2522. }
  2523. static int msm_routing_get_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2524. struct snd_ctl_elem_value *ucontrol)
  2525. {
  2526. ucontrol->value.integer.value[0] = sec_mi2s_switch_enable;
  2527. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2528. ucontrol->value.integer.value[0]);
  2529. return 0;
  2530. }
  2531. static int msm_routing_put_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2532. struct snd_ctl_elem_value *ucontrol)
  2533. {
  2534. struct snd_soc_dapm_widget *widget =
  2535. snd_soc_dapm_kcontrol_widget(kcontrol);
  2536. struct snd_soc_dapm_update *update = NULL;
  2537. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2538. ucontrol->value.integer.value[0]);
  2539. if (ucontrol->value.integer.value[0])
  2540. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2541. update);
  2542. else
  2543. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2544. update);
  2545. sec_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2546. return 1;
  2547. }
  2548. static int msm_routing_get_tert_mi2s_switch_mixer(
  2549. struct snd_kcontrol *kcontrol,
  2550. struct snd_ctl_elem_value *ucontrol)
  2551. {
  2552. ucontrol->value.integer.value[0] = tert_mi2s_switch_enable;
  2553. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2554. ucontrol->value.integer.value[0]);
  2555. return 0;
  2556. }
  2557. static int msm_routing_put_tert_mi2s_switch_mixer(
  2558. struct snd_kcontrol *kcontrol,
  2559. struct snd_ctl_elem_value *ucontrol)
  2560. {
  2561. struct snd_soc_dapm_widget *widget =
  2562. snd_soc_dapm_kcontrol_widget(kcontrol);
  2563. struct snd_soc_dapm_update *update = NULL;
  2564. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2565. ucontrol->value.integer.value[0]);
  2566. if (ucontrol->value.integer.value[0])
  2567. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2568. update);
  2569. else
  2570. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2571. update);
  2572. tert_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2573. return 1;
  2574. }
  2575. static int msm_routing_get_quat_mi2s_switch_mixer(
  2576. struct snd_kcontrol *kcontrol,
  2577. struct snd_ctl_elem_value *ucontrol)
  2578. {
  2579. ucontrol->value.integer.value[0] = quat_mi2s_switch_enable;
  2580. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2581. ucontrol->value.integer.value[0]);
  2582. return 0;
  2583. }
  2584. static int msm_routing_put_quat_mi2s_switch_mixer(
  2585. struct snd_kcontrol *kcontrol,
  2586. struct snd_ctl_elem_value *ucontrol)
  2587. {
  2588. struct snd_soc_dapm_widget *widget =
  2589. snd_soc_dapm_kcontrol_widget(kcontrol);
  2590. struct snd_soc_dapm_update *update = NULL;
  2591. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2592. ucontrol->value.integer.value[0]);
  2593. if (ucontrol->value.integer.value[0])
  2594. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2595. update);
  2596. else
  2597. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2598. update);
  2599. quat_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2600. return 1;
  2601. }
  2602. static int msm_routing_get_quin_mi2s_switch_mixer(
  2603. struct snd_kcontrol *kcontrol,
  2604. struct snd_ctl_elem_value *ucontrol)
  2605. {
  2606. ucontrol->value.integer.value[0] = quin_mi2s_switch_enable;
  2607. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2608. ucontrol->value.integer.value[0]);
  2609. return 0;
  2610. }
  2611. static int msm_routing_put_quin_mi2s_switch_mixer(
  2612. struct snd_kcontrol *kcontrol,
  2613. struct snd_ctl_elem_value *ucontrol)
  2614. {
  2615. struct snd_soc_dapm_widget *widget =
  2616. snd_soc_dapm_kcontrol_widget(kcontrol);
  2617. struct snd_soc_dapm_update *update = NULL;
  2618. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2619. ucontrol->value.integer.value[0]);
  2620. if (ucontrol->value.integer.value[0])
  2621. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2622. update);
  2623. else
  2624. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2625. update);
  2626. quin_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2627. return 1;
  2628. }
  2629. static int msm_routing_get_sen_mi2s_switch_mixer(
  2630. struct snd_kcontrol *kcontrol,
  2631. struct snd_ctl_elem_value *ucontrol)
  2632. {
  2633. ucontrol->value.integer.value[0] = sen_mi2s_switch_enable;
  2634. pr_debug("%s: SEN MI2S Switch enable %ld\n", __func__,
  2635. ucontrol->value.integer.value[0]);
  2636. return 0;
  2637. }
  2638. static int msm_routing_put_sen_mi2s_switch_mixer(
  2639. struct snd_kcontrol *kcontrol,
  2640. struct snd_ctl_elem_value *ucontrol)
  2641. {
  2642. struct snd_soc_dapm_widget *widget =
  2643. snd_soc_dapm_kcontrol_widget(kcontrol);
  2644. struct snd_soc_dapm_update *update = NULL;
  2645. pr_debug("%s: SEN MI2S Switch enable %ld\n", __func__,
  2646. ucontrol->value.integer.value[0]);
  2647. if (ucontrol->value.integer.value[0])
  2648. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2649. update);
  2650. else
  2651. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2652. update);
  2653. sen_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2654. return 1;
  2655. }
  2656. static int msm_routing_get_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2657. struct snd_ctl_elem_value *ucontrol)
  2658. {
  2659. ucontrol->value.integer.value[0] = fm_pcmrx_switch_enable;
  2660. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2661. ucontrol->value.integer.value[0]);
  2662. return 0;
  2663. }
  2664. static int msm_routing_put_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2665. struct snd_ctl_elem_value *ucontrol)
  2666. {
  2667. struct snd_soc_dapm_widget *widget =
  2668. snd_soc_dapm_kcontrol_widget(kcontrol);
  2669. struct snd_soc_dapm_update *update = NULL;
  2670. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2671. ucontrol->value.integer.value[0]);
  2672. if (ucontrol->value.integer.value[0])
  2673. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2674. update);
  2675. else
  2676. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2677. update);
  2678. fm_pcmrx_switch_enable = ucontrol->value.integer.value[0];
  2679. return 1;
  2680. }
  2681. static int msm_routing_lsm_port_get(struct snd_kcontrol *kcontrol,
  2682. struct snd_ctl_elem_value *ucontrol)
  2683. {
  2684. ucontrol->value.integer.value[0] = lsm_port_index;
  2685. return 0;
  2686. }
  2687. static int msm_routing_lsm_port_put(struct snd_kcontrol *kcontrol,
  2688. struct snd_ctl_elem_value *ucontrol)
  2689. {
  2690. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2691. int mux = ucontrol->value.enumerated.item[0];
  2692. int lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2693. if (mux >= e->items) {
  2694. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  2695. return -EINVAL;
  2696. }
  2697. pr_debug("%s: LSM enable %ld\n", __func__,
  2698. ucontrol->value.integer.value[0]);
  2699. switch (ucontrol->value.integer.value[0]) {
  2700. case 1:
  2701. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_0_TX;
  2702. break;
  2703. case 2:
  2704. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_1_TX;
  2705. break;
  2706. case 3:
  2707. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_2_TX;
  2708. break;
  2709. case 4:
  2710. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_3_TX;
  2711. break;
  2712. case 5:
  2713. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_4_TX;
  2714. break;
  2715. case 6:
  2716. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2717. break;
  2718. case 7:
  2719. lsm_port = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2720. break;
  2721. case 8:
  2722. lsm_port = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2723. break;
  2724. case 9:
  2725. lsm_port = ADM_LSM_PORT_ID;
  2726. break;
  2727. case 10:
  2728. lsm_port = AFE_PORT_ID_INT3_MI2S_TX;
  2729. break;
  2730. case 11:
  2731. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  2732. break;
  2733. case 12:
  2734. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_1;
  2735. break;
  2736. case 13:
  2737. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_2;
  2738. break;
  2739. case 14:
  2740. lsm_port = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2741. break;
  2742. case 15:
  2743. lsm_port = AFE_PORT_ID_QUINARY_TDM_TX;
  2744. break;
  2745. case 16:
  2746. lsm_port = AFE_PORT_ID_TERTIARY_TDM_TX;
  2747. break;
  2748. default:
  2749. pr_err("Default lsm port");
  2750. break;
  2751. }
  2752. set_lsm_port(lsm_port);
  2753. lsm_port_index = ucontrol->value.integer.value[0];
  2754. return 0;
  2755. }
  2756. static int msm_routing_lsm_func_get(struct snd_kcontrol *kcontrol,
  2757. struct snd_ctl_elem_value *ucontrol)
  2758. {
  2759. int i;
  2760. u16 port_id;
  2761. enum afe_mad_type mad_type;
  2762. pr_debug("%s: id name %s\n", __func__, kcontrol->id.name);
  2763. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2764. if (!strnstr(kcontrol->id.name, lsm_port_text[i],
  2765. strlen(lsm_port_text[i])))
  2766. break;
  2767. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2768. pr_warn("%s: Invalid id name %s\n", __func__,
  2769. kcontrol->id.name);
  2770. return -EINVAL;
  2771. }
  2772. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2773. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2774. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2775. strlen(lsm_port_text[7])))
  2776. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2777. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2778. strlen(lsm_port_text[8])))
  2779. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2780. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2781. strlen(lsm_port_text[10])))
  2782. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2783. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2784. strlen(lsm_port_text[14])))
  2785. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2786. if (strnstr(kcontrol->id.name, lsm_port_text[15],
  2787. strlen(lsm_port_text[15])))
  2788. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2789. if (strnstr(kcontrol->id.name, lsm_port_text[16],
  2790. strlen(lsm_port_text[16])))
  2791. port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  2792. mad_type = afe_port_get_mad_type(port_id);
  2793. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2794. mad_type);
  2795. switch (mad_type) {
  2796. case MAD_HW_NONE:
  2797. ucontrol->value.integer.value[0] = MADNONE;
  2798. break;
  2799. case MAD_HW_AUDIO:
  2800. ucontrol->value.integer.value[0] = MADAUDIO;
  2801. break;
  2802. case MAD_HW_BEACON:
  2803. ucontrol->value.integer.value[0] = MADBEACON;
  2804. break;
  2805. case MAD_HW_ULTRASOUND:
  2806. ucontrol->value.integer.value[0] = MADULTRASOUND;
  2807. break;
  2808. case MAD_SW_AUDIO:
  2809. ucontrol->value.integer.value[0] = MADSWAUDIO;
  2810. break;
  2811. default:
  2812. pr_warn("%s: Unknown\n", __func__);
  2813. return -EINVAL;
  2814. }
  2815. return 0;
  2816. }
  2817. static int msm_routing_lsm_func_put(struct snd_kcontrol *kcontrol,
  2818. struct snd_ctl_elem_value *ucontrol)
  2819. {
  2820. int i;
  2821. u16 port_id;
  2822. enum afe_mad_type mad_type;
  2823. pr_debug("%s: id name %s\n", __func__, kcontrol->id.name);
  2824. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2825. if (strnstr(kcontrol->id.name, lsm_port_text[i],
  2826. strlen(lsm_port_text[i])))
  2827. break;
  2828. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2829. pr_warn("%s: Invalid id name %s\n", __func__,
  2830. kcontrol->id.name);
  2831. return -EINVAL;
  2832. }
  2833. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2834. switch (ucontrol->value.integer.value[0]) {
  2835. case MADNONE:
  2836. mad_type = MAD_HW_NONE;
  2837. break;
  2838. case MADAUDIO:
  2839. mad_type = MAD_HW_AUDIO;
  2840. break;
  2841. case MADBEACON:
  2842. mad_type = MAD_HW_BEACON;
  2843. break;
  2844. case MADULTRASOUND:
  2845. mad_type = MAD_HW_ULTRASOUND;
  2846. break;
  2847. case MADSWAUDIO:
  2848. mad_type = MAD_SW_AUDIO;
  2849. break;
  2850. default:
  2851. pr_warn("%s: Unknown\n", __func__);
  2852. return -EINVAL;
  2853. }
  2854. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2855. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2856. strlen(lsm_port_text[7])))
  2857. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2858. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2859. strlen(lsm_port_text[8])))
  2860. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2861. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2862. strlen(lsm_port_text[10])))
  2863. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2864. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2865. strlen(lsm_port_text[14])))
  2866. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2867. if (strnstr(kcontrol->id.name, lsm_port_text[15],
  2868. strlen(lsm_port_text[15])))
  2869. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2870. if (strnstr(kcontrol->id.name, lsm_port_text[16],
  2871. strlen(lsm_port_text[16])))
  2872. port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  2873. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2874. mad_type);
  2875. return afe_port_set_mad_type(port_id, mad_type);
  2876. }
  2877. static const char *const adm_override_chs_text[] = {"Zero", "One", "Two"};
  2878. static SOC_ENUM_SINGLE_EXT_DECL(adm_override_chs,
  2879. adm_override_chs_text);
  2880. static int msm_routing_adm_get_backend_idx(struct snd_kcontrol *kcontrol)
  2881. {
  2882. int backend_id;
  2883. if (strnstr(kcontrol->id.name, "SLIM7_RX", sizeof("SLIM7_RX"))) {
  2884. backend_id = MSM_BACKEND_DAI_SLIMBUS_7_RX;
  2885. } else if (strnstr(kcontrol->id.name, "SLIM9_TX", sizeof("SLIM9_TX"))) {
  2886. backend_id = MSM_BACKEND_DAI_SLIMBUS_9_TX;
  2887. } else {
  2888. pr_err("%s: unsupported backend id: %s",
  2889. __func__, kcontrol->id.name);
  2890. return -EINVAL;
  2891. }
  2892. return backend_id;
  2893. }
  2894. static int msm_routing_adm_channel_config_get(
  2895. struct snd_kcontrol *kcontrol,
  2896. struct snd_ctl_elem_value *ucontrol)
  2897. {
  2898. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2899. if (backend_id >= 0) {
  2900. mutex_lock(&routing_lock);
  2901. ucontrol->value.integer.value[0] =
  2902. msm_bedais[backend_id].adm_override_ch;
  2903. pr_debug("%s: adm channel count %ld for BE:%d\n", __func__,
  2904. ucontrol->value.integer.value[0], backend_id);
  2905. mutex_unlock(&routing_lock);
  2906. }
  2907. return 0;
  2908. }
  2909. static int msm_routing_adm_channel_config_put(
  2910. struct snd_kcontrol *kcontrol,
  2911. struct snd_ctl_elem_value *ucontrol)
  2912. {
  2913. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2914. if (backend_id >= 0) {
  2915. mutex_lock(&routing_lock);
  2916. msm_bedais[backend_id].adm_override_ch =
  2917. ucontrol->value.integer.value[0];
  2918. pr_debug("%s:updating BE :%d adm channels: %d\n",
  2919. __func__, backend_id,
  2920. msm_bedais[backend_id].adm_override_ch);
  2921. mutex_unlock(&routing_lock);
  2922. }
  2923. return 0;
  2924. }
  2925. static const struct snd_kcontrol_new adm_channel_config_controls[] = {
  2926. SOC_ENUM_EXT("SLIM7_RX ADM Channels", adm_override_chs,
  2927. msm_routing_adm_channel_config_get,
  2928. msm_routing_adm_channel_config_put),
  2929. SOC_ENUM_EXT("SLIM9_TX ADM Channels", adm_override_chs,
  2930. msm_routing_adm_channel_config_get,
  2931. msm_routing_adm_channel_config_put),
  2932. };
  2933. static int msm_routing_slim_0_rx_aanc_mux_get(struct snd_kcontrol *kcontrol,
  2934. struct snd_ctl_elem_value *ucontrol)
  2935. {
  2936. mutex_lock(&routing_lock);
  2937. ucontrol->value.integer.value[0] = slim0_rx_aanc_fb_port;
  2938. mutex_unlock(&routing_lock);
  2939. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2940. ucontrol->value.integer.value[0]);
  2941. return 0;
  2942. };
  2943. static int msm_routing_slim_0_rx_aanc_mux_put(struct snd_kcontrol *kcontrol,
  2944. struct snd_ctl_elem_value *ucontrol)
  2945. {
  2946. struct aanc_data aanc_info;
  2947. mutex_lock(&routing_lock);
  2948. memset(&aanc_info, 0x00, sizeof(aanc_info));
  2949. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2950. ucontrol->value.integer.value[0]);
  2951. slim0_rx_aanc_fb_port = ucontrol->value.integer.value[0];
  2952. if (ucontrol->value.integer.value[0] == 0) {
  2953. aanc_info.aanc_active = false;
  2954. aanc_info.aanc_tx_port = 0;
  2955. aanc_info.aanc_rx_port = 0;
  2956. } else {
  2957. aanc_info.aanc_active = true;
  2958. aanc_info.aanc_rx_port = SLIMBUS_0_RX;
  2959. aanc_info.aanc_tx_port =
  2960. (SLIMBUS_0_RX - 1 + (slim0_rx_aanc_fb_port * 2));
  2961. }
  2962. afe_set_aanc_info(&aanc_info);
  2963. mutex_unlock(&routing_lock);
  2964. return 0;
  2965. };
  2966. static int msm_routing_get_port_mixer(struct snd_kcontrol *kcontrol,
  2967. struct snd_ctl_elem_value *ucontrol)
  2968. {
  2969. int idx = 0, shift = 0;
  2970. struct soc_mixer_control *mc =
  2971. (struct soc_mixer_control *)kcontrol->private_value;
  2972. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2973. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2974. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2975. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2976. return -EINVAL;
  2977. }
  2978. if (test_bit(shift,
  2979. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]))
  2980. ucontrol->value.integer.value[0] = 1;
  2981. else
  2982. ucontrol->value.integer.value[0] = 0;
  2983. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2984. ucontrol->value.integer.value[0]);
  2985. return 0;
  2986. }
  2987. static int msm_routing_put_port_mixer(struct snd_kcontrol *kcontrol,
  2988. struct snd_ctl_elem_value *ucontrol)
  2989. {
  2990. int idx = 0, shift = 0;
  2991. struct soc_mixer_control *mc =
  2992. (struct soc_mixer_control *)kcontrol->private_value;
  2993. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2994. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2995. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2996. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2997. return -EINVAL;
  2998. }
  2999. pr_debug("%s: shift 0x%x rshift 0x%x val %ld idx %d reminder shift %d\n",
  3000. __func__, mc->shift, mc->rshift,
  3001. ucontrol->value.integer.value[0], idx, shift);
  3002. if (ucontrol->value.integer.value[0]) {
  3003. afe_loopback(1, msm_bedais[mc->shift].port_id,
  3004. msm_bedais[mc->rshift].port_id);
  3005. set_bit(shift,
  3006. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  3007. } else {
  3008. afe_loopback(0, msm_bedais[mc->shift].port_id,
  3009. msm_bedais[mc->rshift].port_id);
  3010. clear_bit(shift,
  3011. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  3012. }
  3013. return 1;
  3014. }
  3015. static int msm_pcm_get_channel_rule_index(struct snd_kcontrol *kcontrol,
  3016. struct snd_ctl_elem_value *ucontrol)
  3017. {
  3018. u16 fe_id = 0;
  3019. fe_id = ((struct soc_mixer_control *)
  3020. kcontrol->private_value)->shift;
  3021. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3022. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3023. return -EINVAL;
  3024. }
  3025. ucontrol->value.integer.value[0] = channel_mixer[fe_id].rule;
  3026. return 0;
  3027. }
  3028. static int msm_pcm_put_channel_rule_index(struct snd_kcontrol *kcontrol,
  3029. struct snd_ctl_elem_value *ucontrol)
  3030. {
  3031. u16 fe_id = 0;
  3032. fe_id = ((struct soc_mixer_control *)
  3033. kcontrol->private_value)->shift;
  3034. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3035. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3036. return -EINVAL;
  3037. }
  3038. channel_mixer[fe_id].rule = ucontrol->value.integer.value[0];
  3039. return 1;
  3040. }
  3041. static int msm_pcm_get_out_chs(struct snd_kcontrol *kcontrol,
  3042. struct snd_ctl_elem_value *ucontrol)
  3043. {
  3044. u16 fe_id = 0;
  3045. fe_id = ((struct soc_multi_mixer_control *)
  3046. kcontrol->private_value)->shift;
  3047. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3048. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3049. return -EINVAL;
  3050. }
  3051. ucontrol->value.integer.value[0] =
  3052. channel_mixer[fe_id].output_channel;
  3053. return 0;
  3054. }
  3055. static int msm_pcm_put_out_chs(struct snd_kcontrol *kcontrol,
  3056. struct snd_ctl_elem_value *ucontrol)
  3057. {
  3058. u16 fe_id = 0;
  3059. fe_id = ((struct soc_multi_mixer_control *)
  3060. kcontrol->private_value)->shift;
  3061. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3062. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3063. return -EINVAL;
  3064. }
  3065. pr_debug("%s: fe_id is %d, output channels = %d\n", __func__,
  3066. fe_id,
  3067. (unsigned int)(ucontrol->value.integer.value[0]));
  3068. channel_mixer[fe_id].output_channel =
  3069. (unsigned int)(ucontrol->value.integer.value[0]);
  3070. return 1;
  3071. }
  3072. static const char *const ch_mixer[] = {"Disable", "Enable"};
  3073. /* If new backend is added, need update this array */
  3074. static const char *const be_name[] = {
  3075. "ZERO", "PRI_I2S_RX", "PRI_I2S_TX", "SLIM_0_RX",
  3076. "SLIM_0_TX", "HDMI_RX", "INT_BT_SCO_RX", "INT_BT_SCO_TX",
  3077. "INT_FM_RX", "INT_FM_TX", "AFE_PCM_RX", "AFE_PCM_TX",
  3078. "AUXPCM_RX", "AUXPCM_TX", "VOICE_PLAYBACK_TX", "VOICE2_PLAYBACK_TX",
  3079. "INCALL_RECORD_RX", "INCALL_RECORD_TX", "MI2S_RX", "MI2S_TX",
  3080. "SEC_I2S_RX", "SLIM_1_RX", "SLIM_1_TX", "SLIM_2_RX",
  3081. "SLIM_2_TX", "SLIM_3_RX", "SLIM_3_TX", "SLIM_4_RX",
  3082. "SLIM_4_TX", "SLIM_5_RX", "SLIM_5_TX", "SLIM_6_RX",
  3083. "SLIM_6_TX", "SLIM_7_RX", "SLIM_7_TX", "SLIM_8_RX",
  3084. "SLIM_8_TX", "EXTPROC_RX", "EXTPROC_TX", "EXPROC_EC_TX",
  3085. "QUAT_MI2S_RX", "QUAT_MI2S_TX", "SECOND_MI2S_RX", "SECOND_MI2S_TX",
  3086. "PRI_MI2S_RX", "PRI_MI2S_TX", "TERT_MI2S_RX", "TERT_MI2S_TX",
  3087. "AUDIO_I2S_RX", "SEC_AUXPCM_RX", "SEC_AUXPCM_TX", "PRI_SPDIF_RX",
  3088. "SECOND_MI2S_RX_SD1", "QUIN_MI2S_RX", "QUIN_MI2S_TX", "SENARY_MI2S_TX",
  3089. "PRI_TDM_RX_0", "PRI_TDM_TX_0", "PRI_TDM_RX_1", "PRI_TDM_TX_1",
  3090. "PRI_TDM_RX_2", "PRI_TDM_TX_2", "PRI_TDM_RX_3", "PRI_TDM_TX_3",
  3091. "PRI_TDM_RX_4", "PRI_TDM_TX_4", "PRI_TDM_RX_5", "PRI_TDM_TX_5",
  3092. "PRI_TDM_RX_6", "PRI_TDM_TX_6", "PRI_TDM_RX_7", "PRI_TDM_TX_7",
  3093. "SEC_TDM_RX_0", "SEC_TDM_TX_0", "SEC_TDM_RX_1", "SEC_TDM_TX_1",
  3094. "SEC_TDM_RX_2", "SEC_TDM_TX_2", "SEC_TDM_RX_3", "SEC_TDM_TX_3",
  3095. "SEC_TDM_RX_4", "SEC_TDM_TX_4", "SEC_TDM_RX_5", "SEC_TDM_TX_5",
  3096. "SEC_TDM_RX_6", "SEC_TDM_TX_6", "SEC_TDM_RX_7", "SEC_TDM_TX_7",
  3097. "TERT_TDM_RX_0", "TERT_TDM_TX_0", "TERT_TDM_RX_1", "TERT_TDM_TX_1",
  3098. "TERT_TDM_RX_2", "TERT_TDM_TX_2", "TERT_TDM_RX_3", "TERT_TDM_TX_3",
  3099. "TERT_TDM_RX_4", "TERT_TDM_TX_4", "TERT_TDM_RX_5", "TERT_TDM_TX_5",
  3100. "TERT_TDM_RX_6", "TERT_TDM_TX_6", "TERT_TDM_RX_7", "TERT_TDM_TX_7",
  3101. "QUAT_TDM_RX_0", "QUAT_TDM_TX_0", "QUAT_TDM_RX_1", "QUAT_TDM_TX_1",
  3102. "QUAT_TDM_RX_2", "QUAT_TDM_TX_2", "QUAT_TDM_RX_3", "QUAT_TDM_TX_3",
  3103. "QUAT_TDM_RX_4", "QUAT_TDM_TX_4", "QUAT_TDM_RX_5", "QUAT_TDM_TX_5",
  3104. "QUAT_TDM_RX_6", "QUAT_TDM_TX_6", "QUAT_TDM_RX_7", "QUAT_TDM_TX_7",
  3105. "QUIN_TDM_RX_0", "QUIN_TDM_TX_0", "QUIN_TDM_RX_1", "QUIN_TDM_TX_1",
  3106. "QUIN_TDM_RX_2", "QUIN_TDM_TX_2", "QUIN_TDM_RX_3", "QUIN_TDM_TX_3",
  3107. "QUIN_TDM_RX_4", "QUIN_TDM_TX_4", "QUIN_TDM_RX_5", "QUIN_TDM_TX_5",
  3108. "QUIN_TDM_RX_6", "QUIN_TDM_TX_6", "QUIN_TDM_RX_7", "QUIN_TDM_TX_7",
  3109. "SEN_TDM_RX_0", "SEN_TDM_TX_0", "SEN_TDM_RX_1", "SEN_TDM_TX_1",
  3110. "SEN_TDM_RX_2", "SEN_TDM_TX_2", "SEN_TDM_RX_3", "SEN_TDM_TX_3",
  3111. "SEN_TDM_RX_4", "SEN_TDM_TX_4", "SEN_TDM_RX_5", "SEN_TDM_TX_5",
  3112. "SEN_TDM_RX_6", "SEN_TDM_TX_6", "SEN_TDM_RX_7", "SEN_TDM_TX_7",
  3113. "INT_BT_A2DP_RX", "USB_RX", "USB_TX", "DISPLAY_PORT_RX",
  3114. "DISPLAY_PORT_RX1", "TERT_AUXPCM_RX", "TERT_AUXPCM_TX", "QUAT_AUXPCM_RX",
  3115. "QUAT_AUXPCM_TX", "QUIN_AUXPCM_RX", "QUIN_AUXPCM_TX", "INT0_MI2S_RX",
  3116. "INT0_MI2S_TX", "INT1_MI2S_RX", "INT1_MI2S_TX", "INT2_MI2S_RX",
  3117. "INT2_MI2S_TX", "INT3_MI2S_RX", "INT3_MI2S_TX", "INT4_MI2S_RX",
  3118. "INT4_MI2S_TX", "INT5_MI2S_RX", "INT5_MI2S_TX", "INT6_MI2S_RX",
  3119. "INT6_MI2S_TX", "SEN_AUXPCM_RX", "SEN_AUXPCM_TX", "SENARY_MI2S_RX",
  3120. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_RX_1","WSA_CDC_DMA_TX_1",
  3121. "WSA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_2",
  3122. "RX_CDC_DMA_RX_0", "TX_CDC_DMA_TX_0", "RX_CDC_DMA_RX_1", "TX_CDC_DMA_TX_1",
  3123. "RX_CDC_DMA_RX_2", "TX_CDC_DMA_TX_2", "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_3",
  3124. "RX_CDC_DMA_RX_4", "TX_CDC_DMA_TX_4", "RX_CDC_DMA_RX_5", "TX_CDC_DMA_TX_5",
  3125. "RX_CDC_DMA_RX_6", "RX_CDC_DMA_RX_7",
  3126. "PRI_SPDIF_TX", "SEC_SPDIF_RX", "SEC_SPDIF_TX",
  3127. "SLIM_9_RX", "SLIM_9_TX", "AFE_LOOPBACK_TX", "PRI_META_MI2S_RX",
  3128. "SEC_META_MI2S_RX"
  3129. };
  3130. static SOC_ENUM_SINGLE_DECL(mm1_channel_mux,
  3131. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, ch_mixer);
  3132. static SOC_ENUM_SINGLE_DECL(mm2_channel_mux,
  3133. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA2, ch_mixer);
  3134. static SOC_ENUM_SINGLE_DECL(mm3_channel_mux,
  3135. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA3, ch_mixer);
  3136. static SOC_ENUM_SINGLE_DECL(mm4_channel_mux,
  3137. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA4, ch_mixer);
  3138. static SOC_ENUM_SINGLE_DECL(mm18_channel_mux,
  3139. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, ch_mixer);
  3140. static SOC_ENUM_SINGLE_DECL(mm19_channel_mux,
  3141. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, ch_mixer);
  3142. static SOC_ENUM_SINGLE_DECL(mm28_channel_mux,
  3143. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, ch_mixer);
  3144. static SOC_ENUM_SINGLE_DECL(mm29_channel_mux,
  3145. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, ch_mixer);
  3146. static SOC_ENUM_SINGLE_DECL(mm30_channel_mux,
  3147. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, ch_mixer);
  3148. static SOC_ENUM_DOUBLE_DECL(mm1_ch1_enum,
  3149. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 0, be_name);
  3150. static SOC_ENUM_DOUBLE_DECL(mm1_ch2_enum,
  3151. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 1, be_name);
  3152. static SOC_ENUM_DOUBLE_DECL(mm1_ch3_enum,
  3153. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 2, be_name);
  3154. static SOC_ENUM_DOUBLE_DECL(mm1_ch4_enum,
  3155. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 3, be_name);
  3156. static SOC_ENUM_DOUBLE_DECL(mm1_ch5_enum,
  3157. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 4, be_name);
  3158. static SOC_ENUM_DOUBLE_DECL(mm1_ch6_enum,
  3159. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 5, be_name);
  3160. static SOC_ENUM_DOUBLE_DECL(mm1_ch7_enum,
  3161. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 6, be_name);
  3162. static SOC_ENUM_DOUBLE_DECL(mm1_ch8_enum,
  3163. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 7, be_name);
  3164. static SOC_ENUM_DOUBLE_DECL(mm18_ch1_enum,
  3165. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, 0, be_name);
  3166. static SOC_ENUM_DOUBLE_DECL(mm18_ch2_enum,
  3167. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, 1, be_name);
  3168. static SOC_ENUM_DOUBLE_DECL(mm19_ch1_enum,
  3169. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, 0, be_name);
  3170. static SOC_ENUM_DOUBLE_DECL(mm19_ch2_enum,
  3171. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, 1, be_name);
  3172. static SOC_ENUM_DOUBLE_DECL(mm28_ch1_enum,
  3173. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, 0, be_name);
  3174. static SOC_ENUM_DOUBLE_DECL(mm28_ch2_enum,
  3175. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, 1, be_name);
  3176. static SOC_ENUM_DOUBLE_DECL(mm29_ch1_enum,
  3177. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, 0, be_name);
  3178. static SOC_ENUM_DOUBLE_DECL(mm29_ch2_enum,
  3179. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, 1, be_name);
  3180. static SOC_ENUM_DOUBLE_DECL(mm30_ch1_enum,
  3181. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, 0, be_name);
  3182. static SOC_ENUM_DOUBLE_DECL(mm30_ch2_enum,
  3183. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, 1, be_name);
  3184. static int msm_pcm_get_ctl_enum_info(struct snd_ctl_elem_info *uinfo,
  3185. unsigned int channels,
  3186. unsigned int items, const char *const names[])
  3187. {
  3188. if (uinfo->value.enumerated.item >= items)
  3189. uinfo->value.enumerated.item = items - 1;
  3190. WARN(strlen(names[uinfo->value.enumerated.item]) >=
  3191. sizeof(uinfo->value.enumerated.name),
  3192. "ALSA: too long item name '%s'\n",
  3193. names[uinfo->value.enumerated.item]);
  3194. strlcpy(uinfo->value.enumerated.name,
  3195. names[uinfo->value.enumerated.item],
  3196. sizeof(uinfo->value.enumerated.name));
  3197. return 0;
  3198. }
  3199. static int msm_pcm_channel_mixer_info(struct snd_kcontrol *kcontrol,
  3200. struct snd_ctl_elem_info *uinfo)
  3201. {
  3202. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3203. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  3204. uinfo->count = 1;
  3205. uinfo->value.enumerated.items = ARRAY_SIZE(ch_mixer);
  3206. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  3207. return 0;
  3208. }
  3209. static int msm_pcm_channel_mixer_get(struct snd_kcontrol *kcontrol,
  3210. struct snd_ctl_elem_value *ucontrol)
  3211. {
  3212. u16 fe_id = 0;
  3213. fe_id = ((struct soc_enum *)
  3214. kcontrol->private_value)->shift_l;
  3215. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3216. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3217. return -EINVAL;
  3218. }
  3219. pr_debug("%s: FE %d %s\n", __func__,
  3220. fe_id,
  3221. channel_mixer[fe_id].enable ? "Enabled" : "Disabled");
  3222. ucontrol->value.enumerated.item[0] = channel_mixer[fe_id].enable;
  3223. return 0;
  3224. }
  3225. static int msm_pcm_channel_mixer_put(struct snd_kcontrol *kcontrol,
  3226. struct snd_ctl_elem_value *ucontrol)
  3227. {
  3228. u16 fe_id = 0;
  3229. fe_id = ((struct soc_enum *)
  3230. kcontrol->private_value)->shift_l;
  3231. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3232. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3233. return -EINVAL;
  3234. }
  3235. channel_mixer[fe_id].enable = ucontrol->value.enumerated.item[0];
  3236. pr_debug("%s: %s FE %d\n", __func__,
  3237. channel_mixer[fe_id].enable ? "Enable" : "Disable",
  3238. fe_id);
  3239. return 0;
  3240. }
  3241. static int msm_pcm_channel_input_be_info(struct snd_kcontrol *kcontrol,
  3242. struct snd_ctl_elem_info *uinfo)
  3243. {
  3244. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3245. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  3246. uinfo->count = 1;
  3247. uinfo->value.enumerated.items = ARRAY_SIZE(be_name);
  3248. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  3249. return 0;
  3250. }
  3251. static int msm_pcm_channel_input_be_put(struct snd_kcontrol *kcontrol,
  3252. struct snd_ctl_elem_value *ucontrol)
  3253. {
  3254. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3255. u16 fe_id = 0, in_ch = 0;
  3256. fe_id = e->shift_l;
  3257. in_ch = e->shift_r;
  3258. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3259. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3260. return -EINVAL;
  3261. }
  3262. if (in_ch >= ADM_MAX_CHANNELS) {
  3263. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  3264. return -EINVAL;
  3265. }
  3266. channel_input[fe_id][in_ch] = ucontrol->value.enumerated.item[0];
  3267. return 1;
  3268. }
  3269. static int msm_pcm_channel_input_be_get(struct snd_kcontrol *kcontrol,
  3270. struct snd_ctl_elem_value *ucontrol)
  3271. {
  3272. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3273. u16 fe_id = 0, in_ch = 0;
  3274. fe_id = e->shift_l;
  3275. in_ch = e->shift_r;
  3276. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3277. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3278. return -EINVAL;
  3279. }
  3280. if (in_ch >= ADM_MAX_CHANNELS) {
  3281. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  3282. return -EINVAL;
  3283. }
  3284. ucontrol->value.enumerated.item[0] = channel_input[fe_id][in_ch];
  3285. return 1;
  3286. }
  3287. static int msm_pcm_channel_weight_info(struct snd_kcontrol *kcontrol,
  3288. struct snd_ctl_elem_info *uinfo)
  3289. {
  3290. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  3291. uinfo->count = ADM_MAX_CHANNELS;
  3292. uinfo->value.integer.min = 0;
  3293. uinfo->value.integer.max = WEIGHT_0_DB;
  3294. return 0;
  3295. }
  3296. static int msm_pcm_channel_weight_put(struct snd_kcontrol *kcontrol,
  3297. struct snd_ctl_elem_value *ucontrol)
  3298. {
  3299. u16 fe_id = 0, out_ch = 0;
  3300. int i, weight;
  3301. fe_id = ((struct soc_multi_mixer_control *)
  3302. kcontrol->private_value)->shift;
  3303. out_ch = ((struct soc_multi_mixer_control *)
  3304. kcontrol->private_value)->rshift;
  3305. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3306. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3307. return -EINVAL;
  3308. }
  3309. if (out_ch >= ADM_MAX_CHANNELS) {
  3310. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  3311. return -EINVAL;
  3312. }
  3313. pr_debug("%s: FE_ID: %d, channel weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld\n",
  3314. __func__, fe_id,
  3315. ucontrol->value.integer.value[0],
  3316. ucontrol->value.integer.value[1],
  3317. ucontrol->value.integer.value[2],
  3318. ucontrol->value.integer.value[3],
  3319. ucontrol->value.integer.value[4],
  3320. ucontrol->value.integer.value[5],
  3321. ucontrol->value.integer.value[6],
  3322. ucontrol->value.integer.value[7]);
  3323. for (i = 0; i < ADM_MAX_CHANNELS; ++i) {
  3324. weight = ucontrol->value.integer.value[i];
  3325. channel_mixer[fe_id].channel_weight[out_ch][i] = weight;
  3326. pr_debug("%s: FE_ID %d, output %d input %d weight %d\n",
  3327. __func__, fe_id, out_ch, i,
  3328. channel_mixer[fe_id].channel_weight[out_ch][i]);
  3329. }
  3330. return 0;
  3331. }
  3332. static int msm_pcm_channel_weight_get(struct snd_kcontrol *kcontrol,
  3333. struct snd_ctl_elem_value *ucontrol)
  3334. {
  3335. u16 fe_id = 0, out_ch = 0;
  3336. int i;
  3337. fe_id = ((struct soc_multi_mixer_control *)
  3338. kcontrol->private_value)->shift;
  3339. out_ch = ((struct soc_multi_mixer_control *)
  3340. kcontrol->private_value)->rshift;
  3341. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3342. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3343. return -EINVAL;
  3344. }
  3345. if (out_ch >= ADM_MAX_CHANNELS) {
  3346. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  3347. return -EINVAL;
  3348. }
  3349. for (i = 0; i < ADM_MAX_CHANNELS; ++i)
  3350. ucontrol->value.integer.value[i] =
  3351. channel_mixer[fe_id].channel_weight[out_ch][i];
  3352. pr_debug("%s: FE_ID: %d, weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld",
  3353. __func__, fe_id,
  3354. ucontrol->value.integer.value[0],
  3355. ucontrol->value.integer.value[1],
  3356. ucontrol->value.integer.value[2],
  3357. ucontrol->value.integer.value[3],
  3358. ucontrol->value.integer.value[4],
  3359. ucontrol->value.integer.value[5],
  3360. ucontrol->value.integer.value[6],
  3361. ucontrol->value.integer.value[7]);
  3362. return 0;
  3363. }
  3364. static int msm_pcm_channel_output_map_info(struct snd_kcontrol *kcontrol,
  3365. struct snd_ctl_elem_info *uinfo)
  3366. {
  3367. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  3368. uinfo->count = PCM_FORMAT_MAX_NUM_CHANNEL_V8;
  3369. /* Valid channel map value ranges from 1 to 64 */
  3370. uinfo->value.integer.min = 0;
  3371. uinfo->value.integer.max = 64;
  3372. return 0;
  3373. }
  3374. static int msm_pcm_channel_output_map_put(struct snd_kcontrol *kcontrol,
  3375. struct snd_ctl_elem_value *ucontrol)
  3376. {
  3377. u16 fe_id = 0;
  3378. int i, ch_map;
  3379. fe_id = ((struct soc_multi_mixer_control *)
  3380. kcontrol->private_value)->shift;
  3381. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3382. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3383. return -EINVAL;
  3384. }
  3385. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; ++i) {
  3386. ch_map = ucontrol->value.integer.value[i];
  3387. channel_mixer[fe_id].out_ch_map[i] = ch_map;
  3388. pr_debug("%s: FE_ID %d, channel %d channel map %d\n",
  3389. __func__, fe_id, i, channel_mixer[fe_id].out_ch_map[i]);
  3390. }
  3391. /* Make override_out_ch_map false if ch map is reset */
  3392. if (channel_mixer[fe_id].out_ch_map[0] == 0)
  3393. channel_mixer[fe_id].override_out_ch_map = false;
  3394. else
  3395. channel_mixer[fe_id].override_out_ch_map = true;
  3396. return 0;
  3397. }
  3398. static int msm_pcm_channel_output_map_get(struct snd_kcontrol *kcontrol,
  3399. struct snd_ctl_elem_value *ucontrol)
  3400. {
  3401. u16 fe_id = 0;
  3402. int i;
  3403. fe_id = ((struct soc_multi_mixer_control *)
  3404. kcontrol->private_value)->shift;
  3405. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3406. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3407. return -EINVAL;
  3408. }
  3409. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; ++i)
  3410. ucontrol->value.integer.value[i] =
  3411. channel_mixer[fe_id].out_ch_map[i];
  3412. return 0;
  3413. }
  3414. static const struct snd_kcontrol_new channel_mixer_controls[] = {
  3415. SOC_SINGLE_EXT("MultiMedia1 Channel Rule", SND_SOC_NOPM,
  3416. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  3417. msm_pcm_get_channel_rule_index,
  3418. msm_pcm_put_channel_rule_index),
  3419. SOC_SINGLE_EXT("MultiMedia2 Channel Rule", SND_SOC_NOPM,
  3420. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3421. msm_pcm_get_channel_rule_index,
  3422. msm_pcm_put_channel_rule_index),
  3423. SOC_SINGLE_EXT("MultiMedia3 Channel Rule", SND_SOC_NOPM,
  3424. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3425. msm_pcm_get_channel_rule_index,
  3426. msm_pcm_put_channel_rule_index),
  3427. SOC_SINGLE_EXT("MultiMedia4 Channel Rule", SND_SOC_NOPM,
  3428. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3429. msm_pcm_get_channel_rule_index,
  3430. msm_pcm_put_channel_rule_index),
  3431. SOC_SINGLE_EXT("MultiMedia5 Channel Rule", SND_SOC_NOPM,
  3432. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3433. msm_pcm_get_channel_rule_index,
  3434. msm_pcm_put_channel_rule_index),
  3435. SOC_SINGLE_EXT("MultiMedia6 Channel Rule", SND_SOC_NOPM,
  3436. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3437. msm_pcm_get_channel_rule_index,
  3438. msm_pcm_put_channel_rule_index),
  3439. SOC_SINGLE_EXT("MultiMedia18 Channel Rule", SND_SOC_NOPM,
  3440. MSM_FRONTEND_DAI_MULTIMEDIA18, 8, 0,
  3441. msm_pcm_get_channel_rule_index,
  3442. msm_pcm_put_channel_rule_index),
  3443. SOC_SINGLE_EXT("MultiMedia19 Channel Rule", SND_SOC_NOPM,
  3444. MSM_FRONTEND_DAI_MULTIMEDIA19, 8, 0,
  3445. msm_pcm_get_channel_rule_index,
  3446. msm_pcm_put_channel_rule_index),
  3447. SOC_SINGLE_EXT("MultiMedia28 Channel Rule", SND_SOC_NOPM,
  3448. MSM_FRONTEND_DAI_MULTIMEDIA28, 8, 0,
  3449. msm_pcm_get_channel_rule_index,
  3450. msm_pcm_put_channel_rule_index),
  3451. SOC_SINGLE_EXT("MultiMedia29 Channel Rule", SND_SOC_NOPM,
  3452. MSM_FRONTEND_DAI_MULTIMEDIA29, 8, 0,
  3453. msm_pcm_get_channel_rule_index,
  3454. msm_pcm_put_channel_rule_index),
  3455. SOC_SINGLE_EXT("MultiMedia30 Channel Rule", SND_SOC_NOPM,
  3456. MSM_FRONTEND_DAI_MULTIMEDIA30, 8, 0,
  3457. msm_pcm_get_channel_rule_index,
  3458. msm_pcm_put_channel_rule_index),
  3459. SOC_SINGLE_EXT("MultiMedia1 Channels", SND_SOC_NOPM,
  3460. MSM_FRONTEND_DAI_MULTIMEDIA1, 14, 0,
  3461. msm_pcm_get_out_chs,
  3462. msm_pcm_put_out_chs),
  3463. SOC_SINGLE_EXT("MultiMedia2 Channels", SND_SOC_NOPM,
  3464. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3465. msm_pcm_get_out_chs,
  3466. msm_pcm_put_out_chs),
  3467. SOC_SINGLE_EXT("MultiMedia3 Channels", SND_SOC_NOPM,
  3468. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3469. msm_pcm_get_out_chs,
  3470. msm_pcm_put_out_chs),
  3471. SOC_SINGLE_EXT("MultiMedia4 Channels", SND_SOC_NOPM,
  3472. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3473. msm_pcm_get_out_chs,
  3474. msm_pcm_put_out_chs),
  3475. SOC_SINGLE_EXT("MultiMedia5 Channels", SND_SOC_NOPM,
  3476. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3477. msm_pcm_get_out_chs,
  3478. msm_pcm_put_out_chs),
  3479. SOC_SINGLE_EXT("MultiMedia6 Channels", SND_SOC_NOPM,
  3480. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3481. msm_pcm_get_out_chs,
  3482. msm_pcm_put_out_chs),
  3483. SOC_SINGLE_EXT("MultiMedia18 Channels", SND_SOC_NOPM,
  3484. MSM_FRONTEND_DAI_MULTIMEDIA18, 14, 0,
  3485. msm_pcm_get_out_chs,
  3486. msm_pcm_put_out_chs),
  3487. SOC_SINGLE_EXT("MultiMedia19 Channels", SND_SOC_NOPM,
  3488. MSM_FRONTEND_DAI_MULTIMEDIA19, 14, 0,
  3489. msm_pcm_get_out_chs,
  3490. msm_pcm_put_out_chs),
  3491. SOC_SINGLE_EXT("MultiMedia28 Channels", SND_SOC_NOPM,
  3492. MSM_FRONTEND_DAI_MULTIMEDIA28, 14, 0,
  3493. msm_pcm_get_out_chs,
  3494. msm_pcm_put_out_chs),
  3495. SOC_SINGLE_EXT("MultiMedia29 Channels", SND_SOC_NOPM,
  3496. MSM_FRONTEND_DAI_MULTIMEDIA29, 14, 0,
  3497. msm_pcm_get_out_chs,
  3498. msm_pcm_put_out_chs),
  3499. SOC_SINGLE_EXT("MultiMedia30 Channels", SND_SOC_NOPM,
  3500. MSM_FRONTEND_DAI_MULTIMEDIA30, 14, 0,
  3501. msm_pcm_get_out_chs,
  3502. msm_pcm_put_out_chs),
  3503. {
  3504. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3505. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3506. .name = "MultiMedia1 Channel Mixer",
  3507. .info = msm_pcm_channel_mixer_info,
  3508. .get = msm_pcm_channel_mixer_get,
  3509. .put = msm_pcm_channel_mixer_put,
  3510. .private_value = (unsigned long)&(mm1_channel_mux)
  3511. },
  3512. {
  3513. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3514. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3515. .name = "MultiMedia2 Channel Mixer",
  3516. .info = msm_pcm_channel_mixer_info,
  3517. .get = msm_pcm_channel_mixer_get,
  3518. .put = msm_pcm_channel_mixer_put,
  3519. .private_value = (unsigned long)&(mm2_channel_mux)
  3520. },
  3521. {
  3522. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3523. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3524. .name = "MultiMedia3 Channel Mixer",
  3525. .info = msm_pcm_channel_mixer_info,
  3526. .get = msm_pcm_channel_mixer_get,
  3527. .put = msm_pcm_channel_mixer_put,
  3528. .private_value = (unsigned long)&(mm3_channel_mux)
  3529. },
  3530. {
  3531. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3532. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3533. .name = "MultiMedia4 Channel Mixer",
  3534. .info = msm_pcm_channel_mixer_info,
  3535. .get = msm_pcm_channel_mixer_get,
  3536. .put = msm_pcm_channel_mixer_put,
  3537. .private_value = (unsigned long)&(mm4_channel_mux)
  3538. },
  3539. {
  3540. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3541. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3542. .name = "MultiMedia18 Channel Mixer",
  3543. .info = msm_pcm_channel_mixer_info,
  3544. .get = msm_pcm_channel_mixer_get,
  3545. .put = msm_pcm_channel_mixer_put,
  3546. .private_value = (unsigned long)&(mm18_channel_mux)
  3547. },
  3548. {
  3549. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3550. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3551. .name = "MultiMedia19 Channel Mixer",
  3552. .info = msm_pcm_channel_mixer_info,
  3553. .get = msm_pcm_channel_mixer_get,
  3554. .put = msm_pcm_channel_mixer_put,
  3555. .private_value = (unsigned long)&(mm19_channel_mux)
  3556. },
  3557. {
  3558. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3559. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3560. .name = "MultiMedia28 Channel Mixer",
  3561. .info = msm_pcm_channel_mixer_info,
  3562. .get = msm_pcm_channel_mixer_get,
  3563. .put = msm_pcm_channel_mixer_put,
  3564. .private_value = (unsigned long)&(mm28_channel_mux)
  3565. },
  3566. {
  3567. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3568. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3569. .name = "MultiMedia29 Channel Mixer",
  3570. .info = msm_pcm_channel_mixer_info,
  3571. .get = msm_pcm_channel_mixer_get,
  3572. .put = msm_pcm_channel_mixer_put,
  3573. .private_value = (unsigned long)&(mm29_channel_mux)
  3574. },
  3575. {
  3576. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3577. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3578. .name = "MultiMedia30 Channel Mixer",
  3579. .info = msm_pcm_channel_mixer_info,
  3580. .get = msm_pcm_channel_mixer_get,
  3581. .put = msm_pcm_channel_mixer_put,
  3582. .private_value = (unsigned long)&(mm30_channel_mux)
  3583. },
  3584. {
  3585. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3586. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3587. .name = "MultiMedia1 Output Channel1",
  3588. .info = msm_pcm_channel_weight_info,
  3589. .get = msm_pcm_channel_weight_get,
  3590. .put = msm_pcm_channel_weight_put,
  3591. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3592. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 0,}
  3593. },
  3594. {
  3595. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3596. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3597. .name = "MultiMedia1 Output Channel2",
  3598. .info = msm_pcm_channel_weight_info,
  3599. .get = msm_pcm_channel_weight_get,
  3600. .put = msm_pcm_channel_weight_put,
  3601. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3602. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 1, }
  3603. },
  3604. {
  3605. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3606. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3607. .name = "MultiMedia1 Output Channel3",
  3608. .info = msm_pcm_channel_weight_info,
  3609. .get = msm_pcm_channel_weight_get,
  3610. .put = msm_pcm_channel_weight_put,
  3611. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3612. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 2,}
  3613. },
  3614. {
  3615. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3616. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3617. .name = "MultiMedia1 Output Channel4",
  3618. .info = msm_pcm_channel_weight_info,
  3619. .get = msm_pcm_channel_weight_get,
  3620. .put = msm_pcm_channel_weight_put,
  3621. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3622. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 3,}
  3623. },
  3624. {
  3625. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3626. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3627. .name = "MultiMedia1 Output Channel5",
  3628. .info = msm_pcm_channel_weight_info,
  3629. .get = msm_pcm_channel_weight_get,
  3630. .put = msm_pcm_channel_weight_put,
  3631. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3632. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 4,}
  3633. },
  3634. {
  3635. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3636. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3637. .name = "MultiMedia1 Output Channel6",
  3638. .info = msm_pcm_channel_weight_info,
  3639. .get = msm_pcm_channel_weight_get,
  3640. .put = msm_pcm_channel_weight_put,
  3641. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3642. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 5,}
  3643. },
  3644. {
  3645. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3646. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3647. .name = "MultiMedia1 Output Channel7",
  3648. .info = msm_pcm_channel_weight_info,
  3649. .get = msm_pcm_channel_weight_get,
  3650. .put = msm_pcm_channel_weight_put,
  3651. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3652. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 6,}
  3653. },
  3654. {
  3655. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3656. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3657. .name = "MultiMedia1 Output Channel8",
  3658. .info = msm_pcm_channel_weight_info,
  3659. .get = msm_pcm_channel_weight_get,
  3660. .put = msm_pcm_channel_weight_put,
  3661. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3662. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 7,}
  3663. },
  3664. {
  3665. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3666. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3667. .name = "MultiMedia1 Output Channel9",
  3668. .info = msm_pcm_channel_weight_info,
  3669. .get = msm_pcm_channel_weight_get,
  3670. .put = msm_pcm_channel_weight_put,
  3671. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3672. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 8,}
  3673. },
  3674. {
  3675. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3676. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3677. .name = "MultiMedia1 Output Channel10",
  3678. .info = msm_pcm_channel_weight_info,
  3679. .get = msm_pcm_channel_weight_get,
  3680. .put = msm_pcm_channel_weight_put,
  3681. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3682. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 9,}
  3683. },
  3684. {
  3685. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3686. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3687. .name = "MultiMedia1 Output Channel11",
  3688. .info = msm_pcm_channel_weight_info,
  3689. .get = msm_pcm_channel_weight_get,
  3690. .put = msm_pcm_channel_weight_put,
  3691. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3692. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 10,}
  3693. },
  3694. {
  3695. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3696. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3697. .name = "MultiMedia1 Output Channel12",
  3698. .info = msm_pcm_channel_weight_info,
  3699. .get = msm_pcm_channel_weight_get,
  3700. .put = msm_pcm_channel_weight_put,
  3701. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3702. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 11,}
  3703. },
  3704. {
  3705. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3706. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3707. .name = "MultiMedia1 Output Channel13",
  3708. .info = msm_pcm_channel_weight_info,
  3709. .get = msm_pcm_channel_weight_get,
  3710. .put = msm_pcm_channel_weight_put,
  3711. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3712. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 12,}
  3713. },
  3714. {
  3715. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3716. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3717. .name = "MultiMedia1 Output Channel14",
  3718. .info = msm_pcm_channel_weight_info,
  3719. .get = msm_pcm_channel_weight_get,
  3720. .put = msm_pcm_channel_weight_put,
  3721. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3722. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 13,}
  3723. },
  3724. {
  3725. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3726. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3727. .name = "MultiMedia2 Output Channel1",
  3728. .info = msm_pcm_channel_weight_info,
  3729. .get = msm_pcm_channel_weight_get,
  3730. .put = msm_pcm_channel_weight_put,
  3731. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3732. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 0,}
  3733. },
  3734. {
  3735. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3736. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3737. .name = "MultiMedia2 Output Channel2",
  3738. .info = msm_pcm_channel_weight_info,
  3739. .get = msm_pcm_channel_weight_get,
  3740. .put = msm_pcm_channel_weight_put,
  3741. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3742. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 1,}
  3743. },
  3744. {
  3745. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3746. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3747. .name = "MultiMedia2 Output Channel3",
  3748. .info = msm_pcm_channel_weight_info,
  3749. .get = msm_pcm_channel_weight_get,
  3750. .put = msm_pcm_channel_weight_put,
  3751. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3752. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 2,}
  3753. },
  3754. {
  3755. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3756. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3757. .name = "MultiMedia3 Output Channel1",
  3758. .info = msm_pcm_channel_weight_info,
  3759. .get = msm_pcm_channel_weight_get,
  3760. .put = msm_pcm_channel_weight_put,
  3761. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3762. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 0,}
  3763. },
  3764. {
  3765. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3766. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3767. .name = "MultiMedia3 Output Channel2",
  3768. .info = msm_pcm_channel_weight_info,
  3769. .get = msm_pcm_channel_weight_get,
  3770. .put = msm_pcm_channel_weight_put,
  3771. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3772. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 1,}
  3773. },
  3774. {
  3775. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3776. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3777. .name = "MultiMedia18 Output Channel1",
  3778. .info = msm_pcm_channel_weight_info,
  3779. .get = msm_pcm_channel_weight_get,
  3780. .put = msm_pcm_channel_weight_put,
  3781. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3782. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 0,}
  3783. },
  3784. {
  3785. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3786. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3787. .name = "MultiMedia18 Output Channel2",
  3788. .info = msm_pcm_channel_weight_info,
  3789. .get = msm_pcm_channel_weight_get,
  3790. .put = msm_pcm_channel_weight_put,
  3791. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3792. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 1, }
  3793. },
  3794. {
  3795. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3796. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3797. .name = "MultiMedia18 Output Channel3",
  3798. .info = msm_pcm_channel_weight_info,
  3799. .get = msm_pcm_channel_weight_get,
  3800. .put = msm_pcm_channel_weight_put,
  3801. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3802. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 2,}
  3803. },
  3804. {
  3805. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3806. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3807. .name = "MultiMedia18 Output Channel4",
  3808. .info = msm_pcm_channel_weight_info,
  3809. .get = msm_pcm_channel_weight_get,
  3810. .put = msm_pcm_channel_weight_put,
  3811. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3812. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 3,}
  3813. },
  3814. {
  3815. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3816. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3817. .name = "MultiMedia18 Output Channel5",
  3818. .info = msm_pcm_channel_weight_info,
  3819. .get = msm_pcm_channel_weight_get,
  3820. .put = msm_pcm_channel_weight_put,
  3821. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3822. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 4,}
  3823. },
  3824. {
  3825. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3826. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3827. .name = "MultiMedia18 Output Channel6",
  3828. .info = msm_pcm_channel_weight_info,
  3829. .get = msm_pcm_channel_weight_get,
  3830. .put = msm_pcm_channel_weight_put,
  3831. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3832. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 5,}
  3833. },
  3834. {
  3835. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3836. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3837. .name = "MultiMedia18 Output Channel7",
  3838. .info = msm_pcm_channel_weight_info,
  3839. .get = msm_pcm_channel_weight_get,
  3840. .put = msm_pcm_channel_weight_put,
  3841. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3842. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 6,}
  3843. },
  3844. {
  3845. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3846. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3847. .name = "MultiMedia18 Output Channel8",
  3848. .info = msm_pcm_channel_weight_info,
  3849. .get = msm_pcm_channel_weight_get,
  3850. .put = msm_pcm_channel_weight_put,
  3851. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3852. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 7,}
  3853. },
  3854. {
  3855. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3856. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3857. .name = "MultiMedia18 Output Channel9",
  3858. .info = msm_pcm_channel_weight_info,
  3859. .get = msm_pcm_channel_weight_get,
  3860. .put = msm_pcm_channel_weight_put,
  3861. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3862. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 8,}
  3863. },
  3864. {
  3865. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3866. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3867. .name = "MultiMedia18 Output Channel10",
  3868. .info = msm_pcm_channel_weight_info,
  3869. .get = msm_pcm_channel_weight_get,
  3870. .put = msm_pcm_channel_weight_put,
  3871. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3872. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 9,}
  3873. },
  3874. {
  3875. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3876. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3877. .name = "MultiMedia18 Output Channel11",
  3878. .info = msm_pcm_channel_weight_info,
  3879. .get = msm_pcm_channel_weight_get,
  3880. .put = msm_pcm_channel_weight_put,
  3881. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3882. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 10,}
  3883. },
  3884. {
  3885. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3886. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3887. .name = "MultiMedia18 Output Channel12",
  3888. .info = msm_pcm_channel_weight_info,
  3889. .get = msm_pcm_channel_weight_get,
  3890. .put = msm_pcm_channel_weight_put,
  3891. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3892. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 11,}
  3893. },
  3894. {
  3895. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3896. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3897. .name = "MultiMedia18 Output Channel13",
  3898. .info = msm_pcm_channel_weight_info,
  3899. .get = msm_pcm_channel_weight_get,
  3900. .put = msm_pcm_channel_weight_put,
  3901. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3902. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 12,}
  3903. },
  3904. {
  3905. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3906. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3907. .name = "MultiMedia18 Output Channel14",
  3908. .info = msm_pcm_channel_weight_info,
  3909. .get = msm_pcm_channel_weight_get,
  3910. .put = msm_pcm_channel_weight_put,
  3911. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3912. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 13,}
  3913. },
  3914. {
  3915. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3916. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3917. .name = "MultiMedia19 Output Channel1",
  3918. .info = msm_pcm_channel_weight_info,
  3919. .get = msm_pcm_channel_weight_get,
  3920. .put = msm_pcm_channel_weight_put,
  3921. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3922. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 0,}
  3923. },
  3924. {
  3925. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3926. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3927. .name = "MultiMedia19 Output Channel2",
  3928. .info = msm_pcm_channel_weight_info,
  3929. .get = msm_pcm_channel_weight_get,
  3930. .put = msm_pcm_channel_weight_put,
  3931. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3932. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 1, }
  3933. },
  3934. {
  3935. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3936. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3937. .name = "MultiMedia19 Output Channel3",
  3938. .info = msm_pcm_channel_weight_info,
  3939. .get = msm_pcm_channel_weight_get,
  3940. .put = msm_pcm_channel_weight_put,
  3941. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3942. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 2,}
  3943. },
  3944. {
  3945. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3946. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3947. .name = "MultiMedia19 Output Channel4",
  3948. .info = msm_pcm_channel_weight_info,
  3949. .get = msm_pcm_channel_weight_get,
  3950. .put = msm_pcm_channel_weight_put,
  3951. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3952. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 3,}
  3953. },
  3954. {
  3955. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3956. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3957. .name = "MultiMedia19 Output Channel5",
  3958. .info = msm_pcm_channel_weight_info,
  3959. .get = msm_pcm_channel_weight_get,
  3960. .put = msm_pcm_channel_weight_put,
  3961. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3962. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 4,}
  3963. },
  3964. {
  3965. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3966. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3967. .name = "MultiMedia19 Output Channel6",
  3968. .info = msm_pcm_channel_weight_info,
  3969. .get = msm_pcm_channel_weight_get,
  3970. .put = msm_pcm_channel_weight_put,
  3971. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3972. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 5,}
  3973. },
  3974. {
  3975. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3976. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3977. .name = "MultiMedia19 Output Channel7",
  3978. .info = msm_pcm_channel_weight_info,
  3979. .get = msm_pcm_channel_weight_get,
  3980. .put = msm_pcm_channel_weight_put,
  3981. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3982. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 6,}
  3983. },
  3984. {
  3985. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3986. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3987. .name = "MultiMedia19 Output Channel8",
  3988. .info = msm_pcm_channel_weight_info,
  3989. .get = msm_pcm_channel_weight_get,
  3990. .put = msm_pcm_channel_weight_put,
  3991. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3992. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 7,}
  3993. },
  3994. {
  3995. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3996. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3997. .name = "MultiMedia19 Output Channel9",
  3998. .info = msm_pcm_channel_weight_info,
  3999. .get = msm_pcm_channel_weight_get,
  4000. .put = msm_pcm_channel_weight_put,
  4001. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4002. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 8,}
  4003. },
  4004. {
  4005. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4006. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4007. .name = "MultiMedia19 Output Channel10",
  4008. .info = msm_pcm_channel_weight_info,
  4009. .get = msm_pcm_channel_weight_get,
  4010. .put = msm_pcm_channel_weight_put,
  4011. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4012. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 9,}
  4013. },
  4014. {
  4015. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4016. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4017. .name = "MultiMedia19 Output Channel11",
  4018. .info = msm_pcm_channel_weight_info,
  4019. .get = msm_pcm_channel_weight_get,
  4020. .put = msm_pcm_channel_weight_put,
  4021. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4022. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 10,}
  4023. },
  4024. {
  4025. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4026. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4027. .name = "MultiMedia19 Output Channel12",
  4028. .info = msm_pcm_channel_weight_info,
  4029. .get = msm_pcm_channel_weight_get,
  4030. .put = msm_pcm_channel_weight_put,
  4031. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4032. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 11,}
  4033. },
  4034. {
  4035. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4036. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4037. .name = "MultiMedia19 Output Channel13",
  4038. .info = msm_pcm_channel_weight_info,
  4039. .get = msm_pcm_channel_weight_get,
  4040. .put = msm_pcm_channel_weight_put,
  4041. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4042. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 12,}
  4043. },
  4044. {
  4045. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4046. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4047. .name = "MultiMedia19 Output Channel14",
  4048. .info = msm_pcm_channel_weight_info,
  4049. .get = msm_pcm_channel_weight_get,
  4050. .put = msm_pcm_channel_weight_put,
  4051. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4052. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 13,}
  4053. },
  4054. {
  4055. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4056. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4057. .name = "MultiMedia28 Output Channel1",
  4058. .info = msm_pcm_channel_weight_info,
  4059. .get = msm_pcm_channel_weight_get,
  4060. .put = msm_pcm_channel_weight_put,
  4061. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4062. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 0,}
  4063. },
  4064. {
  4065. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4066. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4067. .name = "MultiMedia28 Output Channel2",
  4068. .info = msm_pcm_channel_weight_info,
  4069. .get = msm_pcm_channel_weight_get,
  4070. .put = msm_pcm_channel_weight_put,
  4071. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4072. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 1, }
  4073. },
  4074. {
  4075. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4076. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4077. .name = "MultiMedia28 Output Channel3",
  4078. .info = msm_pcm_channel_weight_info,
  4079. .get = msm_pcm_channel_weight_get,
  4080. .put = msm_pcm_channel_weight_put,
  4081. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4082. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 2,}
  4083. },
  4084. {
  4085. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4086. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4087. .name = "MultiMedia28 Output Channel4",
  4088. .info = msm_pcm_channel_weight_info,
  4089. .get = msm_pcm_channel_weight_get,
  4090. .put = msm_pcm_channel_weight_put,
  4091. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4092. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 3,}
  4093. },
  4094. {
  4095. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4096. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4097. .name = "MultiMedia28 Output Channel5",
  4098. .info = msm_pcm_channel_weight_info,
  4099. .get = msm_pcm_channel_weight_get,
  4100. .put = msm_pcm_channel_weight_put,
  4101. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4102. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 4,}
  4103. },
  4104. {
  4105. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4106. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4107. .name = "MultiMedia28 Output Channel6",
  4108. .info = msm_pcm_channel_weight_info,
  4109. .get = msm_pcm_channel_weight_get,
  4110. .put = msm_pcm_channel_weight_put,
  4111. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4112. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 5,}
  4113. },
  4114. {
  4115. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4116. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4117. .name = "MultiMedia28 Output Channel7",
  4118. .info = msm_pcm_channel_weight_info,
  4119. .get = msm_pcm_channel_weight_get,
  4120. .put = msm_pcm_channel_weight_put,
  4121. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4122. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 6,}
  4123. },
  4124. {
  4125. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4126. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4127. .name = "MultiMedia28 Output Channel8",
  4128. .info = msm_pcm_channel_weight_info,
  4129. .get = msm_pcm_channel_weight_get,
  4130. .put = msm_pcm_channel_weight_put,
  4131. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4132. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 7,}
  4133. },
  4134. {
  4135. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4136. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4137. .name = "MultiMedia28 Output Channel9",
  4138. .info = msm_pcm_channel_weight_info,
  4139. .get = msm_pcm_channel_weight_get,
  4140. .put = msm_pcm_channel_weight_put,
  4141. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4142. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 8,}
  4143. },
  4144. {
  4145. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4146. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4147. .name = "MultiMedia28 Output Channel10",
  4148. .info = msm_pcm_channel_weight_info,
  4149. .get = msm_pcm_channel_weight_get,
  4150. .put = msm_pcm_channel_weight_put,
  4151. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4152. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 9,}
  4153. },
  4154. {
  4155. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4156. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4157. .name = "MultiMedia28 Output Channel11",
  4158. .info = msm_pcm_channel_weight_info,
  4159. .get = msm_pcm_channel_weight_get,
  4160. .put = msm_pcm_channel_weight_put,
  4161. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4162. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 10,}
  4163. },
  4164. {
  4165. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4166. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4167. .name = "MultiMedia28 Output Channel12",
  4168. .info = msm_pcm_channel_weight_info,
  4169. .get = msm_pcm_channel_weight_get,
  4170. .put = msm_pcm_channel_weight_put,
  4171. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4172. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 11,}
  4173. },
  4174. {
  4175. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4176. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4177. .name = "MultiMedia28 Output Channel13",
  4178. .info = msm_pcm_channel_weight_info,
  4179. .get = msm_pcm_channel_weight_get,
  4180. .put = msm_pcm_channel_weight_put,
  4181. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4182. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 12,}
  4183. },
  4184. {
  4185. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4186. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4187. .name = "MultiMedia28 Output Channel14",
  4188. .info = msm_pcm_channel_weight_info,
  4189. .get = msm_pcm_channel_weight_get,
  4190. .put = msm_pcm_channel_weight_put,
  4191. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4192. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 13,}
  4193. },
  4194. {
  4195. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4196. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4197. .name = "MultiMedia29 Output Channel1",
  4198. .info = msm_pcm_channel_weight_info,
  4199. .get = msm_pcm_channel_weight_get,
  4200. .put = msm_pcm_channel_weight_put,
  4201. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4202. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 0,}
  4203. },
  4204. {
  4205. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4206. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4207. .name = "MultiMedia29 Output Channel2",
  4208. .info = msm_pcm_channel_weight_info,
  4209. .get = msm_pcm_channel_weight_get,
  4210. .put = msm_pcm_channel_weight_put,
  4211. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4212. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 1, }
  4213. },
  4214. {
  4215. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4216. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4217. .name = "MultiMedia29 Output Channel3",
  4218. .info = msm_pcm_channel_weight_info,
  4219. .get = msm_pcm_channel_weight_get,
  4220. .put = msm_pcm_channel_weight_put,
  4221. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4222. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 2,}
  4223. },
  4224. {
  4225. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4226. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4227. .name = "MultiMedia29 Output Channel4",
  4228. .info = msm_pcm_channel_weight_info,
  4229. .get = msm_pcm_channel_weight_get,
  4230. .put = msm_pcm_channel_weight_put,
  4231. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4232. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 3,}
  4233. },
  4234. {
  4235. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4236. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4237. .name = "MultiMedia29 Output Channel5",
  4238. .info = msm_pcm_channel_weight_info,
  4239. .get = msm_pcm_channel_weight_get,
  4240. .put = msm_pcm_channel_weight_put,
  4241. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4242. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 4,}
  4243. },
  4244. {
  4245. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4246. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4247. .name = "MultiMedia29 Output Channel6",
  4248. .info = msm_pcm_channel_weight_info,
  4249. .get = msm_pcm_channel_weight_get,
  4250. .put = msm_pcm_channel_weight_put,
  4251. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4252. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 5,}
  4253. },
  4254. {
  4255. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4256. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4257. .name = "MultiMedia29 Output Channel7",
  4258. .info = msm_pcm_channel_weight_info,
  4259. .get = msm_pcm_channel_weight_get,
  4260. .put = msm_pcm_channel_weight_put,
  4261. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4262. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 6,}
  4263. },
  4264. {
  4265. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4266. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4267. .name = "MultiMedia29 Output Channel8",
  4268. .info = msm_pcm_channel_weight_info,
  4269. .get = msm_pcm_channel_weight_get,
  4270. .put = msm_pcm_channel_weight_put,
  4271. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4272. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 7,}
  4273. },
  4274. {
  4275. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4276. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4277. .name = "MultiMedia29 Output Channel9",
  4278. .info = msm_pcm_channel_weight_info,
  4279. .get = msm_pcm_channel_weight_get,
  4280. .put = msm_pcm_channel_weight_put,
  4281. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4282. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 8,}
  4283. },
  4284. {
  4285. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4286. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4287. .name = "MultiMedia29 Output Channel10",
  4288. .info = msm_pcm_channel_weight_info,
  4289. .get = msm_pcm_channel_weight_get,
  4290. .put = msm_pcm_channel_weight_put,
  4291. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4292. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 9,}
  4293. },
  4294. {
  4295. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4296. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4297. .name = "MultiMedia29 Output Channel11",
  4298. .info = msm_pcm_channel_weight_info,
  4299. .get = msm_pcm_channel_weight_get,
  4300. .put = msm_pcm_channel_weight_put,
  4301. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4302. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 10,}
  4303. },
  4304. {
  4305. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4306. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4307. .name = "MultiMedia29 Output Channel12",
  4308. .info = msm_pcm_channel_weight_info,
  4309. .get = msm_pcm_channel_weight_get,
  4310. .put = msm_pcm_channel_weight_put,
  4311. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4312. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 11,}
  4313. },
  4314. {
  4315. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4316. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4317. .name = "MultiMedia29 Output Channel13",
  4318. .info = msm_pcm_channel_weight_info,
  4319. .get = msm_pcm_channel_weight_get,
  4320. .put = msm_pcm_channel_weight_put,
  4321. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4322. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 12,}
  4323. },
  4324. {
  4325. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4326. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4327. .name = "MultiMedia29 Output Channel14",
  4328. .info = msm_pcm_channel_weight_info,
  4329. .get = msm_pcm_channel_weight_get,
  4330. .put = msm_pcm_channel_weight_put,
  4331. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4332. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 13,}
  4333. },
  4334. {
  4335. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4336. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4337. .name = "MultiMedia30 Output Channel1",
  4338. .info = msm_pcm_channel_weight_info,
  4339. .get = msm_pcm_channel_weight_get,
  4340. .put = msm_pcm_channel_weight_put,
  4341. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4342. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 0,}
  4343. },
  4344. {
  4345. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4346. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4347. .name = "MultiMedia30 Output Channel2",
  4348. .info = msm_pcm_channel_weight_info,
  4349. .get = msm_pcm_channel_weight_get,
  4350. .put = msm_pcm_channel_weight_put,
  4351. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4352. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 1, }
  4353. },
  4354. {
  4355. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4356. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4357. .name = "MultiMedia30 Output Channel3",
  4358. .info = msm_pcm_channel_weight_info,
  4359. .get = msm_pcm_channel_weight_get,
  4360. .put = msm_pcm_channel_weight_put,
  4361. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4362. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 2,}
  4363. },
  4364. {
  4365. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4366. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4367. .name = "MultiMedia30 Output Channel4",
  4368. .info = msm_pcm_channel_weight_info,
  4369. .get = msm_pcm_channel_weight_get,
  4370. .put = msm_pcm_channel_weight_put,
  4371. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4372. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 3,}
  4373. },
  4374. {
  4375. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4376. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4377. .name = "MultiMedia30 Output Channel5",
  4378. .info = msm_pcm_channel_weight_info,
  4379. .get = msm_pcm_channel_weight_get,
  4380. .put = msm_pcm_channel_weight_put,
  4381. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4382. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 4,}
  4383. },
  4384. {
  4385. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4386. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4387. .name = "MultiMedia30 Output Channel6",
  4388. .info = msm_pcm_channel_weight_info,
  4389. .get = msm_pcm_channel_weight_get,
  4390. .put = msm_pcm_channel_weight_put,
  4391. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4392. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 5,}
  4393. },
  4394. {
  4395. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4396. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4397. .name = "MultiMedia30 Output Channel7",
  4398. .info = msm_pcm_channel_weight_info,
  4399. .get = msm_pcm_channel_weight_get,
  4400. .put = msm_pcm_channel_weight_put,
  4401. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4402. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 6,}
  4403. },
  4404. {
  4405. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4406. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4407. .name = "MultiMedia30 Output Channel8",
  4408. .info = msm_pcm_channel_weight_info,
  4409. .get = msm_pcm_channel_weight_get,
  4410. .put = msm_pcm_channel_weight_put,
  4411. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4412. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 7,}
  4413. },
  4414. {
  4415. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4416. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4417. .name = "MultiMedia30 Output Channel9",
  4418. .info = msm_pcm_channel_weight_info,
  4419. .get = msm_pcm_channel_weight_get,
  4420. .put = msm_pcm_channel_weight_put,
  4421. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4422. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 8,}
  4423. },
  4424. {
  4425. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4426. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4427. .name = "MultiMedia30 Output Channel10",
  4428. .info = msm_pcm_channel_weight_info,
  4429. .get = msm_pcm_channel_weight_get,
  4430. .put = msm_pcm_channel_weight_put,
  4431. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4432. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 9,}
  4433. },
  4434. {
  4435. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4436. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4437. .name = "MultiMedia30 Output Channel11",
  4438. .info = msm_pcm_channel_weight_info,
  4439. .get = msm_pcm_channel_weight_get,
  4440. .put = msm_pcm_channel_weight_put,
  4441. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4442. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 10,}
  4443. },
  4444. {
  4445. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4446. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4447. .name = "MultiMedia30 Output Channel12",
  4448. .info = msm_pcm_channel_weight_info,
  4449. .get = msm_pcm_channel_weight_get,
  4450. .put = msm_pcm_channel_weight_put,
  4451. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4452. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 11,}
  4453. },
  4454. {
  4455. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4456. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4457. .name = "MultiMedia30 Output Channel13",
  4458. .info = msm_pcm_channel_weight_info,
  4459. .get = msm_pcm_channel_weight_get,
  4460. .put = msm_pcm_channel_weight_put,
  4461. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4462. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 12,}
  4463. },
  4464. {
  4465. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4466. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4467. .name = "MultiMedia30 Output Channel14",
  4468. .info = msm_pcm_channel_weight_info,
  4469. .get = msm_pcm_channel_weight_get,
  4470. .put = msm_pcm_channel_weight_put,
  4471. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4472. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 13,}
  4473. },
  4474. {
  4475. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4476. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4477. .name = "MultiMedia1 Channel1",
  4478. .info = msm_pcm_channel_input_be_info,
  4479. .get = msm_pcm_channel_input_be_get,
  4480. .put = msm_pcm_channel_input_be_put,
  4481. .private_value = (unsigned long)&(mm1_ch1_enum)
  4482. },
  4483. {
  4484. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4485. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4486. .name = "MultiMedia1 Channel2",
  4487. .info = msm_pcm_channel_input_be_info,
  4488. .get = msm_pcm_channel_input_be_get,
  4489. .put = msm_pcm_channel_input_be_put,
  4490. .private_value = (unsigned long)&(mm1_ch2_enum)
  4491. },
  4492. {
  4493. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4494. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4495. .name = "MultiMedia1 Channel3",
  4496. .info = msm_pcm_channel_input_be_info,
  4497. .get = msm_pcm_channel_input_be_get,
  4498. .put = msm_pcm_channel_input_be_put,
  4499. .private_value = (unsigned long)&(mm1_ch3_enum)
  4500. },
  4501. {
  4502. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4503. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4504. .name = "MultiMedia1 Channel4",
  4505. .info = msm_pcm_channel_input_be_info,
  4506. .get = msm_pcm_channel_input_be_get,
  4507. .put = msm_pcm_channel_input_be_put,
  4508. .private_value = (unsigned long)&(mm1_ch4_enum)
  4509. },
  4510. {
  4511. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4512. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4513. .name = "MultiMedia1 Channel5",
  4514. .info = msm_pcm_channel_input_be_info,
  4515. .get = msm_pcm_channel_input_be_get,
  4516. .put = msm_pcm_channel_input_be_put,
  4517. .private_value = (unsigned long)&(mm1_ch5_enum)
  4518. },
  4519. {
  4520. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4521. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4522. .name = "MultiMedia1 Channel6",
  4523. .info = msm_pcm_channel_input_be_info,
  4524. .get = msm_pcm_channel_input_be_get,
  4525. .put = msm_pcm_channel_input_be_put,
  4526. .private_value = (unsigned long)&(mm1_ch6_enum)
  4527. },
  4528. {
  4529. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4530. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4531. .name = "MultiMedia1 Channel7",
  4532. .info = msm_pcm_channel_input_be_info,
  4533. .get = msm_pcm_channel_input_be_get,
  4534. .put = msm_pcm_channel_input_be_put,
  4535. .private_value = (unsigned long)&(mm1_ch7_enum)
  4536. },
  4537. {
  4538. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4539. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4540. .name = "MultiMedia1 Channel8",
  4541. .info = msm_pcm_channel_input_be_info,
  4542. .get = msm_pcm_channel_input_be_get,
  4543. .put = msm_pcm_channel_input_be_put,
  4544. .private_value = (unsigned long)&(mm1_ch8_enum)
  4545. },
  4546. {
  4547. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4548. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4549. .name = "MultiMedia18 Channel1",
  4550. .info = msm_pcm_channel_input_be_info,
  4551. .get = msm_pcm_channel_input_be_get,
  4552. .put = msm_pcm_channel_input_be_put,
  4553. .private_value = (unsigned long)&(mm18_ch1_enum)
  4554. },
  4555. {
  4556. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4557. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4558. .name = "MultiMedia18 Channel2",
  4559. .info = msm_pcm_channel_input_be_info,
  4560. .get = msm_pcm_channel_input_be_get,
  4561. .put = msm_pcm_channel_input_be_put,
  4562. .private_value = (unsigned long)&(mm18_ch2_enum)
  4563. },
  4564. {
  4565. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4566. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4567. .name = "MultiMedia19 Channel1",
  4568. .info = msm_pcm_channel_input_be_info,
  4569. .get = msm_pcm_channel_input_be_get,
  4570. .put = msm_pcm_channel_input_be_put,
  4571. .private_value = (unsigned long)&(mm19_ch1_enum)
  4572. },
  4573. {
  4574. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4575. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4576. .name = "MultiMedia19 Channel2",
  4577. .info = msm_pcm_channel_input_be_info,
  4578. .get = msm_pcm_channel_input_be_get,
  4579. .put = msm_pcm_channel_input_be_put,
  4580. .private_value = (unsigned long)&(mm19_ch2_enum)
  4581. },
  4582. {
  4583. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4584. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4585. .name = "MultiMedia28 Channel1",
  4586. .info = msm_pcm_channel_input_be_info,
  4587. .get = msm_pcm_channel_input_be_get,
  4588. .put = msm_pcm_channel_input_be_put,
  4589. .private_value = (unsigned long)&(mm28_ch1_enum)
  4590. },
  4591. {
  4592. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4593. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4594. .name = "MultiMedia28 Channel2",
  4595. .info = msm_pcm_channel_input_be_info,
  4596. .get = msm_pcm_channel_input_be_get,
  4597. .put = msm_pcm_channel_input_be_put,
  4598. .private_value = (unsigned long)&(mm28_ch2_enum)
  4599. },
  4600. {
  4601. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4602. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4603. .name = "MultiMedia29 Channel1",
  4604. .info = msm_pcm_channel_input_be_info,
  4605. .get = msm_pcm_channel_input_be_get,
  4606. .put = msm_pcm_channel_input_be_put,
  4607. .private_value = (unsigned long)&(mm29_ch1_enum)
  4608. },
  4609. {
  4610. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4611. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4612. .name = "MultiMedia29 Channel2",
  4613. .info = msm_pcm_channel_input_be_info,
  4614. .get = msm_pcm_channel_input_be_get,
  4615. .put = msm_pcm_channel_input_be_put,
  4616. .private_value = (unsigned long)&(mm29_ch2_enum)
  4617. },
  4618. {
  4619. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4620. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4621. .name = "MultiMedia30 Channel1",
  4622. .info = msm_pcm_channel_input_be_info,
  4623. .get = msm_pcm_channel_input_be_get,
  4624. .put = msm_pcm_channel_input_be_put,
  4625. .private_value = (unsigned long)&(mm30_ch1_enum)
  4626. },
  4627. {
  4628. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4629. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4630. .name = "MultiMedia30 Channel2",
  4631. .info = msm_pcm_channel_input_be_info,
  4632. .get = msm_pcm_channel_input_be_get,
  4633. .put = msm_pcm_channel_input_be_put,
  4634. .private_value = (unsigned long)&(mm30_ch2_enum)
  4635. },
  4636. {
  4637. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4638. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4639. .name = "MultiMedia1 Output Channel Map",
  4640. .info = msm_pcm_channel_output_map_info,
  4641. .get = msm_pcm_channel_output_map_get,
  4642. .put = msm_pcm_channel_output_map_put,
  4643. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4644. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1,}
  4645. },
  4646. {
  4647. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4648. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4649. .name = "MultiMedia2 Output Channel Map",
  4650. .info = msm_pcm_channel_output_map_info,
  4651. .get = msm_pcm_channel_output_map_get,
  4652. .put = msm_pcm_channel_output_map_put,
  4653. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4654. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA2,}
  4655. },
  4656. {
  4657. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4658. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4659. .name = "MultiMedia3 Output Channel Map",
  4660. .info = msm_pcm_channel_output_map_info,
  4661. .get = msm_pcm_channel_output_map_get,
  4662. .put = msm_pcm_channel_output_map_put,
  4663. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4664. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA3,}
  4665. },
  4666. {
  4667. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4668. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4669. .name = "MultiMedia4 Output Channel Map",
  4670. .info = msm_pcm_channel_output_map_info,
  4671. .get = msm_pcm_channel_output_map_get,
  4672. .put = msm_pcm_channel_output_map_put,
  4673. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4674. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA4,}
  4675. },
  4676. {
  4677. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4678. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4679. .name = "MultiMedia5 Output Channel Map",
  4680. .info = msm_pcm_channel_output_map_info,
  4681. .get = msm_pcm_channel_output_map_get,
  4682. .put = msm_pcm_channel_output_map_put,
  4683. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4684. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA5,}
  4685. },
  4686. {
  4687. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4688. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4689. .name = "MultiMedia6 Output Channel Map",
  4690. .info = msm_pcm_channel_output_map_info,
  4691. .get = msm_pcm_channel_output_map_get,
  4692. .put = msm_pcm_channel_output_map_put,
  4693. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4694. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA6,}
  4695. },
  4696. {
  4697. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4698. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4699. .name = "MultiMedia18 Output Channel Map",
  4700. .info = msm_pcm_channel_output_map_info,
  4701. .get = msm_pcm_channel_output_map_get,
  4702. .put = msm_pcm_channel_output_map_put,
  4703. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4704. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18,}
  4705. },
  4706. {
  4707. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4708. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4709. .name = "MultiMedia19 Output Channel Map",
  4710. .info = msm_pcm_channel_output_map_info,
  4711. .get = msm_pcm_channel_output_map_get,
  4712. .put = msm_pcm_channel_output_map_put,
  4713. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4714. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19,}
  4715. },
  4716. {
  4717. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4718. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4719. .name = "MultiMedia28 Output Channel Map",
  4720. .info = msm_pcm_channel_output_map_info,
  4721. .get = msm_pcm_channel_output_map_get,
  4722. .put = msm_pcm_channel_output_map_put,
  4723. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4724. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28,}
  4725. },
  4726. {
  4727. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4728. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4729. .name = "MultiMedia29 Output Channel Map",
  4730. .info = msm_pcm_channel_output_map_info,
  4731. .get = msm_pcm_channel_output_map_get,
  4732. .put = msm_pcm_channel_output_map_put,
  4733. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4734. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29,}
  4735. },
  4736. {
  4737. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4738. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4739. .name = "MultiMedia30 Output Channel Map",
  4740. .info = msm_pcm_channel_output_map_info,
  4741. .get = msm_pcm_channel_output_map_get,
  4742. .put = msm_pcm_channel_output_map_put,
  4743. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4744. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30,}
  4745. },
  4746. };
  4747. static int msm_ec_ref_ch_get(struct snd_kcontrol *kcontrol,
  4748. struct snd_ctl_elem_value *ucontrol)
  4749. {
  4750. ucontrol->value.integer.value[0] = msm_ec_ref_ch;
  4751. pr_debug("%s: msm_ec_ref_ch = %ld\n", __func__,
  4752. ucontrol->value.integer.value[0]);
  4753. return 0;
  4754. }
  4755. static int msm_ec_ref_ch_put(struct snd_kcontrol *kcontrol,
  4756. struct snd_ctl_elem_value *ucontrol)
  4757. {
  4758. msm_ec_ref_ch = ucontrol->value.integer.value[0];
  4759. pr_debug("%s: msm_ec_ref_ch = %d\n", __func__, msm_ec_ref_ch);
  4760. adm_num_ec_ref_rx_chans(msm_ec_ref_ch);
  4761. return 0;
  4762. }
  4763. static int msm_ec_ref_ch_downmixed_get(struct snd_kcontrol *kcontrol,
  4764. struct snd_ctl_elem_value *ucontrol)
  4765. {
  4766. ucontrol->value.integer.value[0] = msm_ec_ref_ch_downmixed;
  4767. pr_debug("%s: msm_ec_ref_downmixed_ch = %ld\n", __func__,
  4768. ucontrol->value.integer.value[0]);
  4769. return 0;
  4770. }
  4771. static int msm_ec_ref_ch_downmixed_put(struct snd_kcontrol *kcontrol,
  4772. struct snd_ctl_elem_value *ucontrol)
  4773. {
  4774. msm_ec_ref_ch_downmixed = ucontrol->value.integer.value[0];
  4775. pr_debug("%s: msm_ec_ref_downmixed_ch = %d\n",
  4776. __func__, msm_ec_ref_ch_downmixed);
  4777. adm_num_ec_ref_rx_chans_downmixed(msm_ec_ref_ch_downmixed);
  4778. return 0;
  4779. }
  4780. static int msm_ec_ref_chmixer_weights_put(struct snd_kcontrol *kcontrol,
  4781. struct snd_ctl_elem_value *ucontrol)
  4782. {
  4783. int i = 0, ret = 0;
  4784. uint16_t weights[PCM_FORMAT_MAX_NUM_CHANNEL_V8] = {0};
  4785. int out_channel_idx = ((struct soc_multi_mixer_control *)
  4786. kcontrol->private_value)->shift;
  4787. for (; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; i++)
  4788. weights[i] = ucontrol->value.integer.value[i];
  4789. ret = adm_ec_ref_chmixer_weights(out_channel_idx,
  4790. weights, PCM_FORMAT_MAX_NUM_CHANNEL_V8);
  4791. pr_debug("%s: ch_index = %d, ret = %d\n", __func__, out_channel_idx, ret);
  4792. return ret;
  4793. }
  4794. static const char *const ec_ref_ch_text[] = {"Zero", "One", "Two", "Three",
  4795. "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten", "Eleven",
  4796. "Twelve", "Thirteen", "Fourteen", "Fifteen", "Sixteen"};
  4797. static int msm_ec_ref_bit_format_get(struct snd_kcontrol *kcontrol,
  4798. struct snd_ctl_elem_value *ucontrol)
  4799. {
  4800. switch (msm_ec_ref_bit_format) {
  4801. case SNDRV_PCM_FORMAT_S24_LE:
  4802. ucontrol->value.integer.value[0] = 2;
  4803. break;
  4804. case SNDRV_PCM_FORMAT_S16_LE:
  4805. ucontrol->value.integer.value[0] = 1;
  4806. break;
  4807. default:
  4808. ucontrol->value.integer.value[0] = 0;
  4809. break;
  4810. }
  4811. pr_debug("%s: msm_ec_ref_bit_format = %ld\n",
  4812. __func__, ucontrol->value.integer.value[0]);
  4813. return 0;
  4814. }
  4815. static int msm_ec_ref_bit_format_put(struct snd_kcontrol *kcontrol,
  4816. struct snd_ctl_elem_value *ucontrol)
  4817. {
  4818. u16 bit_width = 0;
  4819. switch (ucontrol->value.integer.value[0]) {
  4820. case 2:
  4821. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S24_LE;
  4822. break;
  4823. case 1:
  4824. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  4825. break;
  4826. default:
  4827. msm_ec_ref_bit_format = 0;
  4828. break;
  4829. }
  4830. if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S16_LE)
  4831. bit_width = 16;
  4832. else if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S24_LE)
  4833. bit_width = 24;
  4834. pr_debug("%s: msm_ec_ref_bit_format = %d\n",
  4835. __func__, msm_ec_ref_bit_format);
  4836. adm_ec_ref_rx_bit_width(bit_width);
  4837. return 0;
  4838. }
  4839. static char const *ec_ref_bit_format_text[] = {"0", "S16_LE", "S24_LE"};
  4840. static int msm_ec_ref_rate_get(struct snd_kcontrol *kcontrol,
  4841. struct snd_ctl_elem_value *ucontrol)
  4842. {
  4843. ucontrol->value.integer.value[0] = msm_ec_ref_sampling_rate;
  4844. pr_debug("%s: msm_ec_ref_sampling_rate = %ld\n",
  4845. __func__, ucontrol->value.integer.value[0]);
  4846. return 0;
  4847. }
  4848. static int msm_ec_ref_rate_put(struct snd_kcontrol *kcontrol,
  4849. struct snd_ctl_elem_value *ucontrol)
  4850. {
  4851. switch (ucontrol->value.integer.value[0]) {
  4852. case 0:
  4853. msm_ec_ref_sampling_rate = 0;
  4854. break;
  4855. case 1:
  4856. msm_ec_ref_sampling_rate = 8000;
  4857. break;
  4858. case 2:
  4859. msm_ec_ref_sampling_rate = 16000;
  4860. break;
  4861. case 3:
  4862. msm_ec_ref_sampling_rate = 32000;
  4863. break;
  4864. case 4:
  4865. msm_ec_ref_sampling_rate = 44100;
  4866. break;
  4867. case 5:
  4868. msm_ec_ref_sampling_rate = 48000;
  4869. break;
  4870. case 6:
  4871. msm_ec_ref_sampling_rate = 96000;
  4872. break;
  4873. case 7:
  4874. msm_ec_ref_sampling_rate = 192000;
  4875. break;
  4876. case 8:
  4877. msm_ec_ref_sampling_rate = 384000;
  4878. break;
  4879. default:
  4880. msm_ec_ref_sampling_rate = 48000;
  4881. break;
  4882. }
  4883. pr_debug("%s: msm_ec_ref_sampling_rate = %d\n",
  4884. __func__, msm_ec_ref_sampling_rate);
  4885. adm_ec_ref_rx_sampling_rate(msm_ec_ref_sampling_rate);
  4886. return 0;
  4887. }
  4888. static int get_ec_ref_port_id(int value, int *index)
  4889. {
  4890. int port_id;
  4891. switch (value) {
  4892. case 0:
  4893. *index = 0;
  4894. port_id = AFE_PORT_INVALID;
  4895. break;
  4896. case 1:
  4897. *index = 1;
  4898. port_id = SLIMBUS_0_RX;
  4899. break;
  4900. case 2:
  4901. *index = 2;
  4902. port_id = AFE_PORT_ID_PRIMARY_MI2S_RX;
  4903. break;
  4904. case 3:
  4905. *index = 3;
  4906. port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  4907. break;
  4908. case 4:
  4909. *index = 4;
  4910. port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  4911. break;
  4912. case 5:
  4913. *index = 5;
  4914. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  4915. break;
  4916. case 6:
  4917. *index = 6;
  4918. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  4919. break;
  4920. case 7:
  4921. *index = 7;
  4922. port_id = AFE_PORT_ID_SECONDARY_MI2S_RX;
  4923. break;
  4924. case 9:
  4925. *index = 9;
  4926. port_id = SLIMBUS_5_RX;
  4927. break;
  4928. case 10:
  4929. *index = 10;
  4930. port_id = SLIMBUS_1_TX;
  4931. break;
  4932. case 11:
  4933. *index = 11;
  4934. port_id = AFE_PORT_ID_QUATERNARY_TDM_TX_1;
  4935. break;
  4936. case 12:
  4937. *index = 12;
  4938. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX;
  4939. break;
  4940. case 13:
  4941. *index = 13;
  4942. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_1;
  4943. break;
  4944. case 14:
  4945. *index = 14;
  4946. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_2;
  4947. break;
  4948. case 15:
  4949. *index = 15;
  4950. port_id = SLIMBUS_6_RX;
  4951. break;
  4952. case 16:
  4953. *index = 16;
  4954. port_id = AFE_PORT_ID_TERTIARY_MI2S_RX;
  4955. break;
  4956. case 17:
  4957. *index = 17;
  4958. port_id = AFE_PORT_ID_QUATERNARY_MI2S_RX;
  4959. break;
  4960. case 18:
  4961. *index = 18;
  4962. port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  4963. break;
  4964. case 19:
  4965. *index = 19;
  4966. port_id = AFE_PORT_ID_USB_RX;
  4967. break;
  4968. case 20:
  4969. *index = 20;
  4970. port_id = AFE_PORT_ID_INT0_MI2S_RX;
  4971. break;
  4972. case 21:
  4973. *index = 21;
  4974. port_id = AFE_PORT_ID_INT4_MI2S_RX;
  4975. break;
  4976. case 22:
  4977. *index = 22;
  4978. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  4979. break;
  4980. case 23:
  4981. *index = 23;
  4982. port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  4983. break;
  4984. case 24:
  4985. *index = 24;
  4986. port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_0;
  4987. break;
  4988. case 25:
  4989. *index = 25;
  4990. port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_1;
  4991. break;
  4992. case 26:
  4993. *index = 26;
  4994. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_0;
  4995. break;
  4996. case 27:
  4997. *index = 27;
  4998. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_1;
  4999. break;
  5000. case 28:
  5001. *index = 28;
  5002. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_2;
  5003. break;
  5004. case 29:
  5005. *index = 29;
  5006. port_id = SLIMBUS_7_RX;
  5007. break;
  5008. case 30:
  5009. *index = 30;
  5010. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_0;
  5011. break;
  5012. case 31:
  5013. *index = 31;
  5014. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_1;
  5015. break;
  5016. case 32:
  5017. *index = 32;
  5018. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_2;
  5019. break;
  5020. case 33:
  5021. *index = 33;
  5022. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_3;
  5023. break;
  5024. case 34:
  5025. *index = 34;
  5026. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_0;
  5027. break;
  5028. case 35:
  5029. *index = 35;
  5030. port_id = AFE_PORT_ID_TERTIARY_TDM_RX_2;
  5031. break;
  5032. case 36:
  5033. *index = 36;
  5034. port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  5035. break;
  5036. case 37:
  5037. *index = 37;
  5038. port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  5039. break;
  5040. case 38:
  5041. *index = 38;
  5042. port_id = AFE_PORT_ID_SENARY_MI2S_RX;
  5043. break;
  5044. case 39:
  5045. *index = 39;
  5046. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  5047. break;
  5048. default:
  5049. *index = 0; /* NONE */
  5050. pr_err("%s: Invalid value %d\n", __func__, value);
  5051. port_id = AFE_PORT_INVALID;
  5052. break;
  5053. }
  5054. return port_id;
  5055. }
  5056. static int msm_routing_afe_lb_tx_port_get(struct snd_kcontrol *kcontrol,
  5057. struct snd_ctl_elem_value *ucontrol)
  5058. {
  5059. pr_debug("%s: port index = %d", __func__, afe_loopback_tx_port_index);
  5060. mutex_lock(&routing_lock);
  5061. ucontrol->value.integer.value[0] = afe_loopback_tx_port_index;
  5062. mutex_unlock(&routing_lock);
  5063. return 0;
  5064. }
  5065. static int msm_routing_afe_lb_tx_port_put(struct snd_kcontrol *kcontrol,
  5066. struct snd_ctl_elem_value *ucontrol)
  5067. {
  5068. int value = ucontrol->value.integer.value[0];
  5069. mutex_lock(&routing_lock);
  5070. afe_loopback_tx_port_id = get_ec_ref_port_id(value,
  5071. &afe_loopback_tx_port_index);
  5072. pr_debug("%s: afe_loopback_tx_port_index = %d\n",
  5073. __func__, afe_loopback_tx_port_index);
  5074. mutex_unlock(&routing_lock);
  5075. return 0;
  5076. }
  5077. static const char *const ec_ref_rate_text[] = {"0", "8000", "16000",
  5078. "32000", "44100", "48000", "96000", "192000", "384000"};
  5079. static const struct soc_enum msm_route_ec_ref_params_enum[] = {
  5080. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_ch_text), ec_ref_ch_text),
  5081. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_bit_format_text),
  5082. ec_ref_bit_format_text),
  5083. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rate_text), ec_ref_rate_text),
  5084. };
  5085. static const char *const ec_ref_rx[] = { "None", "SLIM_RX", "I2S_RX",
  5086. "PRI_MI2S_TX", "SEC_MI2S_TX",
  5087. "TERT_MI2S_TX", "QUAT_MI2S_TX", "SEC_I2S_RX", "PROXY_RX",
  5088. "SLIM_5_RX", "SLIM_1_TX", "QUAT_TDM_TX_1",
  5089. "QUAT_TDM_RX_0", "QUAT_TDM_RX_1", "QUAT_TDM_RX_2", "SLIM_6_RX",
  5090. "TERT_MI2S_RX", "QUAT_MI2S_RX", "TERT_TDM_TX_0", "USB_AUDIO_RX",
  5091. "INT0_MI2S_RX", "INT4_MI2S_RX", "INT3_MI2S_TX", "DISPLAY_PORT",
  5092. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_RX_1",
  5093. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_2",
  5094. "SLIM_7_RX", "RX_CDC_DMA_RX_0", "RX_CDC_DMA_RX_1", "RX_CDC_DMA_RX_2",
  5095. "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_0", "TERT_TDM_RX_2", "SEC_TDM_TX_0",
  5096. "DISPLAY_PORT1", "SEN_MI2S_RX", "QUIN_TDM_TX_0",
  5097. };
  5098. static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
  5099. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rx), ec_ref_rx),
  5100. };
  5101. static const struct snd_kcontrol_new ec_ref_param_controls[] = {
  5102. SOC_ENUM_EXT("EC Reference Channels", msm_route_ec_ref_params_enum[0],
  5103. msm_ec_ref_ch_get, msm_ec_ref_ch_put),
  5104. SOC_ENUM_EXT("EC Reference Bit Format", msm_route_ec_ref_params_enum[1],
  5105. msm_ec_ref_bit_format_get, msm_ec_ref_bit_format_put),
  5106. SOC_ENUM_EXT("EC Reference SampleRate", msm_route_ec_ref_params_enum[2],
  5107. msm_ec_ref_rate_get, msm_ec_ref_rate_put),
  5108. SOC_ENUM_EXT("EC Reference Downmixed Channels",
  5109. msm_route_ec_ref_params_enum[0],
  5110. msm_ec_ref_ch_downmixed_get, msm_ec_ref_ch_downmixed_put),
  5111. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch1", SND_SOC_NOPM,
  5112. 0, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5113. msm_ec_ref_chmixer_weights_put),
  5114. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch2", SND_SOC_NOPM,
  5115. 1, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5116. msm_ec_ref_chmixer_weights_put),
  5117. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch3", SND_SOC_NOPM,
  5118. 2, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5119. msm_ec_ref_chmixer_weights_put),
  5120. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch4", SND_SOC_NOPM,
  5121. 3, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5122. msm_ec_ref_chmixer_weights_put),
  5123. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch5", SND_SOC_NOPM,
  5124. 4, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5125. msm_ec_ref_chmixer_weights_put),
  5126. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch6", SND_SOC_NOPM,
  5127. 5, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5128. msm_ec_ref_chmixer_weights_put),
  5129. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch7", SND_SOC_NOPM,
  5130. 6, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5131. msm_ec_ref_chmixer_weights_put),
  5132. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch8", SND_SOC_NOPM,
  5133. 7, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5134. msm_ec_ref_chmixer_weights_put),
  5135. SOC_ENUM_EXT("AFE_LOOPBACK_TX Port", msm_route_ec_ref_rx_enum[0],
  5136. msm_routing_afe_lb_tx_port_get, msm_routing_afe_lb_tx_port_put),
  5137. };
  5138. static int msm_routing_ec_ref_rx_get(struct snd_kcontrol *kcontrol,
  5139. struct snd_ctl_elem_value *ucontrol)
  5140. {
  5141. pr_debug("%s: ec_ref_rx = %d", __func__, msm_route_ec_ref_rx);
  5142. mutex_lock(&routing_lock);
  5143. ucontrol->value.integer.value[0] = msm_route_ec_ref_rx;
  5144. mutex_unlock(&routing_lock);
  5145. return 0;
  5146. }
  5147. static int msm_routing_ec_ref_rx_put(struct snd_kcontrol *kcontrol,
  5148. struct snd_ctl_elem_value *ucontrol)
  5149. {
  5150. int value = ucontrol->value.integer.value[0];
  5151. struct snd_soc_dapm_widget *widget =
  5152. snd_soc_dapm_kcontrol_widget(kcontrol);
  5153. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  5154. struct snd_soc_dapm_update *update = NULL;
  5155. mutex_lock(&routing_lock);
  5156. msm_ec_ref_port_id = get_ec_ref_port_id(value, &msm_route_ec_ref_rx);
  5157. adm_ec_ref_rx_id(msm_ec_ref_port_id);
  5158. pr_debug("%s: msm_route_ec_ref_rx = %d\n",
  5159. __func__, msm_route_ec_ref_rx);
  5160. mutex_unlock(&routing_lock);
  5161. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol,
  5162. msm_route_ec_ref_rx, e, update);
  5163. return 0;
  5164. }
  5165. static const struct snd_kcontrol_new ext_ec_ref_mux_ul1 =
  5166. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL1 MUX Mux",
  5167. msm_route_ec_ref_rx_enum[0],
  5168. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5169. static const struct snd_kcontrol_new ext_ec_ref_mux_ul2 =
  5170. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL2 MUX Mux",
  5171. msm_route_ec_ref_rx_enum[0],
  5172. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5173. static const struct snd_kcontrol_new ext_ec_ref_mux_ul3 =
  5174. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL3 MUX Mux",
  5175. msm_route_ec_ref_rx_enum[0],
  5176. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5177. static const struct snd_kcontrol_new ext_ec_ref_mux_ul4 =
  5178. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL4 MUX Mux",
  5179. msm_route_ec_ref_rx_enum[0],
  5180. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5181. static const struct snd_kcontrol_new ext_ec_ref_mux_ul5 =
  5182. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL5 MUX Mux",
  5183. msm_route_ec_ref_rx_enum[0],
  5184. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5185. static const struct snd_kcontrol_new ext_ec_ref_mux_ul6 =
  5186. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL6 MUX Mux",
  5187. msm_route_ec_ref_rx_enum[0],
  5188. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5189. static const struct snd_kcontrol_new ext_ec_ref_mux_ul8 =
  5190. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL8 MUX Mux",
  5191. msm_route_ec_ref_rx_enum[0],
  5192. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5193. static const struct snd_kcontrol_new ext_ec_ref_mux_ul9 =
  5194. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL9 MUX Mux",
  5195. msm_route_ec_ref_rx_enum[0],
  5196. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5197. static const struct snd_kcontrol_new ext_ec_ref_mux_ul16 =
  5198. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL16 MUX Mux",
  5199. msm_route_ec_ref_rx_enum[0],
  5200. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5201. static const struct snd_kcontrol_new ext_ec_ref_mux_ul10 =
  5202. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL10 MUX Mux",
  5203. msm_route_ec_ref_rx_enum[0],
  5204. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5205. static const struct snd_kcontrol_new ext_ec_ref_mux_ul17 =
  5206. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL17 MUX Mux",
  5207. msm_route_ec_ref_rx_enum[0],
  5208. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5209. static const struct snd_kcontrol_new ext_ec_ref_mux_ul18 =
  5210. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL18 MUX Mux",
  5211. msm_route_ec_ref_rx_enum[0],
  5212. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5213. static const struct snd_kcontrol_new ext_ec_ref_mux_ul19 =
  5214. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL19 MUX Mux",
  5215. msm_route_ec_ref_rx_enum[0],
  5216. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5217. static const struct snd_kcontrol_new ext_ec_ref_mux_ul28 =
  5218. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL28 MUX Mux",
  5219. msm_route_ec_ref_rx_enum[0],
  5220. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5221. static const struct snd_kcontrol_new ext_ec_ref_mux_ul29 =
  5222. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL29 MUX Mux",
  5223. msm_route_ec_ref_rx_enum[0],
  5224. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5225. static int msm_routing_ext_ec_get(struct snd_kcontrol *kcontrol,
  5226. struct snd_ctl_elem_value *ucontrol)
  5227. {
  5228. pr_debug("%s: ext_ec_ref_rx = %x\n", __func__, msm_route_ext_ec_ref);
  5229. mutex_lock(&routing_lock);
  5230. ucontrol->value.integer.value[0] = msm_route_ext_ec_ref;
  5231. mutex_unlock(&routing_lock);
  5232. return 0;
  5233. }
  5234. static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
  5235. struct snd_ctl_elem_value *ucontrol)
  5236. {
  5237. struct snd_soc_dapm_widget *widget =
  5238. snd_soc_dapm_kcontrol_widget(kcontrol);
  5239. int mux = ucontrol->value.enumerated.item[0];
  5240. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  5241. int ret = 1;
  5242. bool state = true;
  5243. uint16_t ext_ec_ref_port_id;
  5244. struct snd_soc_dapm_update *update = NULL;
  5245. if (mux >= e->items) {
  5246. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  5247. return -EINVAL;
  5248. }
  5249. mutex_lock(&routing_lock);
  5250. msm_route_ext_ec_ref = ucontrol->value.integer.value[0];
  5251. switch (msm_route_ext_ec_ref) {
  5252. case EXT_EC_REF_PRI_MI2S_TX:
  5253. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  5254. break;
  5255. case EXT_EC_REF_SEC_MI2S_TX:
  5256. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  5257. break;
  5258. case EXT_EC_REF_TERT_MI2S_TX:
  5259. ext_ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  5260. break;
  5261. case EXT_EC_REF_QUAT_MI2S_TX:
  5262. ext_ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  5263. break;
  5264. case EXT_EC_REF_QUIN_MI2S_TX:
  5265. ext_ec_ref_port_id = AFE_PORT_ID_QUINARY_MI2S_TX;
  5266. break;
  5267. case EXT_EC_REF_SLIM_1_TX:
  5268. ext_ec_ref_port_id = SLIMBUS_1_TX;
  5269. break;
  5270. case EXT_EC_REF_PRI_TDM_TX:
  5271. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_TDM_TX;
  5272. break;
  5273. case EXT_EC_REF_SEC_TDM_TX:
  5274. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  5275. break;
  5276. case EXT_EC_REF_NONE:
  5277. default:
  5278. ext_ec_ref_port_id = AFE_PORT_INVALID;
  5279. state = false;
  5280. break;
  5281. }
  5282. pr_debug("%s: val = %d ext_ec_ref_port_id = 0x%0x state = %d\n",
  5283. __func__, msm_route_ext_ec_ref, ext_ec_ref_port_id, state);
  5284. if (!voc_set_ext_ec_ref_port_id(ext_ec_ref_port_id, state)) {
  5285. mutex_unlock(&routing_lock);
  5286. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e,
  5287. update);
  5288. } else {
  5289. ret = -EINVAL;
  5290. mutex_unlock(&routing_lock);
  5291. }
  5292. return ret;
  5293. }
  5294. static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
  5295. "SEC_MI2S_TX", "TERT_MI2S_TX",
  5296. "QUAT_MI2S_TX", "QUIN_MI2S_TX",
  5297. "SLIM_1_TX", "PRI_TDM_TX",
  5298. "SEC_TDM_TX"};
  5299. static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
  5300. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ext_ec_ref_rx), ext_ec_ref_rx),
  5301. };
  5302. static const struct snd_kcontrol_new voc_ext_ec_mux =
  5303. SOC_DAPM_ENUM_EXT("VOC_EXT_EC MUX Mux", msm_route_ext_ec_ref_rx_enum[0],
  5304. msm_routing_ext_ec_get, msm_routing_ext_ec_put);
  5305. static const struct snd_kcontrol_new pri_i2s_rx_mixer_controls[] = {
  5306. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5307. MSM_BACKEND_DAI_PRI_I2S_RX,
  5308. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5309. msm_routing_put_audio_mixer),
  5310. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5311. MSM_BACKEND_DAI_PRI_I2S_RX,
  5312. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5313. msm_routing_put_audio_mixer),
  5314. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5315. MSM_BACKEND_DAI_PRI_I2S_RX,
  5316. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5317. msm_routing_put_audio_mixer),
  5318. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5319. MSM_BACKEND_DAI_PRI_I2S_RX,
  5320. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5321. msm_routing_put_audio_mixer),
  5322. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5323. MSM_BACKEND_DAI_PRI_I2S_RX,
  5324. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5325. msm_routing_put_audio_mixer),
  5326. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5327. MSM_BACKEND_DAI_PRI_I2S_RX,
  5328. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5329. msm_routing_put_audio_mixer),
  5330. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5331. MSM_BACKEND_DAI_PRI_I2S_RX,
  5332. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5333. msm_routing_put_audio_mixer),
  5334. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5335. MSM_BACKEND_DAI_PRI_I2S_RX,
  5336. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5337. msm_routing_put_audio_mixer),
  5338. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5339. MSM_BACKEND_DAI_PRI_I2S_RX,
  5340. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5341. msm_routing_put_audio_mixer),
  5342. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5343. MSM_BACKEND_DAI_PRI_I2S_RX,
  5344. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5345. msm_routing_put_audio_mixer),
  5346. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5347. MSM_BACKEND_DAI_PRI_I2S_RX,
  5348. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5349. msm_routing_put_audio_mixer),
  5350. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5351. MSM_BACKEND_DAI_PRI_I2S_RX,
  5352. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5353. msm_routing_put_audio_mixer),
  5354. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5355. MSM_BACKEND_DAI_PRI_I2S_RX,
  5356. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5357. msm_routing_put_audio_mixer),
  5358. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5359. MSM_BACKEND_DAI_PRI_I2S_RX,
  5360. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5361. msm_routing_put_audio_mixer),
  5362. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5363. MSM_BACKEND_DAI_PRI_I2S_RX,
  5364. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5365. msm_routing_put_audio_mixer),
  5366. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5367. MSM_BACKEND_DAI_PRI_I2S_RX,
  5368. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5369. msm_routing_put_audio_mixer),
  5370. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5371. MSM_BACKEND_DAI_PRI_I2S_RX,
  5372. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5373. msm_routing_put_audio_mixer),
  5374. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5375. MSM_BACKEND_DAI_PRI_I2S_RX,
  5376. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5377. msm_routing_put_audio_mixer),
  5378. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5379. MSM_BACKEND_DAI_PRI_I2S_RX,
  5380. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5381. msm_routing_put_audio_mixer),
  5382. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5383. MSM_BACKEND_DAI_PRI_I2S_RX,
  5384. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5385. msm_routing_put_audio_mixer),
  5386. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5387. MSM_BACKEND_DAI_PRI_I2S_RX,
  5388. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5389. msm_routing_put_audio_mixer),
  5390. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5391. MSM_BACKEND_DAI_PRI_I2S_RX,
  5392. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5393. msm_routing_put_audio_mixer),
  5394. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5395. MSM_BACKEND_DAI_PRI_I2S_RX,
  5396. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5397. msm_routing_put_audio_mixer),
  5398. };
  5399. static const struct snd_kcontrol_new sec_i2s_rx_mixer_controls[] = {
  5400. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5401. MSM_BACKEND_DAI_SEC_I2S_RX,
  5402. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5403. msm_routing_put_audio_mixer),
  5404. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5405. MSM_BACKEND_DAI_SEC_I2S_RX,
  5406. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5407. msm_routing_put_audio_mixer),
  5408. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5409. MSM_BACKEND_DAI_SEC_I2S_RX,
  5410. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5411. msm_routing_put_audio_mixer),
  5412. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5413. MSM_BACKEND_DAI_SEC_I2S_RX,
  5414. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5415. msm_routing_put_audio_mixer),
  5416. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5417. MSM_BACKEND_DAI_SEC_I2S_RX,
  5418. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5419. msm_routing_put_audio_mixer),
  5420. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5421. MSM_BACKEND_DAI_SEC_I2S_RX,
  5422. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5423. msm_routing_put_audio_mixer),
  5424. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5425. MSM_BACKEND_DAI_SEC_I2S_RX,
  5426. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5427. msm_routing_put_audio_mixer),
  5428. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5429. MSM_BACKEND_DAI_SEC_I2S_RX,
  5430. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5431. msm_routing_put_audio_mixer),
  5432. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5433. MSM_BACKEND_DAI_SEC_I2S_RX,
  5434. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5435. msm_routing_put_audio_mixer),
  5436. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5437. MSM_BACKEND_DAI_SEC_I2S_RX,
  5438. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5439. msm_routing_put_audio_mixer),
  5440. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5441. MSM_BACKEND_DAI_SEC_I2S_RX,
  5442. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5443. msm_routing_put_audio_mixer),
  5444. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5445. MSM_BACKEND_DAI_SEC_I2S_RX,
  5446. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5447. msm_routing_put_audio_mixer),
  5448. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5449. MSM_BACKEND_DAI_SEC_I2S_RX,
  5450. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5451. msm_routing_put_audio_mixer),
  5452. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5453. MSM_BACKEND_DAI_SEC_I2S_RX,
  5454. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5455. msm_routing_put_audio_mixer),
  5456. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5457. MSM_BACKEND_DAI_SEC_I2S_RX,
  5458. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5459. msm_routing_put_audio_mixer),
  5460. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5461. MSM_BACKEND_DAI_SEC_I2S_RX,
  5462. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5463. msm_routing_put_audio_mixer),
  5464. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5465. MSM_BACKEND_DAI_SEC_I2S_RX,
  5466. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5467. msm_routing_put_audio_mixer),
  5468. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5469. MSM_BACKEND_DAI_SEC_I2S_RX,
  5470. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5471. msm_routing_put_audio_mixer),
  5472. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5473. MSM_BACKEND_DAI_SEC_I2S_RX,
  5474. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5475. msm_routing_put_audio_mixer),
  5476. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5477. MSM_BACKEND_DAI_SEC_I2S_RX,
  5478. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5479. msm_routing_put_audio_mixer),
  5480. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5481. MSM_BACKEND_DAI_SEC_I2S_RX,
  5482. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5483. msm_routing_put_audio_mixer),
  5484. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5485. MSM_BACKEND_DAI_SEC_I2S_RX,
  5486. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5487. msm_routing_put_audio_mixer),
  5488. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5489. MSM_BACKEND_DAI_SEC_I2S_RX,
  5490. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5491. msm_routing_put_audio_mixer),
  5492. };
  5493. static const struct snd_kcontrol_new pri_spdif_rx_mixer_controls[] = {
  5494. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5495. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5496. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5497. msm_routing_put_audio_mixer),
  5498. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5499. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5500. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5501. msm_routing_put_audio_mixer),
  5502. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5503. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5504. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5505. msm_routing_put_audio_mixer),
  5506. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5507. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5508. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5509. msm_routing_put_audio_mixer),
  5510. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5511. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5512. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5513. msm_routing_put_audio_mixer),
  5514. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5515. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5516. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5517. msm_routing_put_audio_mixer),
  5518. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5519. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5520. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5521. msm_routing_put_audio_mixer),
  5522. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5523. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5524. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5525. msm_routing_put_audio_mixer),
  5526. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5527. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5528. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5529. msm_routing_put_audio_mixer),
  5530. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5531. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5532. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5533. msm_routing_put_audio_mixer),
  5534. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5535. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5536. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5537. msm_routing_put_audio_mixer),
  5538. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5539. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5540. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5541. msm_routing_put_audio_mixer),
  5542. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5543. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5544. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5545. msm_routing_put_audio_mixer),
  5546. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5547. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5548. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5549. msm_routing_put_audio_mixer),
  5550. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5551. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5552. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5553. msm_routing_put_audio_mixer),
  5554. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5555. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5556. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5557. msm_routing_put_audio_mixer),
  5558. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5559. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5560. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5561. msm_routing_put_audio_mixer),
  5562. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5563. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5564. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5565. msm_routing_put_audio_mixer),
  5566. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5567. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5568. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5569. msm_routing_put_audio_mixer),
  5570. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5571. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5572. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5573. msm_routing_put_audio_mixer),
  5574. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5575. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5576. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5577. msm_routing_put_audio_mixer),
  5578. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5579. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5580. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5581. msm_routing_put_audio_mixer),
  5582. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5583. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5584. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5585. msm_routing_put_audio_mixer),
  5586. };
  5587. static const struct snd_kcontrol_new sec_spdif_rx_mixer_controls[] = {
  5588. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5589. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5590. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5591. msm_routing_put_audio_mixer),
  5592. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5593. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5594. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5595. msm_routing_put_audio_mixer),
  5596. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5597. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5598. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5599. msm_routing_put_audio_mixer),
  5600. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5601. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5602. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5603. msm_routing_put_audio_mixer),
  5604. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5605. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5606. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5607. msm_routing_put_audio_mixer),
  5608. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5609. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5610. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5611. msm_routing_put_audio_mixer),
  5612. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5613. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5614. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5615. msm_routing_put_audio_mixer),
  5616. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5617. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5618. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5619. msm_routing_put_audio_mixer),
  5620. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5621. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5622. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5623. msm_routing_put_audio_mixer),
  5624. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5625. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5626. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5627. msm_routing_put_audio_mixer),
  5628. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5629. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5630. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5631. msm_routing_put_audio_mixer),
  5632. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5633. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5634. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5635. msm_routing_put_audio_mixer),
  5636. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5637. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5638. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5639. msm_routing_put_audio_mixer),
  5640. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5641. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5642. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5643. msm_routing_put_audio_mixer),
  5644. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5645. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5646. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5647. msm_routing_put_audio_mixer),
  5648. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5649. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5650. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5651. msm_routing_put_audio_mixer),
  5652. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5653. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5654. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5655. msm_routing_put_audio_mixer),
  5656. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5657. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5658. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5659. msm_routing_put_audio_mixer),
  5660. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5661. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5662. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5663. msm_routing_put_audio_mixer),
  5664. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5665. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5666. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5667. msm_routing_put_audio_mixer),
  5668. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5669. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5670. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5671. msm_routing_put_audio_mixer),
  5672. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5673. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5674. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5675. msm_routing_put_audio_mixer),
  5676. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5677. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5678. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5679. msm_routing_put_audio_mixer),
  5680. };
  5681. static const struct snd_kcontrol_new slimbus_2_rx_mixer_controls[] = {
  5682. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5683. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5684. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5685. msm_routing_put_audio_mixer),
  5686. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5687. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5688. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5689. msm_routing_put_audio_mixer),
  5690. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5691. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5692. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5693. msm_routing_put_audio_mixer),
  5694. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5695. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5696. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5697. msm_routing_put_audio_mixer),
  5698. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5699. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5700. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5701. msm_routing_put_audio_mixer),
  5702. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5703. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5704. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5705. msm_routing_put_audio_mixer),
  5706. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5707. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5708. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5709. msm_routing_put_audio_mixer),
  5710. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5711. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5712. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5713. msm_routing_put_audio_mixer),
  5714. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5715. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5716. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5717. msm_routing_put_audio_mixer),
  5718. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5719. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5720. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5721. msm_routing_put_audio_mixer),
  5722. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5723. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5724. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5725. msm_routing_put_audio_mixer),
  5726. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5727. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5728. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5729. msm_routing_put_audio_mixer),
  5730. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5731. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5732. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5733. msm_routing_put_audio_mixer),
  5734. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5735. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5736. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5737. msm_routing_put_audio_mixer),
  5738. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5739. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5740. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5741. msm_routing_put_audio_mixer),
  5742. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5743. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5744. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5745. msm_routing_put_audio_mixer),
  5746. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5747. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5748. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5749. msm_routing_put_audio_mixer),
  5750. };
  5751. static const struct snd_kcontrol_new slimbus_5_rx_mixer_controls[] = {
  5752. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5753. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5754. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5755. msm_routing_put_audio_mixer),
  5756. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5757. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5758. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5759. msm_routing_put_audio_mixer),
  5760. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5761. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5762. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5763. msm_routing_put_audio_mixer),
  5764. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5765. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5766. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5767. msm_routing_put_audio_mixer),
  5768. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5769. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5770. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5771. msm_routing_put_audio_mixer),
  5772. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5773. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5774. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5775. msm_routing_put_audio_mixer),
  5776. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5777. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5778. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5779. msm_routing_put_audio_mixer),
  5780. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5781. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5782. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5783. msm_routing_put_audio_mixer),
  5784. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5785. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5786. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5787. msm_routing_put_audio_mixer),
  5788. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5789. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5790. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5791. msm_routing_put_audio_mixer),
  5792. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5793. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5794. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5795. msm_routing_put_audio_mixer),
  5796. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5797. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5798. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5799. msm_routing_put_audio_mixer),
  5800. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5801. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5802. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5803. msm_routing_put_audio_mixer),
  5804. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5805. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5806. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5807. msm_routing_put_audio_mixer),
  5808. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5809. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5810. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5811. msm_routing_put_audio_mixer),
  5812. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5813. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5814. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5815. msm_routing_put_audio_mixer),
  5816. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5817. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5818. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5819. msm_routing_put_audio_mixer),
  5820. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5821. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5822. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5823. msm_routing_put_audio_mixer),
  5824. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5825. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5826. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5827. msm_routing_put_audio_mixer),
  5828. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5829. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5830. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5831. msm_routing_put_audio_mixer),
  5832. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5833. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5834. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5835. msm_routing_put_audio_mixer),
  5836. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5837. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5838. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5839. msm_routing_put_audio_mixer),
  5840. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5841. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5842. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5843. msm_routing_put_audio_mixer),
  5844. };
  5845. static const struct snd_kcontrol_new slimbus_rx_mixer_controls[] = {
  5846. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5847. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5848. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5849. msm_routing_put_audio_mixer),
  5850. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5851. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5852. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5853. msm_routing_put_audio_mixer),
  5854. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5855. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5856. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5857. msm_routing_put_audio_mixer),
  5858. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5859. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5860. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5861. msm_routing_put_audio_mixer),
  5862. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5863. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5864. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5865. msm_routing_put_audio_mixer),
  5866. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5867. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5868. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5869. msm_routing_put_audio_mixer),
  5870. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5871. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5872. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5873. msm_routing_put_audio_mixer),
  5874. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5875. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5876. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5877. msm_routing_put_audio_mixer),
  5878. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5879. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5880. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5881. msm_routing_put_audio_mixer),
  5882. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5883. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5884. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5885. msm_routing_put_audio_mixer),
  5886. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5887. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5888. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5889. msm_routing_put_audio_mixer),
  5890. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5891. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5892. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5893. msm_routing_put_audio_mixer),
  5894. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5895. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5896. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5897. msm_routing_put_audio_mixer),
  5898. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5899. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5900. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5901. msm_routing_put_audio_mixer),
  5902. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5903. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5904. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5905. msm_routing_put_audio_mixer),
  5906. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5907. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5908. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5909. msm_routing_put_audio_mixer),
  5910. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5911. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5912. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5913. msm_routing_put_audio_mixer),
  5914. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5915. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5916. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5917. msm_routing_put_audio_mixer),
  5918. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5919. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5920. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5921. msm_routing_put_audio_mixer),
  5922. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5923. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5924. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5925. msm_routing_put_audio_mixer),
  5926. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5927. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5928. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5929. msm_routing_put_audio_mixer),
  5930. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5931. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5932. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5933. msm_routing_put_audio_mixer),
  5934. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5935. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5936. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5937. msm_routing_put_audio_mixer),
  5938. };
  5939. static const struct snd_kcontrol_new mi2s_rx_mixer_controls[] = {
  5940. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5941. MSM_BACKEND_DAI_MI2S_RX,
  5942. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5943. msm_routing_put_audio_mixer),
  5944. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5945. MSM_BACKEND_DAI_MI2S_RX,
  5946. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5947. msm_routing_put_audio_mixer),
  5948. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5949. MSM_BACKEND_DAI_MI2S_RX,
  5950. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5951. msm_routing_put_audio_mixer),
  5952. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5953. MSM_BACKEND_DAI_MI2S_RX,
  5954. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5955. msm_routing_put_audio_mixer),
  5956. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5957. MSM_BACKEND_DAI_MI2S_RX,
  5958. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5959. msm_routing_put_audio_mixer),
  5960. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5961. MSM_BACKEND_DAI_MI2S_RX,
  5962. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5963. msm_routing_put_audio_mixer),
  5964. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5965. MSM_BACKEND_DAI_MI2S_RX,
  5966. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5967. msm_routing_put_audio_mixer),
  5968. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5969. MSM_BACKEND_DAI_MI2S_RX,
  5970. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5971. msm_routing_put_audio_mixer),
  5972. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5973. MSM_BACKEND_DAI_MI2S_RX,
  5974. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5975. msm_routing_put_audio_mixer),
  5976. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5977. MSM_BACKEND_DAI_MI2S_RX,
  5978. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5979. msm_routing_put_audio_mixer),
  5980. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5981. MSM_BACKEND_DAI_MI2S_RX,
  5982. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5983. msm_routing_put_audio_mixer),
  5984. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5985. MSM_BACKEND_DAI_MI2S_RX,
  5986. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5987. msm_routing_put_audio_mixer),
  5988. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5989. MSM_BACKEND_DAI_MI2S_RX,
  5990. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5991. msm_routing_put_audio_mixer),
  5992. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5993. MSM_BACKEND_DAI_MI2S_RX,
  5994. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5995. msm_routing_put_audio_mixer),
  5996. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5997. MSM_BACKEND_DAI_MI2S_RX,
  5998. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5999. msm_routing_put_audio_mixer),
  6000. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6001. MSM_BACKEND_DAI_MI2S_RX,
  6002. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6003. msm_routing_put_audio_mixer),
  6004. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6005. MSM_BACKEND_DAI_MI2S_RX,
  6006. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6007. msm_routing_put_audio_mixer),
  6008. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6009. MSM_BACKEND_DAI_MI2S_RX,
  6010. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6011. msm_routing_put_audio_mixer),
  6012. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6013. MSM_BACKEND_DAI_MI2S_RX,
  6014. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6015. msm_routing_put_audio_mixer),
  6016. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6017. MSM_BACKEND_DAI_MI2S_RX,
  6018. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6019. msm_routing_put_audio_mixer),
  6020. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6021. MSM_BACKEND_DAI_MI2S_RX,
  6022. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6023. msm_routing_put_audio_mixer),
  6024. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6025. MSM_BACKEND_DAI_MI2S_RX,
  6026. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6027. msm_routing_put_audio_mixer),
  6028. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6029. MSM_BACKEND_DAI_MI2S_RX,
  6030. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6031. msm_routing_put_audio_mixer),
  6032. };
  6033. static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
  6034. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6035. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6036. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6037. msm_routing_put_audio_mixer),
  6038. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6039. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6040. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6041. msm_routing_put_audio_mixer),
  6042. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6043. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6044. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6045. msm_routing_put_audio_mixer),
  6046. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6047. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6048. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6049. msm_routing_put_audio_mixer),
  6050. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6051. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6052. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6053. msm_routing_put_audio_mixer),
  6054. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6055. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6056. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6057. msm_routing_put_audio_mixer),
  6058. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6059. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6060. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6061. msm_routing_put_audio_mixer),
  6062. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6063. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6064. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6065. msm_routing_put_audio_mixer),
  6066. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6067. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6068. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6069. msm_routing_put_audio_mixer),
  6070. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6071. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6072. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6073. msm_routing_put_audio_mixer),
  6074. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6075. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6076. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6077. msm_routing_put_audio_mixer),
  6078. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6079. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6080. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6081. msm_routing_put_audio_mixer),
  6082. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6083. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6084. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6085. msm_routing_put_audio_mixer),
  6086. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6087. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6088. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6089. msm_routing_put_audio_mixer),
  6090. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6091. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6092. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6093. msm_routing_put_audio_mixer),
  6094. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6095. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6096. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6097. msm_routing_put_audio_mixer),
  6098. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6099. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6100. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6101. msm_routing_put_audio_mixer),
  6102. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6103. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6104. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6105. msm_routing_put_audio_mixer),
  6106. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6107. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6108. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6109. msm_routing_put_audio_mixer),
  6110. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  6111. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6112. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  6113. msm_routing_put_audio_mixer),
  6114. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6115. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6116. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6117. msm_routing_put_audio_mixer),
  6118. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6119. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6120. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6121. msm_routing_put_audio_mixer),
  6122. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6123. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6124. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6125. msm_routing_put_audio_mixer),
  6126. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6127. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6128. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6129. msm_routing_put_audio_mixer),
  6130. };
  6131. static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
  6132. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6133. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6134. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6135. msm_routing_put_audio_mixer),
  6136. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6137. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6138. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6139. msm_routing_put_audio_mixer),
  6140. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6141. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6142. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6143. msm_routing_put_audio_mixer),
  6144. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6145. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6146. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6147. msm_routing_put_audio_mixer),
  6148. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6149. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6150. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6151. msm_routing_put_audio_mixer),
  6152. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6153. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6154. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6155. msm_routing_put_audio_mixer),
  6156. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6157. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6158. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6159. msm_routing_put_audio_mixer),
  6160. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6161. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6162. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6163. msm_routing_put_audio_mixer),
  6164. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6165. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6166. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6167. msm_routing_put_audio_mixer),
  6168. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6169. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6170. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6171. msm_routing_put_audio_mixer),
  6172. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6173. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6174. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6175. msm_routing_put_audio_mixer),
  6176. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6177. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6178. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6179. msm_routing_put_audio_mixer),
  6180. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6181. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6182. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6183. msm_routing_put_audio_mixer),
  6184. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6185. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6186. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6187. msm_routing_put_audio_mixer),
  6188. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6189. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6190. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6191. msm_routing_put_audio_mixer),
  6192. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6193. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6194. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6195. msm_routing_put_audio_mixer),
  6196. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6197. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6198. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6199. msm_routing_put_audio_mixer),
  6200. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6201. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6202. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6203. msm_routing_put_audio_mixer),
  6204. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6205. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6206. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6207. msm_routing_put_audio_mixer),
  6208. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6209. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6210. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6211. msm_routing_put_audio_mixer),
  6212. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6213. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6214. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6215. msm_routing_put_audio_mixer),
  6216. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6217. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6218. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6219. msm_routing_put_audio_mixer),
  6220. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6221. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6222. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6223. msm_routing_put_audio_mixer),
  6224. };
  6225. static const struct snd_kcontrol_new senary_mi2s_rx_mixer_controls[] = {
  6226. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6227. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6228. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6229. msm_routing_put_audio_mixer),
  6230. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6231. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6232. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6233. msm_routing_put_audio_mixer),
  6234. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6235. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6236. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6237. msm_routing_put_audio_mixer),
  6238. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6239. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6240. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6241. msm_routing_put_audio_mixer),
  6242. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6243. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6244. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6245. msm_routing_put_audio_mixer),
  6246. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6247. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6248. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6249. msm_routing_put_audio_mixer),
  6250. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6251. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6252. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6253. msm_routing_put_audio_mixer),
  6254. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6255. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6256. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6257. msm_routing_put_audio_mixer),
  6258. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6259. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6260. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6261. msm_routing_put_audio_mixer),
  6262. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6263. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6264. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6265. msm_routing_put_audio_mixer),
  6266. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6267. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6268. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6269. msm_routing_put_audio_mixer),
  6270. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6271. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6272. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6273. msm_routing_put_audio_mixer),
  6274. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6275. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6276. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6277. msm_routing_put_audio_mixer),
  6278. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6279. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6280. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6281. msm_routing_put_audio_mixer),
  6282. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6283. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6284. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6285. msm_routing_put_audio_mixer),
  6286. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6287. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6288. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6289. msm_routing_put_audio_mixer),
  6290. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6291. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6292. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6293. msm_routing_put_audio_mixer),
  6294. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6295. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6296. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6297. msm_routing_put_audio_mixer),
  6298. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6299. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6300. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6301. msm_routing_put_audio_mixer),
  6302. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6303. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6304. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6305. msm_routing_put_audio_mixer),
  6306. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6307. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6308. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6309. msm_routing_put_audio_mixer),
  6310. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6311. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6312. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6313. msm_routing_put_audio_mixer),
  6314. };
  6315. static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
  6316. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6317. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6318. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6319. msm_routing_put_audio_mixer),
  6320. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6321. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6322. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6323. msm_routing_put_audio_mixer),
  6324. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6325. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6326. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6327. msm_routing_put_audio_mixer),
  6328. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6329. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6330. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6331. msm_routing_put_audio_mixer),
  6332. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6333. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6334. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6335. msm_routing_put_audio_mixer),
  6336. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6337. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6338. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6339. msm_routing_put_audio_mixer),
  6340. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6341. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6342. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6343. msm_routing_put_audio_mixer),
  6344. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6345. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6346. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6347. msm_routing_put_audio_mixer),
  6348. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6349. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6350. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6351. msm_routing_put_audio_mixer),
  6352. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6353. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6354. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6355. msm_routing_put_audio_mixer),
  6356. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6357. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6358. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6359. msm_routing_put_audio_mixer),
  6360. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6361. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6362. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6363. msm_routing_put_audio_mixer),
  6364. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6365. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6366. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6367. msm_routing_put_audio_mixer),
  6368. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6369. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6370. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6371. msm_routing_put_audio_mixer),
  6372. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6373. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6374. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6375. msm_routing_put_audio_mixer),
  6376. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6377. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6378. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6379. msm_routing_put_audio_mixer),
  6380. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6381. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6382. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6383. msm_routing_put_audio_mixer),
  6384. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6385. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6386. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6387. msm_routing_put_audio_mixer),
  6388. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6389. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6390. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6391. msm_routing_put_audio_mixer),
  6392. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6393. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6394. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6395. msm_routing_put_audio_mixer),
  6396. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6397. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6398. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6399. msm_routing_put_audio_mixer),
  6400. };
  6401. static const struct snd_kcontrol_new secondary_mi2s_rx2_mixer_controls[] = {
  6402. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6403. MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
  6404. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6405. msm_routing_put_audio_mixer),
  6406. };
  6407. static const struct snd_kcontrol_new secondary_mi2s_rx_mixer_controls[] = {
  6408. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6409. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6410. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6411. msm_routing_put_audio_mixer),
  6412. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6413. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6414. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6415. msm_routing_put_audio_mixer),
  6416. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6417. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6418. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6419. msm_routing_put_audio_mixer),
  6420. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6421. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6422. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6423. msm_routing_put_audio_mixer),
  6424. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6425. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6426. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6427. msm_routing_put_audio_mixer),
  6428. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6429. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6430. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6431. msm_routing_put_audio_mixer),
  6432. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6433. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6434. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6435. msm_routing_put_audio_mixer),
  6436. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6437. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6438. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6439. msm_routing_put_audio_mixer),
  6440. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6441. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6442. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6443. msm_routing_put_audio_mixer),
  6444. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6445. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6446. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6447. msm_routing_put_audio_mixer),
  6448. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6449. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6450. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6451. msm_routing_put_audio_mixer),
  6452. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6453. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6454. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6455. msm_routing_put_audio_mixer),
  6456. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6457. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6458. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6459. msm_routing_put_audio_mixer),
  6460. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6461. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6462. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6463. msm_routing_put_audio_mixer),
  6464. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6465. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6466. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6467. msm_routing_put_audio_mixer),
  6468. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6469. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6470. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6471. msm_routing_put_audio_mixer),
  6472. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6473. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6474. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6475. msm_routing_put_audio_mixer),
  6476. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6477. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6478. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6479. msm_routing_put_audio_mixer),
  6480. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6481. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6482. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6483. msm_routing_put_audio_mixer),
  6484. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6485. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6486. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6487. msm_routing_put_audio_mixer),
  6488. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6489. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6490. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6491. msm_routing_put_audio_mixer),
  6492. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6493. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6494. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6495. msm_routing_put_audio_mixer),
  6496. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6497. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6498. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6499. msm_routing_put_audio_mixer),
  6500. };
  6501. static const struct snd_kcontrol_new primary_mi2s_rx_mixer_controls[] = {
  6502. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6503. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6504. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6505. msm_routing_put_audio_mixer),
  6506. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6507. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6508. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6509. msm_routing_put_audio_mixer),
  6510. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6511. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6512. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6513. msm_routing_put_audio_mixer),
  6514. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6515. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6516. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6517. msm_routing_put_audio_mixer),
  6518. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6519. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6520. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6521. msm_routing_put_audio_mixer),
  6522. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6523. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6524. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6525. msm_routing_put_audio_mixer),
  6526. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6527. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6528. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6529. msm_routing_put_audio_mixer),
  6530. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6531. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6532. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6533. msm_routing_put_audio_mixer),
  6534. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6535. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6536. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6537. msm_routing_put_audio_mixer),
  6538. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6539. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6540. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6541. msm_routing_put_audio_mixer),
  6542. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6543. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6544. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6545. msm_routing_put_audio_mixer),
  6546. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6547. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6548. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6549. msm_routing_put_audio_mixer),
  6550. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6551. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6552. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6553. msm_routing_put_audio_mixer),
  6554. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6555. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6556. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6557. msm_routing_put_audio_mixer),
  6558. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6559. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6560. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6561. msm_routing_put_audio_mixer),
  6562. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6563. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6564. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6565. msm_routing_put_audio_mixer),
  6566. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6567. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6568. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6569. msm_routing_put_audio_mixer),
  6570. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6571. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6572. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6573. msm_routing_put_audio_mixer),
  6574. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6575. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6576. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6577. msm_routing_put_audio_mixer),
  6578. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6579. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6580. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6581. msm_routing_put_audio_mixer),
  6582. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6583. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6584. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6585. msm_routing_put_audio_mixer),
  6586. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6587. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6588. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6589. msm_routing_put_audio_mixer),
  6590. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6591. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6592. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6593. msm_routing_put_audio_mixer),
  6594. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  6595. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6596. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_audio_mixer,
  6597. msm_routing_put_audio_mixer),
  6598. };
  6599. static const struct snd_kcontrol_new int0_mi2s_rx_mixer_controls[] = {
  6600. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6601. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6602. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6603. msm_routing_put_audio_mixer),
  6604. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6605. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6606. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6607. msm_routing_put_audio_mixer),
  6608. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6609. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6610. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6611. msm_routing_put_audio_mixer),
  6612. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6613. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6614. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6615. msm_routing_put_audio_mixer),
  6616. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6617. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6618. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6619. msm_routing_put_audio_mixer),
  6620. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6621. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6622. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6623. msm_routing_put_audio_mixer),
  6624. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6625. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6626. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6627. msm_routing_put_audio_mixer),
  6628. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6629. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6630. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6631. msm_routing_put_audio_mixer),
  6632. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6633. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6634. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6635. msm_routing_put_audio_mixer),
  6636. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6637. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6638. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6639. msm_routing_put_audio_mixer),
  6640. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6641. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6642. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6643. msm_routing_put_audio_mixer),
  6644. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6645. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6646. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6647. msm_routing_put_audio_mixer),
  6648. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6649. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6650. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6651. msm_routing_put_audio_mixer),
  6652. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6653. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6654. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6655. msm_routing_put_audio_mixer),
  6656. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6657. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6658. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6659. msm_routing_put_audio_mixer),
  6660. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6661. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6662. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6663. msm_routing_put_audio_mixer),
  6664. };
  6665. static const struct snd_kcontrol_new int4_mi2s_rx_mixer_controls[] = {
  6666. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6667. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6668. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6669. msm_routing_put_audio_mixer),
  6670. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6671. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6672. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6673. msm_routing_put_audio_mixer),
  6674. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6675. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6676. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6677. msm_routing_put_audio_mixer),
  6678. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6679. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6680. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6681. msm_routing_put_audio_mixer),
  6682. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6683. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6684. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6685. msm_routing_put_audio_mixer),
  6686. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6687. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6688. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6689. msm_routing_put_audio_mixer),
  6690. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6691. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6692. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6693. msm_routing_put_audio_mixer),
  6694. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6695. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6696. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6697. msm_routing_put_audio_mixer),
  6698. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6699. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6700. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6701. msm_routing_put_audio_mixer),
  6702. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6703. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6704. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6705. msm_routing_put_audio_mixer),
  6706. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6707. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6708. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6709. msm_routing_put_audio_mixer),
  6710. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6711. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6712. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6713. msm_routing_put_audio_mixer),
  6714. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6715. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6716. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6717. msm_routing_put_audio_mixer),
  6718. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6719. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6720. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6721. msm_routing_put_audio_mixer),
  6722. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6723. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6724. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6725. msm_routing_put_audio_mixer),
  6726. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6727. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6728. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6729. msm_routing_put_audio_mixer),
  6730. };
  6731. static const struct snd_kcontrol_new pri_meta_mi2s_rx_mixer_controls[] = {
  6732. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6733. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6734. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6735. msm_routing_put_audio_mixer),
  6736. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6737. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6738. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6739. msm_routing_put_audio_mixer),
  6740. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6741. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6742. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6743. msm_routing_put_audio_mixer),
  6744. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6745. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6746. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6747. msm_routing_put_audio_mixer),
  6748. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6749. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6750. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6751. msm_routing_put_audio_mixer),
  6752. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6753. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6754. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6755. msm_routing_put_audio_mixer),
  6756. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6757. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6758. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6759. msm_routing_put_audio_mixer),
  6760. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6761. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6762. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6763. msm_routing_put_audio_mixer),
  6764. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6765. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6766. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6767. msm_routing_put_audio_mixer),
  6768. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6769. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6770. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6771. msm_routing_put_audio_mixer),
  6772. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6773. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6774. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6775. msm_routing_put_audio_mixer),
  6776. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6777. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6778. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6779. msm_routing_put_audio_mixer),
  6780. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6781. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6782. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6783. msm_routing_put_audio_mixer),
  6784. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6785. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6786. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6787. msm_routing_put_audio_mixer),
  6788. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6789. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6790. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6791. msm_routing_put_audio_mixer),
  6792. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6793. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6794. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6795. msm_routing_put_audio_mixer),
  6796. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6797. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6798. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6799. msm_routing_put_audio_mixer),
  6800. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6801. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6802. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6803. msm_routing_put_audio_mixer),
  6804. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6805. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6806. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6807. msm_routing_put_audio_mixer),
  6808. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6809. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6810. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6811. msm_routing_put_audio_mixer),
  6812. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6813. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6814. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6815. msm_routing_put_audio_mixer),
  6816. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6817. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6818. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6819. msm_routing_put_audio_mixer),
  6820. };
  6821. static const struct snd_kcontrol_new sec_meta_mi2s_rx_mixer_controls[] = {
  6822. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6823. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6824. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6825. msm_routing_put_audio_mixer),
  6826. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6827. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6828. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6829. msm_routing_put_audio_mixer),
  6830. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6831. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6832. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6833. msm_routing_put_audio_mixer),
  6834. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6835. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6836. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6837. msm_routing_put_audio_mixer),
  6838. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6839. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6840. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6841. msm_routing_put_audio_mixer),
  6842. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6843. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6844. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6845. msm_routing_put_audio_mixer),
  6846. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6847. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6848. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6849. msm_routing_put_audio_mixer),
  6850. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6851. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6852. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6853. msm_routing_put_audio_mixer),
  6854. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6855. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6856. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6857. msm_routing_put_audio_mixer),
  6858. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6859. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6860. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6861. msm_routing_put_audio_mixer),
  6862. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6863. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6864. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6865. msm_routing_put_audio_mixer),
  6866. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6867. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6868. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6869. msm_routing_put_audio_mixer),
  6870. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6871. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6872. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6873. msm_routing_put_audio_mixer),
  6874. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6875. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6876. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6877. msm_routing_put_audio_mixer),
  6878. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6879. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6880. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6881. msm_routing_put_audio_mixer),
  6882. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6883. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6884. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6885. msm_routing_put_audio_mixer),
  6886. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6887. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6888. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6889. msm_routing_put_audio_mixer),
  6890. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6891. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6892. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6893. msm_routing_put_audio_mixer),
  6894. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6895. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6896. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6897. msm_routing_put_audio_mixer),
  6898. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6899. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6900. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6901. msm_routing_put_audio_mixer),
  6902. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6903. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6904. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6905. msm_routing_put_audio_mixer),
  6906. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6907. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6908. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6909. msm_routing_put_audio_mixer),
  6910. };
  6911. static const struct snd_kcontrol_new hdmi_mixer_controls[] = {
  6912. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6913. MSM_BACKEND_DAI_HDMI_RX,
  6914. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6915. msm_routing_put_audio_mixer),
  6916. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6917. MSM_BACKEND_DAI_HDMI_RX,
  6918. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6919. msm_routing_put_audio_mixer),
  6920. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6921. MSM_BACKEND_DAI_HDMI_RX,
  6922. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6923. msm_routing_put_audio_mixer),
  6924. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6925. MSM_BACKEND_DAI_HDMI_RX,
  6926. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6927. msm_routing_put_audio_mixer),
  6928. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6929. MSM_BACKEND_DAI_HDMI_RX,
  6930. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6931. msm_routing_put_audio_mixer),
  6932. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6933. MSM_BACKEND_DAI_HDMI_RX,
  6934. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6935. msm_routing_put_audio_mixer),
  6936. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6937. MSM_BACKEND_DAI_HDMI_RX,
  6938. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6939. msm_routing_put_audio_mixer),
  6940. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6941. MSM_BACKEND_DAI_HDMI_RX,
  6942. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6943. msm_routing_put_audio_mixer),
  6944. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6945. MSM_BACKEND_DAI_HDMI_RX,
  6946. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6947. msm_routing_put_audio_mixer),
  6948. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6949. MSM_BACKEND_DAI_HDMI_RX,
  6950. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6951. msm_routing_put_audio_mixer),
  6952. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6953. MSM_BACKEND_DAI_HDMI_RX,
  6954. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6955. msm_routing_put_audio_mixer),
  6956. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6957. MSM_BACKEND_DAI_HDMI_RX,
  6958. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6959. msm_routing_put_audio_mixer),
  6960. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6961. MSM_BACKEND_DAI_HDMI_RX,
  6962. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6963. msm_routing_put_audio_mixer),
  6964. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6965. MSM_BACKEND_DAI_HDMI_RX,
  6966. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6967. msm_routing_put_audio_mixer),
  6968. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6969. MSM_BACKEND_DAI_HDMI_RX,
  6970. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6971. msm_routing_put_audio_mixer),
  6972. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6973. MSM_BACKEND_DAI_HDMI_RX,
  6974. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6975. msm_routing_put_audio_mixer),
  6976. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6977. MSM_BACKEND_DAI_HDMI_RX,
  6978. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6979. msm_routing_put_audio_mixer),
  6980. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6981. MSM_BACKEND_DAI_HDMI_RX,
  6982. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6983. msm_routing_put_audio_mixer),
  6984. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6985. MSM_BACKEND_DAI_HDMI_RX,
  6986. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6987. msm_routing_put_audio_mixer),
  6988. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6989. MSM_BACKEND_DAI_HDMI_RX,
  6990. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6991. msm_routing_put_audio_mixer),
  6992. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6993. MSM_BACKEND_DAI_HDMI_RX,
  6994. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6995. msm_routing_put_audio_mixer),
  6996. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6997. MSM_BACKEND_DAI_HDMI_RX,
  6998. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6999. msm_routing_put_audio_mixer),
  7000. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  7001. MSM_BACKEND_DAI_HDMI_RX,
  7002. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  7003. msm_routing_put_audio_mixer),
  7004. };
  7005. static const struct snd_kcontrol_new display_port_mixer_controls[] = {
  7006. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7007. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7008. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7009. msm_routing_put_audio_mixer),
  7010. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7011. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7012. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7013. msm_routing_put_audio_mixer),
  7014. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7015. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7016. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7017. msm_routing_put_audio_mixer),
  7018. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7019. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7020. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7021. msm_routing_put_audio_mixer),
  7022. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7023. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7024. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7025. msm_routing_put_audio_mixer),
  7026. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7027. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7028. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7029. msm_routing_put_audio_mixer),
  7030. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7031. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7032. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7033. msm_routing_put_audio_mixer),
  7034. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7035. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7036. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7037. msm_routing_put_audio_mixer),
  7038. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7039. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7040. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7041. msm_routing_put_audio_mixer),
  7042. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7043. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7044. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7045. msm_routing_put_audio_mixer),
  7046. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7047. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7048. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7049. msm_routing_put_audio_mixer),
  7050. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7051. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7052. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7053. msm_routing_put_audio_mixer),
  7054. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7055. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7056. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7057. msm_routing_put_audio_mixer),
  7058. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7059. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7060. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7061. msm_routing_put_audio_mixer),
  7062. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7063. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7064. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7065. msm_routing_put_audio_mixer),
  7066. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7067. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7068. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7069. msm_routing_put_audio_mixer),
  7070. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7071. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7072. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7073. msm_routing_put_audio_mixer),
  7074. };
  7075. static const struct snd_kcontrol_new display_port1_mixer_controls[] = {
  7076. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7077. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7078. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7079. msm_routing_put_audio_mixer),
  7080. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7081. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7082. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7083. msm_routing_put_audio_mixer),
  7084. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7085. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7086. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7087. msm_routing_put_audio_mixer),
  7088. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7089. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7090. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7091. msm_routing_put_audio_mixer),
  7092. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7093. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7094. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7095. msm_routing_put_audio_mixer),
  7096. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7097. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7098. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7099. msm_routing_put_audio_mixer),
  7100. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7101. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7102. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7103. msm_routing_put_audio_mixer),
  7104. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7105. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7106. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7107. msm_routing_put_audio_mixer),
  7108. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7109. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7110. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7111. msm_routing_put_audio_mixer),
  7112. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7113. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7114. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7115. msm_routing_put_audio_mixer),
  7116. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7117. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7118. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7119. msm_routing_put_audio_mixer),
  7120. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7121. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7122. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7123. msm_routing_put_audio_mixer),
  7124. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7125. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7126. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7127. msm_routing_put_audio_mixer),
  7128. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7129. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7130. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7131. msm_routing_put_audio_mixer),
  7132. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7133. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7134. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7135. msm_routing_put_audio_mixer),
  7136. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7137. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7138. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7139. msm_routing_put_audio_mixer),
  7140. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7141. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7142. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7143. msm_routing_put_audio_mixer),
  7144. };
  7145. /* incall music delivery mixer */
  7146. static const struct snd_kcontrol_new incall_music_delivery_mixer_controls[] = {
  7147. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7148. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7149. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7150. msm_routing_put_audio_mixer),
  7151. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7152. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7153. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7154. msm_routing_put_audio_mixer),
  7155. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7156. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7157. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7158. msm_routing_put_audio_mixer),
  7159. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7160. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7161. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7162. msm_routing_put_audio_mixer),
  7163. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7164. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7165. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7166. msm_routing_put_audio_mixer),
  7167. };
  7168. static const struct snd_kcontrol_new incall_music2_delivery_mixer_controls[] = {
  7169. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7170. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7171. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7172. msm_routing_put_audio_mixer),
  7173. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7174. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7175. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7176. msm_routing_put_audio_mixer),
  7177. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7178. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7179. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7180. msm_routing_put_audio_mixer),
  7181. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7182. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7183. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7184. msm_routing_put_audio_mixer),
  7185. };
  7186. static const struct snd_kcontrol_new slimbus_4_rx_mixer_controls[] = {
  7187. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7188. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7189. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7190. msm_routing_put_audio_mixer),
  7191. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7192. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7193. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7194. msm_routing_put_audio_mixer),
  7195. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7196. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7197. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7198. msm_routing_put_audio_mixer),
  7199. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7200. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7201. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7202. msm_routing_put_audio_mixer),
  7203. };
  7204. static const struct snd_kcontrol_new slimbus_6_rx_mixer_controls[] = {
  7205. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7206. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7207. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7208. msm_routing_put_audio_mixer),
  7209. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7210. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7211. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7212. msm_routing_put_audio_mixer),
  7213. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7214. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7215. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7216. msm_routing_put_audio_mixer),
  7217. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7218. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7219. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7220. msm_routing_put_audio_mixer),
  7221. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7222. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7223. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7224. msm_routing_put_audio_mixer),
  7225. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7226. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7227. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7228. msm_routing_put_audio_mixer),
  7229. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7230. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7231. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7232. msm_routing_put_audio_mixer),
  7233. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7234. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7235. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7236. msm_routing_put_audio_mixer),
  7237. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7238. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7239. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7240. msm_routing_put_audio_mixer),
  7241. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7242. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7243. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7244. msm_routing_put_audio_mixer),
  7245. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7246. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7247. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7248. msm_routing_put_audio_mixer),
  7249. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7250. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7251. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7252. msm_routing_put_audio_mixer),
  7253. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7254. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7255. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7256. msm_routing_put_audio_mixer),
  7257. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7258. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7259. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7260. msm_routing_put_audio_mixer),
  7261. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7262. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7263. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7264. msm_routing_put_audio_mixer),
  7265. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7266. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7267. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7268. msm_routing_put_audio_mixer),
  7269. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7270. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7271. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7272. msm_routing_put_audio_mixer),
  7273. };
  7274. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_mixer_controls[] = {
  7275. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7276. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7277. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7278. msm_routing_put_audio_mixer),
  7279. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7280. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7281. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7282. msm_routing_put_audio_mixer),
  7283. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7284. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7285. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7286. msm_routing_put_audio_mixer),
  7287. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7288. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7289. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7290. msm_routing_put_audio_mixer),
  7291. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7292. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7293. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7294. msm_routing_put_audio_mixer),
  7295. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7296. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7297. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7298. msm_routing_put_audio_mixer),
  7299. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7300. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7301. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7302. msm_routing_put_audio_mixer),
  7303. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7304. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7305. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7306. msm_routing_put_audio_mixer),
  7307. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7308. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7309. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7310. msm_routing_put_audio_mixer),
  7311. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7312. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7313. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7314. msm_routing_put_audio_mixer),
  7315. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7316. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7317. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7318. msm_routing_put_audio_mixer),
  7319. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7320. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7321. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7322. msm_routing_put_audio_mixer),
  7323. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7324. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7325. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7326. msm_routing_put_audio_mixer),
  7327. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7328. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7329. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7330. msm_routing_put_audio_mixer),
  7331. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7332. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7333. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7334. msm_routing_put_audio_mixer),
  7335. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7336. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7337. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7338. msm_routing_put_audio_mixer),
  7339. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7340. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7341. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7342. msm_routing_put_audio_mixer),
  7343. };
  7344. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_mixer_controls[] = {
  7345. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7346. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7347. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7348. msm_routing_put_audio_mixer),
  7349. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7350. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7351. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7352. msm_routing_put_audio_mixer),
  7353. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7354. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7355. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7356. msm_routing_put_audio_mixer),
  7357. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7358. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7359. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7360. msm_routing_put_audio_mixer),
  7361. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7362. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7363. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7364. msm_routing_put_audio_mixer),
  7365. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7366. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7367. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7368. msm_routing_put_audio_mixer),
  7369. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7370. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7371. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7372. msm_routing_put_audio_mixer),
  7373. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7374. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7375. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7376. msm_routing_put_audio_mixer),
  7377. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7378. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7379. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7380. msm_routing_put_audio_mixer),
  7381. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7382. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7383. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7384. msm_routing_put_audio_mixer),
  7385. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7386. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7387. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7388. msm_routing_put_audio_mixer),
  7389. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7390. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7391. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7392. msm_routing_put_audio_mixer),
  7393. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7394. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7395. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7396. msm_routing_put_audio_mixer),
  7397. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7398. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7399. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7400. msm_routing_put_audio_mixer),
  7401. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7402. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7403. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7404. msm_routing_put_audio_mixer),
  7405. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7406. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7407. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7408. msm_routing_put_audio_mixer),
  7409. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7410. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7411. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7412. msm_routing_put_audio_mixer),
  7413. };
  7414. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_mixer_controls[] = {
  7415. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7416. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7417. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7418. msm_routing_put_audio_mixer),
  7419. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7420. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7421. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7422. msm_routing_put_audio_mixer),
  7423. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7424. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7425. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7426. msm_routing_put_audio_mixer),
  7427. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7428. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7429. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7430. msm_routing_put_audio_mixer),
  7431. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7432. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7433. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7434. msm_routing_put_audio_mixer),
  7435. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7436. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7437. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7438. msm_routing_put_audio_mixer),
  7439. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7440. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7441. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7442. msm_routing_put_audio_mixer),
  7443. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7444. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7445. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7446. msm_routing_put_audio_mixer),
  7447. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7448. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7449. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7450. msm_routing_put_audio_mixer),
  7451. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7452. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7453. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7454. msm_routing_put_audio_mixer),
  7455. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7456. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7457. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7458. msm_routing_put_audio_mixer),
  7459. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7460. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7461. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7462. msm_routing_put_audio_mixer),
  7463. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7464. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7465. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7466. msm_routing_put_audio_mixer),
  7467. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7468. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7469. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7470. msm_routing_put_audio_mixer),
  7471. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7472. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7473. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7474. msm_routing_put_audio_mixer),
  7475. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7476. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7477. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7478. msm_routing_put_audio_mixer),
  7479. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7480. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7481. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7482. msm_routing_put_audio_mixer),
  7483. };
  7484. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_mixer_controls[] = {
  7485. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7486. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7487. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7488. msm_routing_put_audio_mixer),
  7489. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7490. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7491. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7492. msm_routing_put_audio_mixer),
  7493. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7494. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7495. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7496. msm_routing_put_audio_mixer),
  7497. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7498. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7499. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7500. msm_routing_put_audio_mixer),
  7501. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7502. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7503. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7504. msm_routing_put_audio_mixer),
  7505. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7506. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7507. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7508. msm_routing_put_audio_mixer),
  7509. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7510. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7511. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7512. msm_routing_put_audio_mixer),
  7513. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7514. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7515. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7516. msm_routing_put_audio_mixer),
  7517. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7518. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7519. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7520. msm_routing_put_audio_mixer),
  7521. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7522. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7523. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7524. msm_routing_put_audio_mixer),
  7525. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7526. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7527. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7528. msm_routing_put_audio_mixer),
  7529. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7530. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7531. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7532. msm_routing_put_audio_mixer),
  7533. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7534. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7535. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7536. msm_routing_put_audio_mixer),
  7537. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7538. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7539. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7540. msm_routing_put_audio_mixer),
  7541. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7542. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7543. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7544. msm_routing_put_audio_mixer),
  7545. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7546. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7547. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7548. msm_routing_put_audio_mixer),
  7549. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7550. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7551. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7552. msm_routing_put_audio_mixer),
  7553. };
  7554. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_mixer_controls[] = {
  7555. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7556. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7557. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7558. msm_routing_put_audio_mixer),
  7559. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7560. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7561. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7562. msm_routing_put_audio_mixer),
  7563. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7564. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7565. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7566. msm_routing_put_audio_mixer),
  7567. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7568. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7569. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7570. msm_routing_put_audio_mixer),
  7571. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7572. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7573. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7574. msm_routing_put_audio_mixer),
  7575. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7576. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7577. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7578. msm_routing_put_audio_mixer),
  7579. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7580. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7581. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7582. msm_routing_put_audio_mixer),
  7583. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7584. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7585. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7586. msm_routing_put_audio_mixer),
  7587. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7588. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7589. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7590. msm_routing_put_audio_mixer),
  7591. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7592. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7593. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7594. msm_routing_put_audio_mixer),
  7595. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7596. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7597. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7598. msm_routing_put_audio_mixer),
  7599. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7600. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7601. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7602. msm_routing_put_audio_mixer),
  7603. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7604. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7605. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7606. msm_routing_put_audio_mixer),
  7607. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7608. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7609. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7610. msm_routing_put_audio_mixer),
  7611. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7612. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7613. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7614. msm_routing_put_audio_mixer),
  7615. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7616. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7617. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7618. msm_routing_put_audio_mixer),
  7619. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7620. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7621. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7622. msm_routing_put_audio_mixer),
  7623. };
  7624. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_mixer_controls[] = {
  7625. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7626. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7627. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7628. msm_routing_put_audio_mixer),
  7629. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7630. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7631. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7632. msm_routing_put_audio_mixer),
  7633. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7634. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7635. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7636. msm_routing_put_audio_mixer),
  7637. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7638. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7639. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7640. msm_routing_put_audio_mixer),
  7641. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7642. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7643. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7644. msm_routing_put_audio_mixer),
  7645. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7646. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7647. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7648. msm_routing_put_audio_mixer),
  7649. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7650. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7651. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7652. msm_routing_put_audio_mixer),
  7653. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7654. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7655. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7656. msm_routing_put_audio_mixer),
  7657. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7658. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7659. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7660. msm_routing_put_audio_mixer),
  7661. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7662. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7663. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7664. msm_routing_put_audio_mixer),
  7665. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7666. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7667. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7668. msm_routing_put_audio_mixer),
  7669. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7670. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7671. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7672. msm_routing_put_audio_mixer),
  7673. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7674. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7675. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7676. msm_routing_put_audio_mixer),
  7677. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7678. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7679. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7680. msm_routing_put_audio_mixer),
  7681. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7682. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7683. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7684. msm_routing_put_audio_mixer),
  7685. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7686. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7687. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7688. msm_routing_put_audio_mixer),
  7689. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7690. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7691. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7692. msm_routing_put_audio_mixer),
  7693. };
  7694. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_mixer_controls[] = {
  7695. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7696. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7697. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7698. msm_routing_put_audio_mixer),
  7699. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7700. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7701. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7702. msm_routing_put_audio_mixer),
  7703. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7704. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7705. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7706. msm_routing_put_audio_mixer),
  7707. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7708. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7709. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7710. msm_routing_put_audio_mixer),
  7711. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7712. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7713. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7714. msm_routing_put_audio_mixer),
  7715. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7716. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7717. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7718. msm_routing_put_audio_mixer),
  7719. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7720. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7721. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7722. msm_routing_put_audio_mixer),
  7723. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7724. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7725. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7726. msm_routing_put_audio_mixer),
  7727. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7728. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7729. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7730. msm_routing_put_audio_mixer),
  7731. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7732. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7733. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7734. msm_routing_put_audio_mixer),
  7735. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7736. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7737. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7738. msm_routing_put_audio_mixer),
  7739. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7740. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7741. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7742. msm_routing_put_audio_mixer),
  7743. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7744. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7745. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7746. msm_routing_put_audio_mixer),
  7747. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7748. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7749. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7750. msm_routing_put_audio_mixer),
  7751. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7752. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7753. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7754. msm_routing_put_audio_mixer),
  7755. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7756. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7757. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7758. msm_routing_put_audio_mixer),
  7759. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7760. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7761. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7762. msm_routing_put_audio_mixer),
  7763. };
  7764. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_mixer_controls[] = {
  7765. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7766. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7767. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7768. msm_routing_put_audio_mixer),
  7769. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7770. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7771. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7772. msm_routing_put_audio_mixer),
  7773. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7774. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7775. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7776. msm_routing_put_audio_mixer),
  7777. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7778. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7779. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7780. msm_routing_put_audio_mixer),
  7781. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7782. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7783. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7784. msm_routing_put_audio_mixer),
  7785. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7786. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7787. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7788. msm_routing_put_audio_mixer),
  7789. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7790. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7791. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7792. msm_routing_put_audio_mixer),
  7793. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7794. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7795. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7796. msm_routing_put_audio_mixer),
  7797. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7798. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7799. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7800. msm_routing_put_audio_mixer),
  7801. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7802. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7803. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7804. msm_routing_put_audio_mixer),
  7805. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7806. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7807. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7808. msm_routing_put_audio_mixer),
  7809. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7810. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7811. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7812. msm_routing_put_audio_mixer),
  7813. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7814. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7815. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7816. msm_routing_put_audio_mixer),
  7817. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7818. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7819. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7820. msm_routing_put_audio_mixer),
  7821. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7822. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7823. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7824. msm_routing_put_audio_mixer),
  7825. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7826. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7827. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7828. msm_routing_put_audio_mixer),
  7829. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7830. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7831. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7832. msm_routing_put_audio_mixer),
  7833. };
  7834. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_mixer_controls[] = {
  7835. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7836. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7837. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7838. msm_routing_put_audio_mixer),
  7839. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7840. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7841. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7842. msm_routing_put_audio_mixer),
  7843. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7844. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7845. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7846. msm_routing_put_audio_mixer),
  7847. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7848. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7849. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7850. msm_routing_put_audio_mixer),
  7851. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7852. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7853. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7854. msm_routing_put_audio_mixer),
  7855. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7856. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7857. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7858. msm_routing_put_audio_mixer),
  7859. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7860. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7861. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7862. msm_routing_put_audio_mixer),
  7863. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7864. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7865. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7866. msm_routing_put_audio_mixer),
  7867. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7868. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7869. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7870. msm_routing_put_audio_mixer),
  7871. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7872. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7873. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7874. msm_routing_put_audio_mixer),
  7875. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7876. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7877. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7878. msm_routing_put_audio_mixer),
  7879. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7880. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7881. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7882. msm_routing_put_audio_mixer),
  7883. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7884. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7885. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7886. msm_routing_put_audio_mixer),
  7887. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7888. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7889. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7890. msm_routing_put_audio_mixer),
  7891. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7892. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7893. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7894. msm_routing_put_audio_mixer),
  7895. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7896. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7897. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7898. msm_routing_put_audio_mixer),
  7899. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7900. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7901. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7902. msm_routing_put_audio_mixer),
  7903. };
  7904. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_mixer_controls[] = {
  7905. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7906. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7907. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7908. msm_routing_put_audio_mixer),
  7909. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7910. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7911. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7912. msm_routing_put_audio_mixer),
  7913. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7914. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7915. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7916. msm_routing_put_audio_mixer),
  7917. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7918. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7919. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7920. msm_routing_put_audio_mixer),
  7921. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7922. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7923. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7924. msm_routing_put_audio_mixer),
  7925. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7926. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7927. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7928. msm_routing_put_audio_mixer),
  7929. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7930. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7931. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7932. msm_routing_put_audio_mixer),
  7933. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7934. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7935. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7936. msm_routing_put_audio_mixer),
  7937. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7938. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7939. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7940. msm_routing_put_audio_mixer),
  7941. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7942. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7943. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7944. msm_routing_put_audio_mixer),
  7945. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7946. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7947. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7948. msm_routing_put_audio_mixer),
  7949. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7950. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7951. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7952. msm_routing_put_audio_mixer),
  7953. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7954. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7955. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7956. msm_routing_put_audio_mixer),
  7957. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7958. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7959. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7960. msm_routing_put_audio_mixer),
  7961. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7962. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7963. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7964. msm_routing_put_audio_mixer),
  7965. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7966. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7967. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7968. msm_routing_put_audio_mixer),
  7969. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7970. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7971. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7972. msm_routing_put_audio_mixer),
  7973. };
  7974. static const struct snd_kcontrol_new slimbus_7_rx_mixer_controls[] = {
  7975. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7976. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7977. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7978. msm_routing_put_audio_mixer),
  7979. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7980. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7981. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7982. msm_routing_put_audio_mixer),
  7983. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7984. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7985. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7986. msm_routing_put_audio_mixer),
  7987. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7988. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7989. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7990. msm_routing_put_audio_mixer),
  7991. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7992. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7993. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7994. msm_routing_put_audio_mixer),
  7995. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7996. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7997. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7998. msm_routing_put_audio_mixer),
  7999. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8000. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8001. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8002. msm_routing_put_audio_mixer),
  8003. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8004. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8005. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8006. msm_routing_put_audio_mixer),
  8007. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8008. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8009. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8010. msm_routing_put_audio_mixer),
  8011. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8012. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8013. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8014. msm_routing_put_audio_mixer),
  8015. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8016. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8017. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8018. msm_routing_put_audio_mixer),
  8019. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8020. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8021. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8022. msm_routing_put_audio_mixer),
  8023. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8024. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8025. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8026. msm_routing_put_audio_mixer),
  8027. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8028. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8029. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8030. msm_routing_put_audio_mixer),
  8031. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8032. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8033. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8034. msm_routing_put_audio_mixer),
  8035. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8036. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8037. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8038. msm_routing_put_audio_mixer),
  8039. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8040. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8041. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8042. msm_routing_put_audio_mixer),
  8043. };
  8044. static const struct snd_kcontrol_new slimbus_9_rx_mixer_controls[] = {
  8045. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8046. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8047. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8048. msm_routing_put_audio_mixer),
  8049. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8050. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8051. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8052. msm_routing_put_audio_mixer),
  8053. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8054. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8055. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8056. msm_routing_put_audio_mixer),
  8057. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8058. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8059. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8060. msm_routing_put_audio_mixer),
  8061. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8062. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8063. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8064. msm_routing_put_audio_mixer),
  8065. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8066. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8067. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8068. msm_routing_put_audio_mixer),
  8069. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8070. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8071. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8072. msm_routing_put_audio_mixer),
  8073. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8074. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8075. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8076. msm_routing_put_audio_mixer),
  8077. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8078. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8079. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8080. msm_routing_put_audio_mixer),
  8081. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8082. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8083. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8084. msm_routing_put_audio_mixer),
  8085. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8086. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8087. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8088. msm_routing_put_audio_mixer),
  8089. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8090. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8091. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8092. msm_routing_put_audio_mixer),
  8093. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8094. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8095. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8096. msm_routing_put_audio_mixer),
  8097. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8098. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8099. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8100. msm_routing_put_audio_mixer),
  8101. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8102. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8103. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8104. msm_routing_put_audio_mixer),
  8105. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8106. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8107. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8108. msm_routing_put_audio_mixer),
  8109. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8110. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8111. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8112. msm_routing_put_audio_mixer),
  8113. };
  8114. static const struct snd_kcontrol_new usb_audio_rx_mixer_controls[] = {
  8115. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8116. MSM_BACKEND_DAI_USB_RX,
  8117. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8118. msm_routing_put_audio_mixer),
  8119. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8120. MSM_BACKEND_DAI_USB_RX,
  8121. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8122. msm_routing_put_audio_mixer),
  8123. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8124. MSM_BACKEND_DAI_USB_RX,
  8125. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8126. msm_routing_put_audio_mixer),
  8127. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8128. MSM_BACKEND_DAI_USB_RX,
  8129. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8130. msm_routing_put_audio_mixer),
  8131. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8132. MSM_BACKEND_DAI_USB_RX,
  8133. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8134. msm_routing_put_audio_mixer),
  8135. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8136. MSM_BACKEND_DAI_USB_RX,
  8137. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8138. msm_routing_put_audio_mixer),
  8139. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8140. MSM_BACKEND_DAI_USB_RX,
  8141. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8142. msm_routing_put_audio_mixer),
  8143. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8144. MSM_BACKEND_DAI_USB_RX,
  8145. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8146. msm_routing_put_audio_mixer),
  8147. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8148. MSM_BACKEND_DAI_USB_RX,
  8149. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8150. msm_routing_put_audio_mixer),
  8151. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8152. MSM_BACKEND_DAI_USB_RX,
  8153. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8154. msm_routing_put_audio_mixer),
  8155. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8156. MSM_BACKEND_DAI_USB_RX,
  8157. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8158. msm_routing_put_audio_mixer),
  8159. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8160. MSM_BACKEND_DAI_USB_RX,
  8161. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8162. msm_routing_put_audio_mixer),
  8163. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8164. MSM_BACKEND_DAI_USB_RX,
  8165. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8166. msm_routing_put_audio_mixer),
  8167. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8168. MSM_BACKEND_DAI_USB_RX,
  8169. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8170. msm_routing_put_audio_mixer),
  8171. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8172. MSM_BACKEND_DAI_USB_RX,
  8173. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8174. msm_routing_put_audio_mixer),
  8175. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8176. MSM_BACKEND_DAI_USB_RX,
  8177. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8178. msm_routing_put_audio_mixer),
  8179. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8180. MSM_BACKEND_DAI_USB_RX,
  8181. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8182. msm_routing_put_audio_mixer),
  8183. };
  8184. static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
  8185. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8186. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8187. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8188. msm_routing_put_audio_mixer),
  8189. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8190. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8191. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8192. msm_routing_put_audio_mixer),
  8193. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8194. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8195. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8196. msm_routing_put_audio_mixer),
  8197. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8198. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8199. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8200. msm_routing_put_audio_mixer),
  8201. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8202. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8203. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8204. msm_routing_put_audio_mixer),
  8205. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8206. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8207. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8208. msm_routing_put_audio_mixer),
  8209. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8210. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8211. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8212. msm_routing_put_audio_mixer),
  8213. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8214. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8215. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8216. msm_routing_put_audio_mixer),
  8217. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8218. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8219. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8220. msm_routing_put_audio_mixer),
  8221. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8222. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8223. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8224. msm_routing_put_audio_mixer),
  8225. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8226. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8227. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8228. msm_routing_put_audio_mixer),
  8229. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8230. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8231. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8232. msm_routing_put_audio_mixer),
  8233. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8234. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8235. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8236. msm_routing_put_audio_mixer),
  8237. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8238. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8239. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8240. msm_routing_put_audio_mixer),
  8241. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8242. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8243. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8244. msm_routing_put_audio_mixer),
  8245. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8246. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8247. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8248. msm_routing_put_audio_mixer),
  8249. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8250. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8251. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8252. msm_routing_put_audio_mixer),
  8253. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8254. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8255. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8256. msm_routing_put_audio_mixer),
  8257. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8258. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8259. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8260. msm_routing_put_audio_mixer),
  8261. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8262. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8263. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8264. msm_routing_put_audio_mixer),
  8265. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8266. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8267. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8268. msm_routing_put_audio_mixer),
  8269. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8270. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8271. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8272. msm_routing_put_audio_mixer),
  8273. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8274. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8275. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8276. msm_routing_put_audio_mixer),
  8277. };
  8278. static const struct snd_kcontrol_new int_bt_a2dp_rx_mixer_controls[] = {
  8279. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8280. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8281. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8282. msm_routing_put_audio_mixer),
  8283. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8284. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8285. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8286. msm_routing_put_audio_mixer),
  8287. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8288. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8289. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8290. msm_routing_put_audio_mixer),
  8291. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8292. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8293. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8294. msm_routing_put_audio_mixer),
  8295. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8296. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8297. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8298. msm_routing_put_audio_mixer),
  8299. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8300. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8301. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8302. msm_routing_put_audio_mixer),
  8303. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8304. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8305. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8306. msm_routing_put_audio_mixer),
  8307. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8308. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8309. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8310. msm_routing_put_audio_mixer),
  8311. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8312. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8313. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8314. msm_routing_put_audio_mixer),
  8315. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8316. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8317. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8318. msm_routing_put_audio_mixer),
  8319. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8320. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8321. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8322. msm_routing_put_audio_mixer),
  8323. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8324. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8325. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8326. msm_routing_put_audio_mixer),
  8327. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8328. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8329. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8330. msm_routing_put_audio_mixer),
  8331. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8332. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8333. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8334. msm_routing_put_audio_mixer),
  8335. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8336. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8337. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8338. msm_routing_put_audio_mixer),
  8339. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8340. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8341. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8342. msm_routing_put_audio_mixer),
  8343. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8344. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8345. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8346. msm_routing_put_audio_mixer),
  8347. };
  8348. static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
  8349. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8350. MSM_BACKEND_DAI_INT_FM_RX,
  8351. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8352. msm_routing_put_audio_mixer),
  8353. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8354. MSM_BACKEND_DAI_INT_FM_RX,
  8355. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8356. msm_routing_put_audio_mixer),
  8357. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8358. MSM_BACKEND_DAI_INT_FM_RX,
  8359. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8360. msm_routing_put_audio_mixer),
  8361. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8362. MSM_BACKEND_DAI_INT_FM_RX,
  8363. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8364. msm_routing_put_audio_mixer),
  8365. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8366. MSM_BACKEND_DAI_INT_FM_RX,
  8367. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8368. msm_routing_put_audio_mixer),
  8369. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8370. MSM_BACKEND_DAI_INT_FM_RX,
  8371. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8372. msm_routing_put_audio_mixer),
  8373. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8374. MSM_BACKEND_DAI_INT_FM_RX,
  8375. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8376. msm_routing_put_audio_mixer),
  8377. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8378. MSM_BACKEND_DAI_INT_FM_RX,
  8379. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8380. msm_routing_put_audio_mixer),
  8381. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8382. MSM_BACKEND_DAI_INT_FM_RX,
  8383. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8384. msm_routing_put_audio_mixer),
  8385. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8386. MSM_BACKEND_DAI_INT_FM_RX,
  8387. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8388. msm_routing_put_audio_mixer),
  8389. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8390. MSM_BACKEND_DAI_INT_FM_RX,
  8391. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8392. msm_routing_put_audio_mixer),
  8393. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8394. MSM_BACKEND_DAI_INT_FM_RX,
  8395. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8396. msm_routing_put_audio_mixer),
  8397. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8398. MSM_BACKEND_DAI_INT_FM_RX,
  8399. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8400. msm_routing_put_audio_mixer),
  8401. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8402. MSM_BACKEND_DAI_INT_FM_RX,
  8403. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8404. msm_routing_put_audio_mixer),
  8405. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8406. MSM_BACKEND_DAI_INT_FM_RX,
  8407. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8408. msm_routing_put_audio_mixer),
  8409. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8410. MSM_BACKEND_DAI_INT_FM_RX,
  8411. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8412. msm_routing_put_audio_mixer),
  8413. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8414. MSM_BACKEND_DAI_INT_FM_RX,
  8415. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8416. msm_routing_put_audio_mixer),
  8417. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8418. MSM_BACKEND_DAI_INT_FM_RX,
  8419. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8420. msm_routing_put_audio_mixer),
  8421. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8422. MSM_BACKEND_DAI_INT_FM_RX,
  8423. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8424. msm_routing_put_audio_mixer),
  8425. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8426. MSM_BACKEND_DAI_INT_FM_RX,
  8427. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8428. msm_routing_put_audio_mixer),
  8429. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8430. MSM_BACKEND_DAI_INT_FM_RX,
  8431. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8432. msm_routing_put_audio_mixer),
  8433. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8434. MSM_BACKEND_DAI_INT_FM_RX,
  8435. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8436. msm_routing_put_audio_mixer),
  8437. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8438. MSM_BACKEND_DAI_INT_FM_RX,
  8439. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8440. msm_routing_put_audio_mixer),
  8441. };
  8442. static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
  8443. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8444. MSM_BACKEND_DAI_AFE_PCM_RX,
  8445. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8446. msm_routing_put_audio_mixer),
  8447. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8448. MSM_BACKEND_DAI_AFE_PCM_RX,
  8449. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8450. msm_routing_put_audio_mixer),
  8451. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8452. MSM_BACKEND_DAI_AFE_PCM_RX,
  8453. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8454. msm_routing_put_audio_mixer),
  8455. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8456. MSM_BACKEND_DAI_AFE_PCM_RX,
  8457. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8458. msm_routing_put_audio_mixer),
  8459. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8460. MSM_BACKEND_DAI_AFE_PCM_RX,
  8461. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8462. msm_routing_put_audio_mixer),
  8463. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8464. MSM_BACKEND_DAI_AFE_PCM_RX,
  8465. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8466. msm_routing_put_audio_mixer),
  8467. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8468. MSM_BACKEND_DAI_AFE_PCM_RX,
  8469. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8470. msm_routing_put_audio_mixer),
  8471. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8472. MSM_BACKEND_DAI_AFE_PCM_RX,
  8473. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8474. msm_routing_put_audio_mixer),
  8475. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8476. MSM_BACKEND_DAI_AFE_PCM_RX,
  8477. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8478. msm_routing_put_audio_mixer),
  8479. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8480. MSM_BACKEND_DAI_AFE_PCM_RX,
  8481. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8482. msm_routing_put_audio_mixer),
  8483. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8484. MSM_BACKEND_DAI_AFE_PCM_RX,
  8485. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8486. msm_routing_put_audio_mixer),
  8487. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8488. MSM_BACKEND_DAI_AFE_PCM_RX,
  8489. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8490. msm_routing_put_audio_mixer),
  8491. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8492. MSM_BACKEND_DAI_AFE_PCM_RX,
  8493. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8494. msm_routing_put_audio_mixer),
  8495. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8496. MSM_BACKEND_DAI_AFE_PCM_RX,
  8497. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8498. msm_routing_put_audio_mixer),
  8499. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8500. MSM_BACKEND_DAI_AFE_PCM_RX,
  8501. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8502. msm_routing_put_audio_mixer),
  8503. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8504. MSM_BACKEND_DAI_AFE_PCM_RX,
  8505. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8506. msm_routing_put_audio_mixer),
  8507. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8508. MSM_BACKEND_DAI_AFE_PCM_RX,
  8509. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8510. msm_routing_put_audio_mixer),
  8511. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8512. MSM_BACKEND_DAI_AFE_PCM_RX,
  8513. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8514. msm_routing_put_audio_mixer),
  8515. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8516. MSM_BACKEND_DAI_AFE_PCM_RX,
  8517. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8518. msm_routing_put_audio_mixer),
  8519. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8520. MSM_BACKEND_DAI_AFE_PCM_RX,
  8521. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8522. msm_routing_put_audio_mixer),
  8523. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8524. MSM_BACKEND_DAI_AFE_PCM_RX,
  8525. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8526. msm_routing_put_audio_mixer),
  8527. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8528. MSM_BACKEND_DAI_AFE_PCM_RX,
  8529. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8530. msm_routing_put_audio_mixer),
  8531. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8532. MSM_BACKEND_DAI_AFE_PCM_RX,
  8533. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8534. msm_routing_put_audio_mixer),
  8535. };
  8536. static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
  8537. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8538. MSM_BACKEND_DAI_AUXPCM_RX,
  8539. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8540. msm_routing_put_audio_mixer),
  8541. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8542. MSM_BACKEND_DAI_AUXPCM_RX,
  8543. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8544. msm_routing_put_audio_mixer),
  8545. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8546. MSM_BACKEND_DAI_AUXPCM_RX,
  8547. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8548. msm_routing_put_audio_mixer),
  8549. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8550. MSM_BACKEND_DAI_AUXPCM_RX,
  8551. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8552. msm_routing_put_audio_mixer),
  8553. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8554. MSM_BACKEND_DAI_AUXPCM_RX,
  8555. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8556. msm_routing_put_audio_mixer),
  8557. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8558. MSM_BACKEND_DAI_AUXPCM_RX,
  8559. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8560. msm_routing_put_audio_mixer),
  8561. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8562. MSM_BACKEND_DAI_AUXPCM_RX,
  8563. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8564. msm_routing_put_audio_mixer),
  8565. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8566. MSM_BACKEND_DAI_AUXPCM_RX,
  8567. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8568. msm_routing_put_audio_mixer),
  8569. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8570. MSM_BACKEND_DAI_AUXPCM_RX,
  8571. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8572. msm_routing_put_audio_mixer),
  8573. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8574. MSM_BACKEND_DAI_AUXPCM_RX,
  8575. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8576. msm_routing_put_audio_mixer),
  8577. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8578. MSM_BACKEND_DAI_AUXPCM_RX,
  8579. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8580. msm_routing_put_audio_mixer),
  8581. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8582. MSM_BACKEND_DAI_AUXPCM_RX,
  8583. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8584. msm_routing_put_audio_mixer),
  8585. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8586. MSM_BACKEND_DAI_AUXPCM_RX,
  8587. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8588. msm_routing_put_audio_mixer),
  8589. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8590. MSM_BACKEND_DAI_AUXPCM_RX,
  8591. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8592. msm_routing_put_audio_mixer),
  8593. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8594. MSM_BACKEND_DAI_AUXPCM_RX,
  8595. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8596. msm_routing_put_audio_mixer),
  8597. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8598. MSM_BACKEND_DAI_AUXPCM_RX,
  8599. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8600. msm_routing_put_audio_mixer),
  8601. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8602. MSM_BACKEND_DAI_AUXPCM_RX,
  8603. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8604. msm_routing_put_audio_mixer),
  8605. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8606. MSM_BACKEND_DAI_AUXPCM_RX,
  8607. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8608. msm_routing_put_audio_mixer),
  8609. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8610. MSM_BACKEND_DAI_AUXPCM_RX,
  8611. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8612. msm_routing_put_audio_mixer),
  8613. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8614. MSM_BACKEND_DAI_AUXPCM_RX,
  8615. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8616. msm_routing_put_audio_mixer),
  8617. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8618. MSM_BACKEND_DAI_AUXPCM_RX,
  8619. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8620. msm_routing_put_audio_mixer),
  8621. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8622. MSM_BACKEND_DAI_AUXPCM_RX,
  8623. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8624. msm_routing_put_audio_mixer),
  8625. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8626. MSM_BACKEND_DAI_AUXPCM_RX,
  8627. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8628. msm_routing_put_audio_mixer),
  8629. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8630. MSM_BACKEND_DAI_AUXPCM_RX,
  8631. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8632. msm_routing_put_audio_mixer),
  8633. };
  8634. static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
  8635. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8636. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8637. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8638. msm_routing_put_audio_mixer),
  8639. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8640. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8641. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8642. msm_routing_put_audio_mixer),
  8643. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8644. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8645. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8646. msm_routing_put_audio_mixer),
  8647. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8648. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8649. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8650. msm_routing_put_audio_mixer),
  8651. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8652. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8653. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8654. msm_routing_put_audio_mixer),
  8655. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8656. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8657. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8658. msm_routing_put_audio_mixer),
  8659. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8660. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8661. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8662. msm_routing_put_audio_mixer),
  8663. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8664. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8665. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8666. msm_routing_put_audio_mixer),
  8667. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8668. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8669. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8670. msm_routing_put_audio_mixer),
  8671. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8672. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8673. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8674. msm_routing_put_audio_mixer),
  8675. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8676. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8677. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8678. msm_routing_put_audio_mixer),
  8679. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8680. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8681. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8682. msm_routing_put_audio_mixer),
  8683. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8684. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8685. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8686. msm_routing_put_audio_mixer),
  8687. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8688. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8689. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8690. msm_routing_put_audio_mixer),
  8691. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8692. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8693. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8694. msm_routing_put_audio_mixer),
  8695. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8696. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8697. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8698. msm_routing_put_audio_mixer),
  8699. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8700. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8701. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8702. msm_routing_put_audio_mixer),
  8703. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8704. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8705. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8706. msm_routing_put_audio_mixer),
  8707. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8708. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8709. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8710. msm_routing_put_audio_mixer),
  8711. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8712. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8713. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8714. msm_routing_put_audio_mixer),
  8715. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8716. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8717. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8718. msm_routing_put_audio_mixer),
  8719. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8720. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8721. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8722. msm_routing_put_audio_mixer),
  8723. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8724. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8725. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8726. msm_routing_put_audio_mixer),
  8727. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8728. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8729. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8730. msm_routing_put_audio_mixer),
  8731. };
  8732. static const struct snd_kcontrol_new tert_auxpcm_rx_mixer_controls[] = {
  8733. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8734. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8735. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8736. msm_routing_put_audio_mixer),
  8737. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8738. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8739. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8740. msm_routing_put_audio_mixer),
  8741. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8742. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8743. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8744. msm_routing_put_audio_mixer),
  8745. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8746. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8747. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8748. msm_routing_put_audio_mixer),
  8749. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8750. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8751. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8752. msm_routing_put_audio_mixer),
  8753. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8754. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8755. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8756. msm_routing_put_audio_mixer),
  8757. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8758. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8759. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8760. msm_routing_put_audio_mixer),
  8761. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8762. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8763. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8764. msm_routing_put_audio_mixer),
  8765. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8766. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8767. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8768. msm_routing_put_audio_mixer),
  8769. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8770. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8771. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8772. msm_routing_put_audio_mixer),
  8773. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8774. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8775. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8776. msm_routing_put_audio_mixer),
  8777. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8778. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8779. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8780. msm_routing_put_audio_mixer),
  8781. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8782. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8783. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8784. msm_routing_put_audio_mixer),
  8785. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8786. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8787. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8788. msm_routing_put_audio_mixer),
  8789. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8790. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8791. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8792. msm_routing_put_audio_mixer),
  8793. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8794. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8795. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8796. msm_routing_put_audio_mixer),
  8797. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8798. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8799. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8800. msm_routing_put_audio_mixer),
  8801. };
  8802. static const struct snd_kcontrol_new quat_auxpcm_rx_mixer_controls[] = {
  8803. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8804. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8805. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8806. msm_routing_put_audio_mixer),
  8807. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8808. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8809. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8810. msm_routing_put_audio_mixer),
  8811. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8812. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8813. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8814. msm_routing_put_audio_mixer),
  8815. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8816. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8817. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8818. msm_routing_put_audio_mixer),
  8819. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8820. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8821. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8822. msm_routing_put_audio_mixer),
  8823. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8824. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8825. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8826. msm_routing_put_audio_mixer),
  8827. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8828. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8829. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8830. msm_routing_put_audio_mixer),
  8831. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8832. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8833. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8834. msm_routing_put_audio_mixer),
  8835. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8836. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8837. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8838. msm_routing_put_audio_mixer),
  8839. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8840. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8841. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8842. msm_routing_put_audio_mixer),
  8843. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8844. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8845. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8846. msm_routing_put_audio_mixer),
  8847. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8848. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8849. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8850. msm_routing_put_audio_mixer),
  8851. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8852. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8853. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8854. msm_routing_put_audio_mixer),
  8855. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8856. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8857. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8858. msm_routing_put_audio_mixer),
  8859. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8860. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8861. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8862. msm_routing_put_audio_mixer),
  8863. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8864. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8865. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8866. msm_routing_put_audio_mixer),
  8867. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8868. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8869. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8870. msm_routing_put_audio_mixer),
  8871. };
  8872. static const struct snd_kcontrol_new quin_auxpcm_rx_mixer_controls[] = {
  8873. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8874. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8875. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8876. msm_routing_put_audio_mixer),
  8877. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8878. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8879. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8880. msm_routing_put_audio_mixer),
  8881. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8882. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8883. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8884. msm_routing_put_audio_mixer),
  8885. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8886. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8887. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8888. msm_routing_put_audio_mixer),
  8889. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8890. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8891. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8892. msm_routing_put_audio_mixer),
  8893. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8894. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8895. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8896. msm_routing_put_audio_mixer),
  8897. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8898. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8899. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8900. msm_routing_put_audio_mixer),
  8901. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8902. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8903. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8904. msm_routing_put_audio_mixer),
  8905. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8906. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8907. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8908. msm_routing_put_audio_mixer),
  8909. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8910. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8911. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8912. msm_routing_put_audio_mixer),
  8913. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8914. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8915. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8916. msm_routing_put_audio_mixer),
  8917. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8918. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8919. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8920. msm_routing_put_audio_mixer),
  8921. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8922. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8923. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8924. msm_routing_put_audio_mixer),
  8925. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8926. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8927. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8928. msm_routing_put_audio_mixer),
  8929. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8930. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8931. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8932. msm_routing_put_audio_mixer),
  8933. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8934. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8935. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8936. msm_routing_put_audio_mixer),
  8937. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8938. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8939. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8940. msm_routing_put_audio_mixer),
  8941. };
  8942. static const struct snd_kcontrol_new sen_auxpcm_rx_mixer_controls[] = {
  8943. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8944. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8945. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8946. msm_routing_put_audio_mixer),
  8947. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8948. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8949. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8950. msm_routing_put_audio_mixer),
  8951. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8952. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8953. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8954. msm_routing_put_audio_mixer),
  8955. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8956. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8957. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8958. msm_routing_put_audio_mixer),
  8959. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8960. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8961. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8962. msm_routing_put_audio_mixer),
  8963. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8964. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8965. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8966. msm_routing_put_audio_mixer),
  8967. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8968. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8969. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8970. msm_routing_put_audio_mixer),
  8971. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8972. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8973. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8974. msm_routing_put_audio_mixer),
  8975. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8976. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8977. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8978. msm_routing_put_audio_mixer),
  8979. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8980. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8981. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8982. msm_routing_put_audio_mixer),
  8983. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8984. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8985. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8986. msm_routing_put_audio_mixer),
  8987. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8988. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8989. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8990. msm_routing_put_audio_mixer),
  8991. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8992. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8993. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8994. msm_routing_put_audio_mixer),
  8995. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8996. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8997. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8998. msm_routing_put_audio_mixer),
  8999. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9000. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9001. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9002. msm_routing_put_audio_mixer),
  9003. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9004. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9005. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9006. msm_routing_put_audio_mixer),
  9007. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  9008. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9009. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  9010. msm_routing_put_audio_mixer),
  9011. };
  9012. static const struct snd_kcontrol_new pri_tdm_rx_0_mixer_controls[] = {
  9013. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9014. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9015. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9016. msm_routing_put_audio_mixer),
  9017. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9018. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9019. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9020. msm_routing_put_audio_mixer),
  9021. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9022. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9023. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9024. msm_routing_put_audio_mixer),
  9025. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9026. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9027. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9028. msm_routing_put_audio_mixer),
  9029. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9030. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9031. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9032. msm_routing_put_audio_mixer),
  9033. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9034. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9035. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9036. msm_routing_put_audio_mixer),
  9037. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9038. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9039. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9040. msm_routing_put_audio_mixer),
  9041. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9042. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9043. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9044. msm_routing_put_audio_mixer),
  9045. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9046. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9047. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9048. msm_routing_put_audio_mixer),
  9049. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9050. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9051. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9052. msm_routing_put_audio_mixer),
  9053. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9054. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9055. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9056. msm_routing_put_audio_mixer),
  9057. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9058. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9059. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9060. msm_routing_put_audio_mixer),
  9061. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9062. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9063. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9064. msm_routing_put_audio_mixer),
  9065. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9066. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9067. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9068. msm_routing_put_audio_mixer),
  9069. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9070. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9071. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9072. msm_routing_put_audio_mixer),
  9073. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9074. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9075. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9076. msm_routing_put_audio_mixer),
  9077. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9078. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9079. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9080. msm_routing_put_audio_mixer),
  9081. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9082. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9083. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9084. msm_routing_put_audio_mixer),
  9085. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9086. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9087. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9088. msm_routing_put_audio_mixer),
  9089. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9090. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9091. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9092. msm_routing_put_audio_mixer),
  9093. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9094. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9095. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9096. msm_routing_put_audio_mixer),
  9097. };
  9098. static const struct snd_kcontrol_new pri_tdm_rx_1_mixer_controls[] = {
  9099. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9100. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9101. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9102. msm_routing_put_audio_mixer),
  9103. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9104. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9105. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9106. msm_routing_put_audio_mixer),
  9107. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9108. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9109. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9110. msm_routing_put_audio_mixer),
  9111. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9112. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9113. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9114. msm_routing_put_audio_mixer),
  9115. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9116. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9117. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9118. msm_routing_put_audio_mixer),
  9119. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9120. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9121. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9122. msm_routing_put_audio_mixer),
  9123. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9124. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9125. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9126. msm_routing_put_audio_mixer),
  9127. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9128. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9129. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9130. msm_routing_put_audio_mixer),
  9131. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9132. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9133. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9134. msm_routing_put_audio_mixer),
  9135. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9136. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9137. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9138. msm_routing_put_audio_mixer),
  9139. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9140. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9141. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9142. msm_routing_put_audio_mixer),
  9143. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9144. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9145. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9146. msm_routing_put_audio_mixer),
  9147. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9148. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9149. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9150. msm_routing_put_audio_mixer),
  9151. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9152. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9153. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9154. msm_routing_put_audio_mixer),
  9155. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9156. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9157. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9158. msm_routing_put_audio_mixer),
  9159. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9160. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9161. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9162. msm_routing_put_audio_mixer),
  9163. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9164. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9165. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9166. msm_routing_put_audio_mixer),
  9167. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9168. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9169. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9170. msm_routing_put_audio_mixer),
  9171. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9172. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9173. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9174. msm_routing_put_audio_mixer),
  9175. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9176. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9177. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9178. msm_routing_put_audio_mixer),
  9179. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9180. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9181. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9182. msm_routing_put_audio_mixer),
  9183. };
  9184. static const struct snd_kcontrol_new pri_tdm_rx_2_mixer_controls[] = {
  9185. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9186. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9187. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9188. msm_routing_put_audio_mixer),
  9189. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9190. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9191. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9192. msm_routing_put_audio_mixer),
  9193. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9194. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9195. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9196. msm_routing_put_audio_mixer),
  9197. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9198. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9199. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9200. msm_routing_put_audio_mixer),
  9201. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9202. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9203. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9204. msm_routing_put_audio_mixer),
  9205. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9206. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9207. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9208. msm_routing_put_audio_mixer),
  9209. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9210. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9211. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9212. msm_routing_put_audio_mixer),
  9213. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9214. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9215. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9216. msm_routing_put_audio_mixer),
  9217. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9218. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9219. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9220. msm_routing_put_audio_mixer),
  9221. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9222. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9223. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9224. msm_routing_put_audio_mixer),
  9225. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9226. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9227. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9228. msm_routing_put_audio_mixer),
  9229. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9230. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9231. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9232. msm_routing_put_audio_mixer),
  9233. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9234. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9235. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9236. msm_routing_put_audio_mixer),
  9237. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9238. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9239. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9240. msm_routing_put_audio_mixer),
  9241. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9242. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9243. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9244. msm_routing_put_audio_mixer),
  9245. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9246. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9247. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9248. msm_routing_put_audio_mixer),
  9249. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9250. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9251. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9252. msm_routing_put_audio_mixer),
  9253. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9254. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9255. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9256. msm_routing_put_audio_mixer),
  9257. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9258. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9259. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9260. msm_routing_put_audio_mixer),
  9261. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9262. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9263. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9264. msm_routing_put_audio_mixer),
  9265. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9266. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9267. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9268. msm_routing_put_audio_mixer),
  9269. };
  9270. static const struct snd_kcontrol_new pri_tdm_rx_3_mixer_controls[] = {
  9271. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9272. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9273. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9274. msm_routing_put_audio_mixer),
  9275. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9276. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9277. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9278. msm_routing_put_audio_mixer),
  9279. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9280. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9281. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9282. msm_routing_put_audio_mixer),
  9283. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9284. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9285. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9286. msm_routing_put_audio_mixer),
  9287. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9288. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9289. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9290. msm_routing_put_audio_mixer),
  9291. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9292. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9293. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9294. msm_routing_put_audio_mixer),
  9295. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9296. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9297. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9298. msm_routing_put_audio_mixer),
  9299. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9300. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9301. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9302. msm_routing_put_audio_mixer),
  9303. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9304. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9305. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9306. msm_routing_put_audio_mixer),
  9307. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9308. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9309. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9310. msm_routing_put_audio_mixer),
  9311. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9312. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9313. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9314. msm_routing_put_audio_mixer),
  9315. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9316. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9317. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9318. msm_routing_put_audio_mixer),
  9319. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9320. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9321. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9322. msm_routing_put_audio_mixer),
  9323. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9324. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9325. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9326. msm_routing_put_audio_mixer),
  9327. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9328. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9329. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9330. msm_routing_put_audio_mixer),
  9331. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9332. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9333. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9334. msm_routing_put_audio_mixer),
  9335. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9336. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9337. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9338. msm_routing_put_audio_mixer),
  9339. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9340. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9341. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9342. msm_routing_put_audio_mixer),
  9343. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9344. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9345. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9346. msm_routing_put_audio_mixer),
  9347. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9348. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9349. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9350. msm_routing_put_audio_mixer),
  9351. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9352. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9353. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9354. msm_routing_put_audio_mixer),
  9355. };
  9356. static const struct snd_kcontrol_new pri_tdm_tx_0_mixer_controls[] = {
  9357. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9358. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9359. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9360. msm_routing_put_audio_mixer),
  9361. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9362. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9363. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9364. msm_routing_put_audio_mixer),
  9365. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9366. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9367. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9368. msm_routing_put_audio_mixer),
  9369. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9370. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9371. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9372. msm_routing_put_audio_mixer),
  9373. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9374. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9375. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9376. msm_routing_put_audio_mixer),
  9377. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9378. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9379. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9380. msm_routing_put_audio_mixer),
  9381. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9382. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9383. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9384. msm_routing_put_audio_mixer),
  9385. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9386. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9387. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9388. msm_routing_put_audio_mixer),
  9389. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9390. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9391. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9392. msm_routing_put_audio_mixer),
  9393. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9394. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9395. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9396. msm_routing_put_audio_mixer),
  9397. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9398. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9399. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9400. msm_routing_put_audio_mixer),
  9401. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9402. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9403. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9404. msm_routing_put_audio_mixer),
  9405. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9406. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9407. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9408. msm_routing_put_audio_mixer),
  9409. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9410. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9411. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9412. msm_routing_put_audio_mixer),
  9413. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9414. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9415. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9416. msm_routing_put_audio_mixer),
  9417. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9418. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9419. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9420. msm_routing_put_audio_mixer),
  9421. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9422. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9423. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9424. msm_routing_put_audio_mixer),
  9425. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9426. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9427. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9428. msm_routing_put_audio_mixer),
  9429. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9430. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9431. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9432. msm_routing_put_audio_mixer),
  9433. };
  9434. static const struct snd_kcontrol_new sec_tdm_rx_0_mixer_controls[] = {
  9435. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9436. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9437. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9438. msm_routing_put_audio_mixer),
  9439. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9440. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9441. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9442. msm_routing_put_audio_mixer),
  9443. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9444. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9445. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9446. msm_routing_put_audio_mixer),
  9447. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9448. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9449. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9450. msm_routing_put_audio_mixer),
  9451. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9452. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9453. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9454. msm_routing_put_audio_mixer),
  9455. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9456. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9457. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9458. msm_routing_put_audio_mixer),
  9459. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9460. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9461. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9462. msm_routing_put_audio_mixer),
  9463. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9464. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9465. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9466. msm_routing_put_audio_mixer),
  9467. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9468. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9469. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9470. msm_routing_put_audio_mixer),
  9471. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9472. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9473. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9474. msm_routing_put_audio_mixer),
  9475. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9476. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9477. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9478. msm_routing_put_audio_mixer),
  9479. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9480. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9481. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9482. msm_routing_put_audio_mixer),
  9483. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9484. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9485. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9486. msm_routing_put_audio_mixer),
  9487. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9488. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9489. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9490. msm_routing_put_audio_mixer),
  9491. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9492. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9493. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9494. msm_routing_put_audio_mixer),
  9495. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9496. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9497. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9498. msm_routing_put_audio_mixer),
  9499. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9500. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9501. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9502. msm_routing_put_audio_mixer),
  9503. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9504. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9505. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9506. msm_routing_put_audio_mixer),
  9507. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9508. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9509. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9510. msm_routing_put_audio_mixer),
  9511. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9512. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9513. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9514. msm_routing_put_audio_mixer),
  9515. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9516. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9517. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9518. msm_routing_put_audio_mixer),
  9519. };
  9520. static const struct snd_kcontrol_new sec_tdm_rx_1_mixer_controls[] = {
  9521. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9522. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9523. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9524. msm_routing_put_audio_mixer),
  9525. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9526. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9527. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9528. msm_routing_put_audio_mixer),
  9529. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9530. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9531. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9532. msm_routing_put_audio_mixer),
  9533. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9534. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9535. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9536. msm_routing_put_audio_mixer),
  9537. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9538. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9539. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9540. msm_routing_put_audio_mixer),
  9541. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9542. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9543. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9544. msm_routing_put_audio_mixer),
  9545. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9546. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9547. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9548. msm_routing_put_audio_mixer),
  9549. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9550. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9551. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9552. msm_routing_put_audio_mixer),
  9553. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9554. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9555. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9556. msm_routing_put_audio_mixer),
  9557. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9558. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9559. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9560. msm_routing_put_audio_mixer),
  9561. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9562. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9563. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9564. msm_routing_put_audio_mixer),
  9565. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9566. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9567. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9568. msm_routing_put_audio_mixer),
  9569. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9570. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9571. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9572. msm_routing_put_audio_mixer),
  9573. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9574. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9575. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9576. msm_routing_put_audio_mixer),
  9577. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9578. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9579. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9580. msm_routing_put_audio_mixer),
  9581. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9582. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9583. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9584. msm_routing_put_audio_mixer),
  9585. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9586. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9587. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9588. msm_routing_put_audio_mixer),
  9589. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9590. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9591. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9592. msm_routing_put_audio_mixer),
  9593. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9594. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9595. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9596. msm_routing_put_audio_mixer),
  9597. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9598. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9599. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9600. msm_routing_put_audio_mixer),
  9601. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9602. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9603. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9604. msm_routing_put_audio_mixer),
  9605. };
  9606. static const struct snd_kcontrol_new sec_tdm_rx_2_mixer_controls[] = {
  9607. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9608. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9609. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9610. msm_routing_put_audio_mixer),
  9611. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9612. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9613. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9614. msm_routing_put_audio_mixer),
  9615. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9616. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9617. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9618. msm_routing_put_audio_mixer),
  9619. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9620. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9621. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9622. msm_routing_put_audio_mixer),
  9623. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9624. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9625. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9626. msm_routing_put_audio_mixer),
  9627. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9628. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9629. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9630. msm_routing_put_audio_mixer),
  9631. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9632. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9633. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9634. msm_routing_put_audio_mixer),
  9635. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9636. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9637. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9638. msm_routing_put_audio_mixer),
  9639. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9640. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9641. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9642. msm_routing_put_audio_mixer),
  9643. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9644. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9645. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9646. msm_routing_put_audio_mixer),
  9647. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9648. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9649. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9650. msm_routing_put_audio_mixer),
  9651. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9652. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9653. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9654. msm_routing_put_audio_mixer),
  9655. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9656. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9657. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9658. msm_routing_put_audio_mixer),
  9659. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9660. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9661. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9662. msm_routing_put_audio_mixer),
  9663. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9664. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9665. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9666. msm_routing_put_audio_mixer),
  9667. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9668. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9669. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9670. msm_routing_put_audio_mixer),
  9671. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9672. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9673. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9674. msm_routing_put_audio_mixer),
  9675. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9676. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9677. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9678. msm_routing_put_audio_mixer),
  9679. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9680. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9681. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9682. msm_routing_put_audio_mixer),
  9683. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9684. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9685. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9686. msm_routing_put_audio_mixer),
  9687. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9688. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9689. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9690. msm_routing_put_audio_mixer),
  9691. };
  9692. static const struct snd_kcontrol_new sec_tdm_rx_3_mixer_controls[] = {
  9693. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9694. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9695. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9696. msm_routing_put_audio_mixer),
  9697. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9698. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9699. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9700. msm_routing_put_audio_mixer),
  9701. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9702. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9703. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9704. msm_routing_put_audio_mixer),
  9705. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9706. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9707. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9708. msm_routing_put_audio_mixer),
  9709. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9710. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9711. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9712. msm_routing_put_audio_mixer),
  9713. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9714. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9715. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9716. msm_routing_put_audio_mixer),
  9717. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9718. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9719. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9720. msm_routing_put_audio_mixer),
  9721. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9722. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9723. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9724. msm_routing_put_audio_mixer),
  9725. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9726. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9727. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9728. msm_routing_put_audio_mixer),
  9729. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9730. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9731. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9732. msm_routing_put_audio_mixer),
  9733. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9734. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9735. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9736. msm_routing_put_audio_mixer),
  9737. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9738. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9739. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9740. msm_routing_put_audio_mixer),
  9741. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9742. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9743. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9744. msm_routing_put_audio_mixer),
  9745. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9746. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9747. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9748. msm_routing_put_audio_mixer),
  9749. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9750. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9751. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9752. msm_routing_put_audio_mixer),
  9753. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9754. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9755. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9756. msm_routing_put_audio_mixer),
  9757. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9758. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9759. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9760. msm_routing_put_audio_mixer),
  9761. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9762. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9763. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9764. msm_routing_put_audio_mixer),
  9765. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9766. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9767. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9768. msm_routing_put_audio_mixer),
  9769. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9770. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9771. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9772. msm_routing_put_audio_mixer),
  9773. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9774. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9775. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9776. msm_routing_put_audio_mixer),
  9777. };
  9778. static const struct snd_kcontrol_new sec_tdm_tx_0_mixer_controls[] = {
  9779. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9780. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9781. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9782. msm_routing_put_audio_mixer),
  9783. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9784. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9785. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9786. msm_routing_put_audio_mixer),
  9787. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9788. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9789. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9790. msm_routing_put_audio_mixer),
  9791. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9792. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9793. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9794. msm_routing_put_audio_mixer),
  9795. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9796. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9797. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9798. msm_routing_put_audio_mixer),
  9799. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9800. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9801. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9802. msm_routing_put_audio_mixer),
  9803. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9804. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9805. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9806. msm_routing_put_audio_mixer),
  9807. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9808. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9809. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9810. msm_routing_put_audio_mixer),
  9811. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9812. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9813. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9814. msm_routing_put_audio_mixer),
  9815. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9816. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9817. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9818. msm_routing_put_audio_mixer),
  9819. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9820. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9821. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9822. msm_routing_put_audio_mixer),
  9823. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9824. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9825. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9826. msm_routing_put_audio_mixer),
  9827. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9828. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9829. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9830. msm_routing_put_audio_mixer),
  9831. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9832. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9833. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9834. msm_routing_put_audio_mixer),
  9835. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9836. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9837. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9838. msm_routing_put_audio_mixer),
  9839. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9840. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9841. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9842. msm_routing_put_audio_mixer),
  9843. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9844. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9845. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9846. msm_routing_put_audio_mixer),
  9847. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9848. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9849. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9850. msm_routing_put_audio_mixer),
  9851. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9852. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9853. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9854. msm_routing_put_audio_mixer),
  9855. };
  9856. static const struct snd_kcontrol_new tert_tdm_rx_0_mixer_controls[] = {
  9857. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9858. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9859. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9860. msm_routing_put_audio_mixer),
  9861. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9862. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9863. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9864. msm_routing_put_audio_mixer),
  9865. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9866. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9867. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9868. msm_routing_put_audio_mixer),
  9869. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9870. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9871. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9872. msm_routing_put_audio_mixer),
  9873. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9874. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9875. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9876. msm_routing_put_audio_mixer),
  9877. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9878. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9879. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9880. msm_routing_put_audio_mixer),
  9881. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9882. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9883. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9884. msm_routing_put_audio_mixer),
  9885. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9886. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9887. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9888. msm_routing_put_audio_mixer),
  9889. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9890. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9891. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9892. msm_routing_put_audio_mixer),
  9893. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9894. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9895. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9896. msm_routing_put_audio_mixer),
  9897. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9898. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9899. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9900. msm_routing_put_audio_mixer),
  9901. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9902. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9903. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9904. msm_routing_put_audio_mixer),
  9905. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9906. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9907. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9908. msm_routing_put_audio_mixer),
  9909. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9910. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9911. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9912. msm_routing_put_audio_mixer),
  9913. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9914. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9915. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9916. msm_routing_put_audio_mixer),
  9917. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9918. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9919. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9920. msm_routing_put_audio_mixer),
  9921. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9922. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9923. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9924. msm_routing_put_audio_mixer),
  9925. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9926. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9927. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9928. msm_routing_put_audio_mixer),
  9929. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9930. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9931. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9932. msm_routing_put_audio_mixer),
  9933. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9934. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9935. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9936. msm_routing_put_audio_mixer),
  9937. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9938. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9939. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9940. msm_routing_put_audio_mixer),
  9941. };
  9942. static const struct snd_kcontrol_new tert_tdm_tx_0_mixer_controls[] = {
  9943. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9944. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9945. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9946. msm_routing_put_audio_mixer),
  9947. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9948. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9949. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9950. msm_routing_put_audio_mixer),
  9951. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9952. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9953. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9954. msm_routing_put_audio_mixer),
  9955. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9956. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9957. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9958. msm_routing_put_audio_mixer),
  9959. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9960. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9961. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9962. msm_routing_put_audio_mixer),
  9963. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9964. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9965. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9966. msm_routing_put_audio_mixer),
  9967. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9968. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9969. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9970. msm_routing_put_audio_mixer),
  9971. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9972. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9973. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9974. msm_routing_put_audio_mixer),
  9975. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9976. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9977. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9978. msm_routing_put_audio_mixer),
  9979. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9980. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9981. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9982. msm_routing_put_audio_mixer),
  9983. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9984. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9985. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9986. msm_routing_put_audio_mixer),
  9987. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9988. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9989. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9990. msm_routing_put_audio_mixer),
  9991. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9992. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9993. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9994. msm_routing_put_audio_mixer),
  9995. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9996. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9997. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9998. msm_routing_put_audio_mixer),
  9999. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10000. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10001. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10002. msm_routing_put_audio_mixer),
  10003. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10004. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10005. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10006. msm_routing_put_audio_mixer),
  10007. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10008. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10009. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10010. msm_routing_put_audio_mixer),
  10011. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10012. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10013. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10014. msm_routing_put_audio_mixer),
  10015. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10016. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10017. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10018. msm_routing_put_audio_mixer),
  10019. };
  10020. static const struct snd_kcontrol_new tert_tdm_rx_1_mixer_controls[] = {
  10021. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10022. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10023. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10024. msm_routing_put_audio_mixer),
  10025. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10026. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10027. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10028. msm_routing_put_audio_mixer),
  10029. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10030. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10031. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10032. msm_routing_put_audio_mixer),
  10033. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10034. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10035. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10036. msm_routing_put_audio_mixer),
  10037. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10038. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10039. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10040. msm_routing_put_audio_mixer),
  10041. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10042. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10043. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10044. msm_routing_put_audio_mixer),
  10045. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10046. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10047. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10048. msm_routing_put_audio_mixer),
  10049. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10050. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10051. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10052. msm_routing_put_audio_mixer),
  10053. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10054. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10055. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10056. msm_routing_put_audio_mixer),
  10057. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10058. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10059. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10060. msm_routing_put_audio_mixer),
  10061. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10062. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10063. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10064. msm_routing_put_audio_mixer),
  10065. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10066. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10067. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10068. msm_routing_put_audio_mixer),
  10069. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10070. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10071. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10072. msm_routing_put_audio_mixer),
  10073. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10074. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10075. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10076. msm_routing_put_audio_mixer),
  10077. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10078. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10079. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10080. msm_routing_put_audio_mixer),
  10081. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10082. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10083. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10084. msm_routing_put_audio_mixer),
  10085. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10086. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10087. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10088. msm_routing_put_audio_mixer),
  10089. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10090. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10091. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10092. msm_routing_put_audio_mixer),
  10093. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10094. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10095. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10096. msm_routing_put_audio_mixer),
  10097. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10098. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10099. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10100. msm_routing_put_audio_mixer),
  10101. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10102. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10103. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10104. msm_routing_put_audio_mixer),
  10105. };
  10106. static const struct snd_kcontrol_new tert_tdm_rx_2_mixer_controls[] = {
  10107. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10108. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10109. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10110. msm_routing_put_audio_mixer),
  10111. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10112. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10113. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10114. msm_routing_put_audio_mixer),
  10115. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10116. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10117. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10118. msm_routing_put_audio_mixer),
  10119. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10120. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10121. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10122. msm_routing_put_audio_mixer),
  10123. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10124. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10125. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10126. msm_routing_put_audio_mixer),
  10127. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10128. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10129. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10130. msm_routing_put_audio_mixer),
  10131. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10132. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10133. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10134. msm_routing_put_audio_mixer),
  10135. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10136. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10137. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10138. msm_routing_put_audio_mixer),
  10139. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10140. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10141. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10142. msm_routing_put_audio_mixer),
  10143. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10144. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10145. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10146. msm_routing_put_audio_mixer),
  10147. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10148. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10149. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10150. msm_routing_put_audio_mixer),
  10151. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10152. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10153. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10154. msm_routing_put_audio_mixer),
  10155. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10156. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10157. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10158. msm_routing_put_audio_mixer),
  10159. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10160. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10161. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10162. msm_routing_put_audio_mixer),
  10163. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10164. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10165. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10166. msm_routing_put_audio_mixer),
  10167. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10168. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10169. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10170. msm_routing_put_audio_mixer),
  10171. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10172. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10173. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10174. msm_routing_put_audio_mixer),
  10175. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10176. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10177. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10178. msm_routing_put_audio_mixer),
  10179. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10180. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10181. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10182. msm_routing_put_audio_mixer),
  10183. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10184. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10185. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10186. msm_routing_put_audio_mixer),
  10187. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10188. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10189. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10190. msm_routing_put_audio_mixer),
  10191. };
  10192. static const struct snd_kcontrol_new tert_tdm_rx_3_mixer_controls[] = {
  10193. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10194. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10195. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10196. msm_routing_put_audio_mixer),
  10197. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10198. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10199. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10200. msm_routing_put_audio_mixer),
  10201. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10202. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10203. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10204. msm_routing_put_audio_mixer),
  10205. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10206. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10207. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10208. msm_routing_put_audio_mixer),
  10209. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10210. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10211. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10212. msm_routing_put_audio_mixer),
  10213. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10214. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10215. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10216. msm_routing_put_audio_mixer),
  10217. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10218. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10219. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10220. msm_routing_put_audio_mixer),
  10221. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10222. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10223. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10224. msm_routing_put_audio_mixer),
  10225. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10226. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10227. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10228. msm_routing_put_audio_mixer),
  10229. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10230. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10231. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10232. msm_routing_put_audio_mixer),
  10233. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10234. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10235. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10236. msm_routing_put_audio_mixer),
  10237. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10238. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10239. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10240. msm_routing_put_audio_mixer),
  10241. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10242. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10243. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10244. msm_routing_put_audio_mixer),
  10245. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10246. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10247. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10248. msm_routing_put_audio_mixer),
  10249. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10250. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10251. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10252. msm_routing_put_audio_mixer),
  10253. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10254. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10255. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10256. msm_routing_put_audio_mixer),
  10257. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10258. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10259. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10260. msm_routing_put_audio_mixer),
  10261. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10262. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10263. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10264. msm_routing_put_audio_mixer),
  10265. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10266. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10267. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10268. msm_routing_put_audio_mixer),
  10269. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10270. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10271. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10272. msm_routing_put_audio_mixer),
  10273. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10274. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10275. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10276. msm_routing_put_audio_mixer),
  10277. };
  10278. static const struct snd_kcontrol_new tert_tdm_rx_4_mixer_controls[] = {
  10279. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10280. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10281. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10282. msm_routing_put_audio_mixer),
  10283. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10284. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10285. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10286. msm_routing_put_audio_mixer),
  10287. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10288. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10289. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10290. msm_routing_put_audio_mixer),
  10291. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10292. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10293. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10294. msm_routing_put_audio_mixer),
  10295. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10296. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10297. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10298. msm_routing_put_audio_mixer),
  10299. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10300. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10301. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10302. msm_routing_put_audio_mixer),
  10303. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10304. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10305. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10306. msm_routing_put_audio_mixer),
  10307. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10308. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10309. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10310. msm_routing_put_audio_mixer),
  10311. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10312. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10313. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10314. msm_routing_put_audio_mixer),
  10315. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10316. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10317. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10318. msm_routing_put_audio_mixer),
  10319. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10320. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10321. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10322. msm_routing_put_audio_mixer),
  10323. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10324. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10325. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10326. msm_routing_put_audio_mixer),
  10327. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10328. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10329. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10330. msm_routing_put_audio_mixer),
  10331. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10332. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10333. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10334. msm_routing_put_audio_mixer),
  10335. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10336. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10337. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10338. msm_routing_put_audio_mixer),
  10339. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10340. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10341. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10342. msm_routing_put_audio_mixer),
  10343. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10344. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10345. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10346. msm_routing_put_audio_mixer),
  10347. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10348. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10349. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10350. msm_routing_put_audio_mixer),
  10351. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10352. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10353. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10354. msm_routing_put_audio_mixer),
  10355. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10356. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10357. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10358. msm_routing_put_audio_mixer),
  10359. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10360. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10361. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10362. msm_routing_put_audio_mixer),
  10363. };
  10364. static const struct snd_kcontrol_new quat_tdm_rx_0_mixer_controls[] = {
  10365. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10366. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10367. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10368. msm_routing_put_audio_mixer),
  10369. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10370. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10371. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10372. msm_routing_put_audio_mixer),
  10373. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10374. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10375. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10376. msm_routing_put_audio_mixer),
  10377. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10378. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10379. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10380. msm_routing_put_audio_mixer),
  10381. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10382. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10383. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10384. msm_routing_put_audio_mixer),
  10385. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10386. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10387. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10388. msm_routing_put_audio_mixer),
  10389. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10390. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10391. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10392. msm_routing_put_audio_mixer),
  10393. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10394. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10395. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10396. msm_routing_put_audio_mixer),
  10397. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10398. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10399. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10400. msm_routing_put_audio_mixer),
  10401. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10402. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10403. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10404. msm_routing_put_audio_mixer),
  10405. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10406. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10407. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10408. msm_routing_put_audio_mixer),
  10409. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10410. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10411. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10412. msm_routing_put_audio_mixer),
  10413. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10414. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10415. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10416. msm_routing_put_audio_mixer),
  10417. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10418. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10419. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10420. msm_routing_put_audio_mixer),
  10421. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10422. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10423. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10424. msm_routing_put_audio_mixer),
  10425. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10426. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10427. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10428. msm_routing_put_audio_mixer),
  10429. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10430. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10431. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10432. msm_routing_put_audio_mixer),
  10433. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10434. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10435. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10436. msm_routing_put_audio_mixer),
  10437. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10438. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10439. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10440. msm_routing_put_audio_mixer),
  10441. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10442. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10443. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10444. msm_routing_put_audio_mixer),
  10445. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10446. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10447. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10448. msm_routing_put_audio_mixer),
  10449. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10450. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10451. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10452. msm_routing_put_audio_mixer),
  10453. };
  10454. static const struct snd_kcontrol_new quat_tdm_tx_0_mixer_controls[] = {
  10455. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10456. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10457. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10458. msm_routing_put_audio_mixer),
  10459. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10460. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10461. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10462. msm_routing_put_audio_mixer),
  10463. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10464. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10465. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10466. msm_routing_put_audio_mixer),
  10467. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10468. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10469. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10470. msm_routing_put_audio_mixer),
  10471. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10472. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10473. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10474. msm_routing_put_audio_mixer),
  10475. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10476. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10477. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10478. msm_routing_put_audio_mixer),
  10479. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10480. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10481. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10482. msm_routing_put_audio_mixer),
  10483. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10484. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10485. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10486. msm_routing_put_audio_mixer),
  10487. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10488. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10489. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10490. msm_routing_put_audio_mixer),
  10491. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10492. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10493. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10494. msm_routing_put_audio_mixer),
  10495. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10496. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10497. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10498. msm_routing_put_audio_mixer),
  10499. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10500. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10501. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10502. msm_routing_put_audio_mixer),
  10503. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10504. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10505. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10506. msm_routing_put_audio_mixer),
  10507. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10508. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10509. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10510. msm_routing_put_audio_mixer),
  10511. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10512. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10513. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10514. msm_routing_put_audio_mixer),
  10515. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10516. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10517. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10518. msm_routing_put_audio_mixer),
  10519. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10520. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10521. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10522. msm_routing_put_audio_mixer),
  10523. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10524. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10525. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10526. msm_routing_put_audio_mixer),
  10527. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10528. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10529. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10530. msm_routing_put_audio_mixer),
  10531. };
  10532. static const struct snd_kcontrol_new quat_tdm_rx_1_mixer_controls[] = {
  10533. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10534. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10535. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10536. msm_routing_put_audio_mixer),
  10537. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10538. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10539. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10540. msm_routing_put_audio_mixer),
  10541. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10542. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10543. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10544. msm_routing_put_audio_mixer),
  10545. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10546. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10547. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10548. msm_routing_put_audio_mixer),
  10549. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10550. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10551. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10552. msm_routing_put_audio_mixer),
  10553. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10554. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10555. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10556. msm_routing_put_audio_mixer),
  10557. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10558. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10559. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10560. msm_routing_put_audio_mixer),
  10561. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10562. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10563. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10564. msm_routing_put_audio_mixer),
  10565. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10566. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10567. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10568. msm_routing_put_audio_mixer),
  10569. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10570. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10571. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10572. msm_routing_put_audio_mixer),
  10573. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10574. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10575. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10576. msm_routing_put_audio_mixer),
  10577. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10578. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10579. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10580. msm_routing_put_audio_mixer),
  10581. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10582. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10583. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10584. msm_routing_put_audio_mixer),
  10585. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10586. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10587. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10588. msm_routing_put_audio_mixer),
  10589. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10590. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10591. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10592. msm_routing_put_audio_mixer),
  10593. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10594. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10595. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10596. msm_routing_put_audio_mixer),
  10597. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10598. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10599. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10600. msm_routing_put_audio_mixer),
  10601. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10602. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10603. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10604. msm_routing_put_audio_mixer),
  10605. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10606. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10607. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10608. msm_routing_put_audio_mixer),
  10609. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10610. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10611. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10612. msm_routing_put_audio_mixer),
  10613. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10614. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10615. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10616. msm_routing_put_audio_mixer),
  10617. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10618. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10619. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10620. msm_routing_put_audio_mixer),
  10621. };
  10622. static const struct snd_kcontrol_new quat_tdm_rx_2_mixer_controls[] = {
  10623. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10624. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10625. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10626. msm_routing_put_audio_mixer),
  10627. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10628. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10629. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10630. msm_routing_put_audio_mixer),
  10631. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10632. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10633. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10634. msm_routing_put_audio_mixer),
  10635. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10636. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10637. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10638. msm_routing_put_audio_mixer),
  10639. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10640. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10641. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10642. msm_routing_put_audio_mixer),
  10643. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10644. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10645. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10646. msm_routing_put_audio_mixer),
  10647. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10648. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10649. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10650. msm_routing_put_audio_mixer),
  10651. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10652. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10653. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10654. msm_routing_put_audio_mixer),
  10655. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10656. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10657. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10658. msm_routing_put_audio_mixer),
  10659. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10660. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10661. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10662. msm_routing_put_audio_mixer),
  10663. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10664. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10665. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10666. msm_routing_put_audio_mixer),
  10667. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10668. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10669. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10670. msm_routing_put_audio_mixer),
  10671. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10672. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10673. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10674. msm_routing_put_audio_mixer),
  10675. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10676. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10677. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10678. msm_routing_put_audio_mixer),
  10679. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10680. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10681. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10682. msm_routing_put_audio_mixer),
  10683. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10684. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10685. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10686. msm_routing_put_audio_mixer),
  10687. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10688. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10689. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10690. msm_routing_put_audio_mixer),
  10691. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10692. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10693. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10694. msm_routing_put_audio_mixer),
  10695. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10696. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10697. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10698. msm_routing_put_audio_mixer),
  10699. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10700. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10701. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10702. msm_routing_put_audio_mixer),
  10703. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10704. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10705. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10706. msm_routing_put_audio_mixer),
  10707. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10708. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10709. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10710. msm_routing_put_audio_mixer),
  10711. };
  10712. static const struct snd_kcontrol_new quat_tdm_rx_3_mixer_controls[] = {
  10713. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10714. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10715. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10716. msm_routing_put_audio_mixer),
  10717. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10718. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10719. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10720. msm_routing_put_audio_mixer),
  10721. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10722. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10723. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10724. msm_routing_put_audio_mixer),
  10725. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10726. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10727. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10728. msm_routing_put_audio_mixer),
  10729. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10730. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10731. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10732. msm_routing_put_audio_mixer),
  10733. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10734. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10735. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10736. msm_routing_put_audio_mixer),
  10737. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10738. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10739. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10740. msm_routing_put_audio_mixer),
  10741. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10742. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10743. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10744. msm_routing_put_audio_mixer),
  10745. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10746. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10747. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10748. msm_routing_put_audio_mixer),
  10749. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10750. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10751. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10752. msm_routing_put_audio_mixer),
  10753. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10754. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10755. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10756. msm_routing_put_audio_mixer),
  10757. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10758. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10759. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10760. msm_routing_put_audio_mixer),
  10761. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10762. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10763. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10764. msm_routing_put_audio_mixer),
  10765. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10766. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10767. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10768. msm_routing_put_audio_mixer),
  10769. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10770. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10771. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10772. msm_routing_put_audio_mixer),
  10773. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10774. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10775. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10776. msm_routing_put_audio_mixer),
  10777. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10778. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10779. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10780. msm_routing_put_audio_mixer),
  10781. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10782. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10783. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10784. msm_routing_put_audio_mixer),
  10785. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10786. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10787. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10788. msm_routing_put_audio_mixer),
  10789. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10790. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10791. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10792. msm_routing_put_audio_mixer),
  10793. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10794. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10795. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10796. msm_routing_put_audio_mixer),
  10797. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10798. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10799. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10800. msm_routing_put_audio_mixer),
  10801. };
  10802. static const struct snd_kcontrol_new quin_tdm_rx_0_mixer_controls[] = {
  10803. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10804. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10805. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10806. msm_routing_put_audio_mixer),
  10807. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10808. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10809. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10810. msm_routing_put_audio_mixer),
  10811. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10812. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10813. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10814. msm_routing_put_audio_mixer),
  10815. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10816. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10817. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10818. msm_routing_put_audio_mixer),
  10819. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10820. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10821. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10822. msm_routing_put_audio_mixer),
  10823. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10824. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10825. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10826. msm_routing_put_audio_mixer),
  10827. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10828. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10829. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10830. msm_routing_put_audio_mixer),
  10831. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10832. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10833. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10834. msm_routing_put_audio_mixer),
  10835. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10836. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10837. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10838. msm_routing_put_audio_mixer),
  10839. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10840. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10841. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10842. msm_routing_put_audio_mixer),
  10843. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10844. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10845. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10846. msm_routing_put_audio_mixer),
  10847. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10848. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10849. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10850. msm_routing_put_audio_mixer),
  10851. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10852. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10853. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10854. msm_routing_put_audio_mixer),
  10855. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10856. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10857. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10858. msm_routing_put_audio_mixer),
  10859. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10860. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10861. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10862. msm_routing_put_audio_mixer),
  10863. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10864. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10865. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10866. msm_routing_put_audio_mixer),
  10867. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10868. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10869. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10870. msm_routing_put_audio_mixer),
  10871. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10872. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10873. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10874. msm_routing_put_audio_mixer),
  10875. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10876. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10877. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10878. msm_routing_put_audio_mixer),
  10879. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10880. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10881. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10882. msm_routing_put_audio_mixer),
  10883. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10884. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10885. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10886. msm_routing_put_audio_mixer),
  10887. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10888. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10889. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10890. msm_routing_put_audio_mixer),
  10891. };
  10892. static const struct snd_kcontrol_new quin_tdm_tx_0_mixer_controls[] = {
  10893. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10894. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10895. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10896. msm_routing_put_audio_mixer),
  10897. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10898. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10899. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10900. msm_routing_put_audio_mixer),
  10901. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10902. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10903. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10904. msm_routing_put_audio_mixer),
  10905. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10906. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10907. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10908. msm_routing_put_audio_mixer),
  10909. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10910. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10911. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10912. msm_routing_put_audio_mixer),
  10913. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10914. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10915. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10916. msm_routing_put_audio_mixer),
  10917. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10918. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10919. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10920. msm_routing_put_audio_mixer),
  10921. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10922. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10923. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10924. msm_routing_put_audio_mixer),
  10925. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10926. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10927. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10928. msm_routing_put_audio_mixer),
  10929. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10930. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10931. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10932. msm_routing_put_audio_mixer),
  10933. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10934. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10935. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10936. msm_routing_put_audio_mixer),
  10937. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10938. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10939. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10940. msm_routing_put_audio_mixer),
  10941. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10942. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10943. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10944. msm_routing_put_audio_mixer),
  10945. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10946. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10947. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10948. msm_routing_put_audio_mixer),
  10949. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10950. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10951. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10952. msm_routing_put_audio_mixer),
  10953. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10954. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10955. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10956. msm_routing_put_audio_mixer),
  10957. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10958. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10959. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10960. msm_routing_put_audio_mixer),
  10961. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10962. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10963. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10964. msm_routing_put_audio_mixer),
  10965. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10966. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10967. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10968. msm_routing_put_audio_mixer),
  10969. };
  10970. static const struct snd_kcontrol_new quin_tdm_tx_1_mixer_controls[] = {
  10971. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10972. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10973. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10974. msm_routing_put_audio_mixer),
  10975. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10976. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10977. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10978. msm_routing_put_audio_mixer),
  10979. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10980. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10981. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10982. msm_routing_put_audio_mixer),
  10983. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10984. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10985. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10986. msm_routing_put_audio_mixer),
  10987. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10988. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10989. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10990. msm_routing_put_audio_mixer),
  10991. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10992. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10993. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10994. msm_routing_put_audio_mixer),
  10995. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10996. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10997. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10998. msm_routing_put_audio_mixer),
  10999. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11000. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11001. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11002. msm_routing_put_audio_mixer),
  11003. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11004. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11005. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11006. msm_routing_put_audio_mixer),
  11007. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11008. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11009. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11010. msm_routing_put_audio_mixer),
  11011. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11012. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11013. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11014. msm_routing_put_audio_mixer),
  11015. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11016. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11017. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11018. msm_routing_put_audio_mixer),
  11019. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11020. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11021. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11022. msm_routing_put_audio_mixer),
  11023. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11024. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11025. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11026. msm_routing_put_audio_mixer),
  11027. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11028. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11029. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11030. msm_routing_put_audio_mixer),
  11031. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11032. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11033. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11034. msm_routing_put_audio_mixer),
  11035. };
  11036. static const struct snd_kcontrol_new quin_tdm_rx_1_mixer_controls[] = {
  11037. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11038. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11039. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11040. msm_routing_put_audio_mixer),
  11041. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11042. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11043. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11044. msm_routing_put_audio_mixer),
  11045. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11046. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11047. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11048. msm_routing_put_audio_mixer),
  11049. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11050. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11051. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11052. msm_routing_put_audio_mixer),
  11053. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11054. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11055. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11056. msm_routing_put_audio_mixer),
  11057. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11058. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11059. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11060. msm_routing_put_audio_mixer),
  11061. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11062. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11063. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11064. msm_routing_put_audio_mixer),
  11065. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11066. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11067. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11068. msm_routing_put_audio_mixer),
  11069. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11070. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11071. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11072. msm_routing_put_audio_mixer),
  11073. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11074. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11075. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11076. msm_routing_put_audio_mixer),
  11077. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11078. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11079. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11080. msm_routing_put_audio_mixer),
  11081. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11082. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11083. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11084. msm_routing_put_audio_mixer),
  11085. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11086. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11087. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11088. msm_routing_put_audio_mixer),
  11089. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11090. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11091. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11092. msm_routing_put_audio_mixer),
  11093. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11094. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11095. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11096. msm_routing_put_audio_mixer),
  11097. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11098. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11099. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11100. msm_routing_put_audio_mixer),
  11101. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11102. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11103. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11104. msm_routing_put_audio_mixer),
  11105. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11106. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11107. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11108. msm_routing_put_audio_mixer),
  11109. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11110. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11111. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11112. msm_routing_put_audio_mixer),
  11113. };
  11114. static const struct snd_kcontrol_new quin_tdm_tx_2_mixer_controls[] = {
  11115. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11116. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11117. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11118. msm_routing_put_audio_mixer),
  11119. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11120. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11121. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11122. msm_routing_put_audio_mixer),
  11123. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11124. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11125. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11126. msm_routing_put_audio_mixer),
  11127. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11128. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11129. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11130. msm_routing_put_audio_mixer),
  11131. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11132. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11133. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11134. msm_routing_put_audio_mixer),
  11135. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11136. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11137. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11138. msm_routing_put_audio_mixer),
  11139. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11140. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11141. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11142. msm_routing_put_audio_mixer),
  11143. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11144. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11145. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11146. msm_routing_put_audio_mixer),
  11147. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11148. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11149. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11150. msm_routing_put_audio_mixer),
  11151. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11152. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11153. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11154. msm_routing_put_audio_mixer),
  11155. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11156. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11157. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11158. msm_routing_put_audio_mixer),
  11159. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11160. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11161. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11162. msm_routing_put_audio_mixer),
  11163. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11164. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11165. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11166. msm_routing_put_audio_mixer),
  11167. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11168. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11169. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11170. msm_routing_put_audio_mixer),
  11171. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11172. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11173. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11174. msm_routing_put_audio_mixer),
  11175. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11176. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11177. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11178. msm_routing_put_audio_mixer),
  11179. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11180. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11181. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11182. msm_routing_put_audio_mixer),
  11183. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11184. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11185. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11186. msm_routing_put_audio_mixer),
  11187. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11188. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11189. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11190. msm_routing_put_audio_mixer),
  11191. };
  11192. static const struct snd_kcontrol_new quin_tdm_rx_2_mixer_controls[] = {
  11193. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11194. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11195. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11196. msm_routing_put_audio_mixer),
  11197. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11198. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11199. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11200. msm_routing_put_audio_mixer),
  11201. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11202. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11203. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11204. msm_routing_put_audio_mixer),
  11205. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11206. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11207. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11208. msm_routing_put_audio_mixer),
  11209. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11210. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11211. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11212. msm_routing_put_audio_mixer),
  11213. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11214. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11215. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11216. msm_routing_put_audio_mixer),
  11217. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11218. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11219. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11220. msm_routing_put_audio_mixer),
  11221. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11222. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11223. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11224. msm_routing_put_audio_mixer),
  11225. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11226. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11227. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11228. msm_routing_put_audio_mixer),
  11229. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11230. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11231. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11232. msm_routing_put_audio_mixer),
  11233. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11234. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11235. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11236. msm_routing_put_audio_mixer),
  11237. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11238. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11239. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11240. msm_routing_put_audio_mixer),
  11241. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11242. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11243. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11244. msm_routing_put_audio_mixer),
  11245. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11246. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11247. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11248. msm_routing_put_audio_mixer),
  11249. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11250. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11251. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11252. msm_routing_put_audio_mixer),
  11253. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11254. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11255. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11256. msm_routing_put_audio_mixer),
  11257. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11258. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11259. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11260. msm_routing_put_audio_mixer),
  11261. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11262. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11263. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11264. msm_routing_put_audio_mixer),
  11265. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11266. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11267. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11268. msm_routing_put_audio_mixer),
  11269. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11270. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11271. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11272. msm_routing_put_audio_mixer),
  11273. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11274. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11275. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11276. msm_routing_put_audio_mixer),
  11277. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11278. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11279. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11280. msm_routing_put_audio_mixer),
  11281. };
  11282. static const struct snd_kcontrol_new quin_tdm_tx_3_mixer_controls[] = {
  11283. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11284. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11285. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11286. msm_routing_put_audio_mixer),
  11287. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11288. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11289. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11290. msm_routing_put_audio_mixer),
  11291. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11292. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11293. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11294. msm_routing_put_audio_mixer),
  11295. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11296. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11297. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11298. msm_routing_put_audio_mixer),
  11299. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11300. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11301. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11302. msm_routing_put_audio_mixer),
  11303. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11304. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11305. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11306. msm_routing_put_audio_mixer),
  11307. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11308. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11309. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11310. msm_routing_put_audio_mixer),
  11311. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11312. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11313. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11314. msm_routing_put_audio_mixer),
  11315. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11316. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11317. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11318. msm_routing_put_audio_mixer),
  11319. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11320. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11321. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11322. msm_routing_put_audio_mixer),
  11323. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11324. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11325. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11326. msm_routing_put_audio_mixer),
  11327. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11328. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11329. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11330. msm_routing_put_audio_mixer),
  11331. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11332. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11333. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11334. msm_routing_put_audio_mixer),
  11335. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11336. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11337. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11338. msm_routing_put_audio_mixer),
  11339. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11340. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11341. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11342. msm_routing_put_audio_mixer),
  11343. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11344. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11345. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11346. msm_routing_put_audio_mixer),
  11347. };
  11348. static const struct snd_kcontrol_new quin_tdm_rx_3_mixer_controls[] = {
  11349. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11350. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11351. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11352. msm_routing_put_audio_mixer),
  11353. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11354. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11355. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11356. msm_routing_put_audio_mixer),
  11357. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11358. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11359. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11360. msm_routing_put_audio_mixer),
  11361. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11362. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11363. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11364. msm_routing_put_audio_mixer),
  11365. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11366. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11367. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11368. msm_routing_put_audio_mixer),
  11369. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11370. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11371. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11372. msm_routing_put_audio_mixer),
  11373. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11374. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11375. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11376. msm_routing_put_audio_mixer),
  11377. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11378. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11379. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11380. msm_routing_put_audio_mixer),
  11381. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11382. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11383. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11384. msm_routing_put_audio_mixer),
  11385. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11386. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11387. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11388. msm_routing_put_audio_mixer),
  11389. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11390. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11391. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11392. msm_routing_put_audio_mixer),
  11393. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11394. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11395. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11396. msm_routing_put_audio_mixer),
  11397. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11398. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11399. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11400. msm_routing_put_audio_mixer),
  11401. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11402. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11403. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11404. msm_routing_put_audio_mixer),
  11405. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11406. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11407. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11408. msm_routing_put_audio_mixer),
  11409. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11410. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11411. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11412. msm_routing_put_audio_mixer),
  11413. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11414. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11415. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11416. msm_routing_put_audio_mixer),
  11417. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11418. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11419. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11420. msm_routing_put_audio_mixer),
  11421. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11422. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11423. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11424. msm_routing_put_audio_mixer),
  11425. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11426. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11427. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11428. msm_routing_put_audio_mixer),
  11429. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11430. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11431. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11432. msm_routing_put_audio_mixer),
  11433. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11434. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11435. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11436. msm_routing_put_audio_mixer),
  11437. };
  11438. static const struct snd_kcontrol_new sen_tdm_rx_0_mixer_controls[] = {
  11439. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11440. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11441. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11442. msm_routing_put_audio_mixer),
  11443. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11444. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11445. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11446. msm_routing_put_audio_mixer),
  11447. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11448. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11449. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11450. msm_routing_put_audio_mixer),
  11451. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11452. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11453. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11454. msm_routing_put_audio_mixer),
  11455. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11456. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11457. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11458. msm_routing_put_audio_mixer),
  11459. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11460. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11461. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11462. msm_routing_put_audio_mixer),
  11463. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11464. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11465. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11466. msm_routing_put_audio_mixer),
  11467. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11468. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11469. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11470. msm_routing_put_audio_mixer),
  11471. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11472. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11473. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11474. msm_routing_put_audio_mixer),
  11475. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11476. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11477. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11478. msm_routing_put_audio_mixer),
  11479. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11480. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11481. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11482. msm_routing_put_audio_mixer),
  11483. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11484. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11485. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11486. msm_routing_put_audio_mixer),
  11487. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11488. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11489. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11490. msm_routing_put_audio_mixer),
  11491. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11492. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11493. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11494. msm_routing_put_audio_mixer),
  11495. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11496. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11497. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11498. msm_routing_put_audio_mixer),
  11499. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11500. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11501. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11502. msm_routing_put_audio_mixer),
  11503. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11504. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11505. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11506. msm_routing_put_audio_mixer),
  11507. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11508. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11509. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11510. msm_routing_put_audio_mixer),
  11511. };
  11512. static const struct snd_kcontrol_new sen_tdm_tx_0_mixer_controls[] = {
  11513. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11514. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11515. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11516. msm_routing_put_audio_mixer),
  11517. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11518. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11519. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11520. msm_routing_put_audio_mixer),
  11521. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11522. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11523. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11524. msm_routing_put_audio_mixer),
  11525. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11526. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11527. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11528. msm_routing_put_audio_mixer),
  11529. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11530. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11531. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11532. msm_routing_put_audio_mixer),
  11533. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11534. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11535. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11536. msm_routing_put_audio_mixer),
  11537. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11538. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11539. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11540. msm_routing_put_audio_mixer),
  11541. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11542. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11543. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11544. msm_routing_put_audio_mixer),
  11545. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11546. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11547. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11548. msm_routing_put_audio_mixer),
  11549. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11550. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11551. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11552. msm_routing_put_audio_mixer),
  11553. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11554. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11555. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11556. msm_routing_put_audio_mixer),
  11557. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11558. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11559. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11560. msm_routing_put_audio_mixer),
  11561. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11562. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11563. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11564. msm_routing_put_audio_mixer),
  11565. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11566. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11567. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11568. msm_routing_put_audio_mixer),
  11569. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11570. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11571. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11572. msm_routing_put_audio_mixer),
  11573. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11574. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11575. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11576. msm_routing_put_audio_mixer),
  11577. };
  11578. static const struct snd_kcontrol_new sen_tdm_rx_1_mixer_controls[] = {
  11579. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11580. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11581. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11582. msm_routing_put_audio_mixer),
  11583. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11584. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11585. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11586. msm_routing_put_audio_mixer),
  11587. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11588. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11589. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11590. msm_routing_put_audio_mixer),
  11591. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11592. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11593. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11594. msm_routing_put_audio_mixer),
  11595. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11596. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11597. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11598. msm_routing_put_audio_mixer),
  11599. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11600. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11601. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11602. msm_routing_put_audio_mixer),
  11603. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11604. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11605. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11606. msm_routing_put_audio_mixer),
  11607. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11608. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11609. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11610. msm_routing_put_audio_mixer),
  11611. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11612. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11613. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11614. msm_routing_put_audio_mixer),
  11615. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11616. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11617. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11618. msm_routing_put_audio_mixer),
  11619. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11620. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11621. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11622. msm_routing_put_audio_mixer),
  11623. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11624. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11625. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11626. msm_routing_put_audio_mixer),
  11627. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11628. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11629. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11630. msm_routing_put_audio_mixer),
  11631. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11632. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11633. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11634. msm_routing_put_audio_mixer),
  11635. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11636. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11637. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11638. msm_routing_put_audio_mixer),
  11639. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11640. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11641. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11642. msm_routing_put_audio_mixer),
  11643. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11644. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11645. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11646. msm_routing_put_audio_mixer),
  11647. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11648. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11649. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11650. msm_routing_put_audio_mixer),
  11651. };
  11652. static const struct snd_kcontrol_new sen_tdm_rx_2_mixer_controls[] = {
  11653. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11654. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11655. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11656. msm_routing_put_audio_mixer),
  11657. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11658. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11659. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11660. msm_routing_put_audio_mixer),
  11661. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11662. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11663. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11664. msm_routing_put_audio_mixer),
  11665. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11666. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11667. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11668. msm_routing_put_audio_mixer),
  11669. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11670. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11671. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11672. msm_routing_put_audio_mixer),
  11673. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11674. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11675. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11676. msm_routing_put_audio_mixer),
  11677. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11678. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11679. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11680. msm_routing_put_audio_mixer),
  11681. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11682. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11683. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11684. msm_routing_put_audio_mixer),
  11685. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11686. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11687. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11688. msm_routing_put_audio_mixer),
  11689. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11690. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11691. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11692. msm_routing_put_audio_mixer),
  11693. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11694. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11695. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11696. msm_routing_put_audio_mixer),
  11697. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11698. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11699. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11700. msm_routing_put_audio_mixer),
  11701. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11702. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11703. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11704. msm_routing_put_audio_mixer),
  11705. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11706. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11707. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11708. msm_routing_put_audio_mixer),
  11709. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11710. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11711. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11712. msm_routing_put_audio_mixer),
  11713. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11714. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11715. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11716. msm_routing_put_audio_mixer),
  11717. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11718. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11719. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11720. msm_routing_put_audio_mixer),
  11721. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11722. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11723. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11724. msm_routing_put_audio_mixer),
  11725. };
  11726. static const struct snd_kcontrol_new sen_tdm_rx_3_mixer_controls[] = {
  11727. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11728. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11729. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11730. msm_routing_put_audio_mixer),
  11731. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11732. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11733. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11734. msm_routing_put_audio_mixer),
  11735. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11736. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11737. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11738. msm_routing_put_audio_mixer),
  11739. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11740. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11741. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11742. msm_routing_put_audio_mixer),
  11743. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11744. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11745. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11746. msm_routing_put_audio_mixer),
  11747. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11748. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11749. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11750. msm_routing_put_audio_mixer),
  11751. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11752. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11753. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11754. msm_routing_put_audio_mixer),
  11755. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11756. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11757. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11758. msm_routing_put_audio_mixer),
  11759. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11760. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11761. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11762. msm_routing_put_audio_mixer),
  11763. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11764. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11765. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11766. msm_routing_put_audio_mixer),
  11767. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11768. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11769. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11770. msm_routing_put_audio_mixer),
  11771. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11772. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11773. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11774. msm_routing_put_audio_mixer),
  11775. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11776. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11777. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11778. msm_routing_put_audio_mixer),
  11779. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11780. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11781. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11782. msm_routing_put_audio_mixer),
  11783. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11784. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11785. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11786. msm_routing_put_audio_mixer),
  11787. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11788. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11789. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11790. msm_routing_put_audio_mixer),
  11791. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11792. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11793. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11794. msm_routing_put_audio_mixer),
  11795. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11796. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11797. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11798. msm_routing_put_audio_mixer),
  11799. };
  11800. static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
  11801. SOC_DOUBLE_EXT("PRI_TX", SND_SOC_NOPM,
  11802. MSM_BACKEND_DAI_PRI_I2S_TX,
  11803. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11804. msm_routing_put_audio_mixer),
  11805. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11806. MSM_BACKEND_DAI_MI2S_TX,
  11807. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11808. msm_routing_put_audio_mixer),
  11809. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11810. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11811. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11812. msm_routing_put_audio_mixer),
  11813. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11814. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11815. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11816. msm_routing_put_audio_mixer),
  11817. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11818. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11819. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11820. msm_routing_put_audio_mixer),
  11821. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11822. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11823. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11824. msm_routing_put_audio_mixer),
  11825. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11826. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11827. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11828. msm_routing_put_audio_mixer),
  11829. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11830. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11831. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11832. msm_routing_put_audio_mixer),
  11833. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11834. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11835. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11836. msm_routing_put_audio_mixer),
  11837. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11838. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11839. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11840. msm_routing_put_audio_mixer),
  11841. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11842. MSM_BACKEND_DAI_AUXPCM_TX,
  11843. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11844. msm_routing_put_audio_mixer),
  11845. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11846. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11847. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11848. msm_routing_put_audio_mixer),
  11849. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11850. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  11851. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11852. msm_routing_put_audio_mixer),
  11853. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11854. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  11855. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11856. msm_routing_put_audio_mixer),
  11857. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  11858. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  11859. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11860. msm_routing_put_audio_mixer),
  11861. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  11862. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  11863. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11864. msm_routing_put_audio_mixer),
  11865. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11866. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11867. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11868. msm_routing_put_audio_mixer),
  11869. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11870. MSM_BACKEND_DAI_INT_FM_TX,
  11871. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11872. msm_routing_put_audio_mixer),
  11873. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11874. MSM_BACKEND_DAI_AFE_PCM_TX,
  11875. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11876. msm_routing_put_audio_mixer),
  11877. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11878. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11879. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11880. msm_routing_put_audio_mixer),
  11881. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11882. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11883. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11884. msm_routing_put_audio_mixer),
  11885. SOC_DOUBLE_EXT("SLIM_4_TX", SND_SOC_NOPM,
  11886. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  11887. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11888. msm_routing_put_audio_mixer),
  11889. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  11890. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  11891. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11892. msm_routing_put_audio_mixer),
  11893. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11894. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  11895. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11896. msm_routing_put_audio_mixer),
  11897. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  11898. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  11899. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11900. msm_routing_put_audio_mixer),
  11901. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11902. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11903. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11904. msm_routing_put_audio_mixer),
  11905. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11906. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11907. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11908. msm_routing_put_audio_mixer),
  11909. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11910. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11911. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11912. msm_routing_put_audio_mixer),
  11913. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11914. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11915. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11916. msm_routing_put_audio_mixer),
  11917. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11918. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11919. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11920. msm_routing_put_audio_mixer),
  11921. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11922. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11923. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11924. msm_routing_put_audio_mixer),
  11925. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11926. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11927. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11928. msm_routing_put_audio_mixer),
  11929. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11930. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11931. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11932. msm_routing_put_audio_mixer),
  11933. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11934. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11935. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11936. msm_routing_put_audio_mixer),
  11937. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11938. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11939. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11940. msm_routing_put_audio_mixer),
  11941. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11942. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11943. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11944. msm_routing_put_audio_mixer),
  11945. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11946. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11947. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11948. msm_routing_put_audio_mixer),
  11949. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11950. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11951. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11952. msm_routing_put_audio_mixer),
  11953. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11954. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11955. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11956. msm_routing_put_audio_mixer),
  11957. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11958. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11959. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11960. msm_routing_put_audio_mixer),
  11961. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11962. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11963. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11964. msm_routing_put_audio_mixer),
  11965. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11966. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11967. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11968. msm_routing_put_audio_mixer),
  11969. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11970. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11971. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11972. msm_routing_put_audio_mixer),
  11973. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11974. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11975. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11976. msm_routing_put_audio_mixer),
  11977. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11978. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11979. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11980. msm_routing_put_audio_mixer),
  11981. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  11982. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11983. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11984. msm_routing_put_audio_mixer),
  11985. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  11986. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  11987. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11988. msm_routing_put_audio_mixer),
  11989. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  11990. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  11991. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11992. msm_routing_put_audio_mixer),
  11993. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  11994. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  11995. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11996. msm_routing_put_audio_mixer),
  11997. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  11998. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  11999. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12000. msm_routing_put_audio_mixer),
  12001. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12002. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12003. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12004. msm_routing_put_audio_mixer),
  12005. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12006. MSM_BACKEND_DAI_USB_TX,
  12007. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12008. msm_routing_put_audio_mixer),
  12009. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12010. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12011. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12012. msm_routing_put_audio_mixer),
  12013. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12014. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12015. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12016. msm_routing_put_audio_mixer),
  12017. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12018. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12019. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12020. msm_routing_put_audio_mixer),
  12021. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12022. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12023. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12024. msm_routing_put_audio_mixer),
  12025. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12026. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12027. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12028. msm_routing_put_audio_mixer),
  12029. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12030. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12031. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12032. msm_routing_put_audio_mixer),
  12033. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12034. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12035. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12036. msm_routing_put_audio_mixer),
  12037. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12038. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12039. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12040. msm_routing_put_audio_mixer),
  12041. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12042. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12043. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12044. msm_routing_put_audio_mixer),
  12045. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12046. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12047. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12048. msm_routing_put_audio_mixer),
  12049. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12050. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12051. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12052. msm_routing_put_audio_mixer),
  12053. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12054. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12055. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12056. msm_routing_put_audio_mixer),
  12057. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12058. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12059. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12060. msm_routing_put_audio_mixer),
  12061. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12062. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12063. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12064. msm_routing_put_audio_mixer),
  12065. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  12066. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  12067. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12068. msm_routing_put_audio_mixer),
  12069. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12070. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12071. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12072. msm_routing_put_audio_mixer),
  12073. };
  12074. static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
  12075. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12076. MSM_BACKEND_DAI_INT_FM_TX,
  12077. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12078. msm_routing_put_audio_mixer),
  12079. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12080. MSM_BACKEND_DAI_MI2S_TX,
  12081. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12082. msm_routing_put_audio_mixer),
  12083. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12084. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12085. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12086. msm_routing_put_audio_mixer),
  12087. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12088. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12089. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12090. msm_routing_put_audio_mixer),
  12091. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12092. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12093. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12094. msm_routing_put_audio_mixer),
  12095. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12096. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12097. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12098. msm_routing_put_audio_mixer),
  12099. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12100. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12101. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12102. msm_routing_put_audio_mixer),
  12103. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12104. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12105. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12106. msm_routing_put_audio_mixer),
  12107. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12108. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12109. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12110. msm_routing_put_audio_mixer),
  12111. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  12112. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  12113. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12114. msm_routing_put_audio_mixer),
  12115. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12116. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12117. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12118. msm_routing_put_audio_mixer),
  12119. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  12120. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  12121. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12122. msm_routing_put_audio_mixer),
  12123. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  12124. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  12125. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12126. msm_routing_put_audio_mixer),
  12127. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12128. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12129. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12130. msm_routing_put_audio_mixer),
  12131. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12132. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12133. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12134. msm_routing_put_audio_mixer),
  12135. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12136. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12137. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12138. msm_routing_put_audio_mixer),
  12139. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12140. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12141. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12142. msm_routing_put_audio_mixer),
  12143. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12144. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12145. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12146. msm_routing_put_audio_mixer),
  12147. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12148. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12149. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12150. msm_routing_put_audio_mixer),
  12151. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12152. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12153. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12154. msm_routing_put_audio_mixer),
  12155. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12156. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12157. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12158. msm_routing_put_audio_mixer),
  12159. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12160. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12161. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12162. msm_routing_put_audio_mixer),
  12163. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12164. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12165. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12166. msm_routing_put_audio_mixer),
  12167. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12168. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12169. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12170. msm_routing_put_audio_mixer),
  12171. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12172. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12173. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12174. msm_routing_put_audio_mixer),
  12175. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12176. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12177. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12178. msm_routing_put_audio_mixer),
  12179. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12180. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12181. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12182. msm_routing_put_audio_mixer),
  12183. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12184. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12185. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12186. msm_routing_put_audio_mixer),
  12187. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12188. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12189. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12190. msm_routing_put_audio_mixer),
  12191. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12192. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12193. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12194. msm_routing_put_audio_mixer),
  12195. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12196. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12197. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12198. msm_routing_put_audio_mixer),
  12199. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12200. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12201. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12202. msm_routing_put_audio_mixer),
  12203. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12204. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12205. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12206. msm_routing_put_audio_mixer),
  12207. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12208. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12209. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12210. msm_routing_put_audio_mixer),
  12211. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12212. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12213. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12214. msm_routing_put_audio_mixer),
  12215. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12216. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12217. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12218. msm_routing_put_audio_mixer),
  12219. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12220. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12221. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12222. msm_routing_put_audio_mixer),
  12223. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12224. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12225. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12226. msm_routing_put_audio_mixer),
  12227. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12228. MSM_BACKEND_DAI_USB_TX,
  12229. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12230. msm_routing_put_audio_mixer),
  12231. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12232. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12233. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12234. msm_routing_put_audio_mixer),
  12235. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12236. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12237. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12238. msm_routing_put_audio_mixer),
  12239. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12240. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12241. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12242. msm_routing_put_audio_mixer),
  12243. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12244. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12245. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12246. msm_routing_put_audio_mixer),
  12247. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12248. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12249. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12250. msm_routing_put_audio_mixer),
  12251. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12252. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12253. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12254. msm_routing_put_audio_mixer),
  12255. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12256. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12257. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12258. msm_routing_put_audio_mixer),
  12259. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12260. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12261. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12262. msm_routing_put_audio_mixer),
  12263. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12264. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12265. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12266. msm_routing_put_audio_mixer),
  12267. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12268. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12269. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12270. msm_routing_put_audio_mixer),
  12271. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12272. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12273. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12274. msm_routing_put_audio_mixer),
  12275. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12276. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12277. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12278. msm_routing_put_audio_mixer),
  12279. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12280. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12281. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12282. msm_routing_put_audio_mixer),
  12283. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12284. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12285. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12286. msm_routing_put_audio_mixer),
  12287. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  12288. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  12289. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12290. msm_routing_put_audio_mixer),
  12291. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12292. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12293. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12294. msm_routing_put_audio_mixer),
  12295. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  12296. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12297. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12298. msm_routing_put_audio_mixer),
  12299. };
  12300. static const struct snd_kcontrol_new mmul3_mixer_controls[] = {
  12301. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12302. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12303. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12304. msm_routing_put_audio_mixer),
  12305. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12306. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12307. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12308. msm_routing_put_audio_mixer),
  12309. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12310. MSM_BACKEND_DAI_INT_FM_TX,
  12311. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12312. msm_routing_put_audio_mixer),
  12313. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12314. MSM_BACKEND_DAI_MI2S_TX,
  12315. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12316. msm_routing_put_audio_mixer),
  12317. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12318. MSM_BACKEND_DAI_AFE_PCM_TX,
  12319. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12320. msm_routing_put_audio_mixer),
  12321. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12322. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12323. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12324. msm_routing_put_audio_mixer),
  12325. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  12326. MSM_BACKEND_DAI_AUXPCM_TX,
  12327. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12328. msm_routing_put_audio_mixer),
  12329. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  12330. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12331. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12332. msm_routing_put_audio_mixer),
  12333. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  12334. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12335. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12336. msm_routing_put_audio_mixer),
  12337. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  12338. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12339. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12340. msm_routing_put_audio_mixer),
  12341. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  12342. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12343. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12344. msm_routing_put_audio_mixer),
  12345. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX", SND_SOC_NOPM,
  12346. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  12347. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12348. msm_routing_put_audio_mixer),
  12349. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12350. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12351. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12352. msm_routing_put_audio_mixer),
  12353. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12354. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12355. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12356. msm_routing_put_audio_mixer),
  12357. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12358. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12359. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12360. msm_routing_put_audio_mixer),
  12361. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12362. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12363. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12364. msm_routing_put_audio_mixer),
  12365. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12366. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12367. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12368. msm_routing_put_audio_mixer),
  12369. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12370. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12371. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12372. msm_routing_put_audio_mixer),
  12373. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12374. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12375. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12376. msm_routing_put_audio_mixer),
  12377. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12378. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12379. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12380. msm_routing_put_audio_mixer),
  12381. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12382. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12383. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12384. msm_routing_put_audio_mixer),
  12385. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12386. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12387. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12388. msm_routing_put_audio_mixer),
  12389. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12390. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12391. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12392. msm_routing_put_audio_mixer),
  12393. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12394. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12395. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12396. msm_routing_put_audio_mixer),
  12397. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12398. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12399. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12400. msm_routing_put_audio_mixer),
  12401. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12402. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12403. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12404. msm_routing_put_audio_mixer),
  12405. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12406. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12407. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12408. msm_routing_put_audio_mixer),
  12409. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12410. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12411. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12412. msm_routing_put_audio_mixer),
  12413. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12414. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12415. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12416. msm_routing_put_audio_mixer),
  12417. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12418. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12419. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12420. msm_routing_put_audio_mixer),
  12421. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12422. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12423. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12424. msm_routing_put_audio_mixer),
  12425. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12426. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12427. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12428. msm_routing_put_audio_mixer),
  12429. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12430. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12431. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12432. msm_routing_put_audio_mixer),
  12433. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12434. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12435. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12436. msm_routing_put_audio_mixer),
  12437. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12438. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12439. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12440. msm_routing_put_audio_mixer),
  12441. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12442. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12443. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12444. msm_routing_put_audio_mixer),
  12445. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12446. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12447. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12448. msm_routing_put_audio_mixer),
  12449. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12450. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12451. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12452. msm_routing_put_audio_mixer),
  12453. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12454. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12455. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12456. msm_routing_put_audio_mixer),
  12457. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12458. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12459. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12460. msm_routing_put_audio_mixer),
  12461. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12462. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12463. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12464. msm_routing_put_audio_mixer),
  12465. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12466. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12467. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12468. msm_routing_put_audio_mixer),
  12469. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12470. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12471. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12472. msm_routing_put_audio_mixer),
  12473. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12474. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12475. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12476. msm_routing_put_audio_mixer),
  12477. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12478. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12479. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12480. msm_routing_put_audio_mixer),
  12481. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12482. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12483. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12484. msm_routing_put_audio_mixer),
  12485. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12486. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12487. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12488. msm_routing_put_audio_mixer),
  12489. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12490. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12491. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12492. msm_routing_put_audio_mixer),
  12493. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12494. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12495. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12496. msm_routing_put_audio_mixer),
  12497. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12498. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12499. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12500. msm_routing_put_audio_mixer),
  12501. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12502. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12503. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12504. msm_routing_put_audio_mixer),
  12505. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12506. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12507. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12508. msm_routing_put_audio_mixer),
  12509. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12510. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12511. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12512. msm_routing_put_audio_mixer),
  12513. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12514. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12515. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12516. msm_routing_put_audio_mixer),
  12517. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12518. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12519. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12520. msm_routing_put_audio_mixer),
  12521. };
  12522. static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
  12523. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12524. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12525. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12526. msm_routing_put_audio_mixer),
  12527. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12528. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12529. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12530. msm_routing_put_audio_mixer),
  12531. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12532. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12533. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12534. msm_routing_put_audio_mixer),
  12535. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12536. MSM_BACKEND_DAI_INT_FM_TX,
  12537. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12538. msm_routing_put_audio_mixer),
  12539. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12540. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12541. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12542. msm_routing_put_audio_mixer),
  12543. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12544. MSM_BACKEND_DAI_AFE_PCM_TX,
  12545. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12546. msm_routing_put_audio_mixer),
  12547. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12548. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12549. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12550. msm_routing_put_audio_mixer),
  12551. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12552. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12553. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12554. msm_routing_put_audio_mixer),
  12555. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12556. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12557. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12558. msm_routing_put_audio_mixer),
  12559. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12560. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12561. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12562. msm_routing_put_audio_mixer),
  12563. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12564. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12565. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12566. msm_routing_put_audio_mixer),
  12567. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12568. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12569. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12570. msm_routing_put_audio_mixer),
  12571. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12572. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12573. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12574. msm_routing_put_audio_mixer),
  12575. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12576. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12577. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12578. msm_routing_put_audio_mixer),
  12579. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12580. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12581. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12582. msm_routing_put_audio_mixer),
  12583. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12584. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12585. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12586. msm_routing_put_audio_mixer),
  12587. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12588. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12589. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12590. msm_routing_put_audio_mixer),
  12591. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12592. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12593. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12594. msm_routing_put_audio_mixer),
  12595. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12596. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12597. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12598. msm_routing_put_audio_mixer),
  12599. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12600. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12601. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12602. msm_routing_put_audio_mixer),
  12603. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12604. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12605. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12606. msm_routing_put_audio_mixer),
  12607. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12608. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12609. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12610. msm_routing_put_audio_mixer),
  12611. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12612. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12613. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12614. msm_routing_put_audio_mixer),
  12615. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12616. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12617. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12618. msm_routing_put_audio_mixer),
  12619. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12620. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12621. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12622. msm_routing_put_audio_mixer),
  12623. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12624. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12625. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12626. msm_routing_put_audio_mixer),
  12627. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12628. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12629. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12630. msm_routing_put_audio_mixer),
  12631. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12632. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12633. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12634. msm_routing_put_audio_mixer),
  12635. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12636. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12637. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12638. msm_routing_put_audio_mixer),
  12639. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12640. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12641. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12642. msm_routing_put_audio_mixer),
  12643. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12644. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12645. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12646. msm_routing_put_audio_mixer),
  12647. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12648. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12649. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12650. msm_routing_put_audio_mixer),
  12651. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12652. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12653. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12654. msm_routing_put_audio_mixer),
  12655. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12656. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12657. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12658. msm_routing_put_audio_mixer),
  12659. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12660. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12661. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12662. msm_routing_put_audio_mixer),
  12663. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12664. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12665. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12666. msm_routing_put_audio_mixer),
  12667. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12668. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12669. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12670. msm_routing_put_audio_mixer),
  12671. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12672. MSM_BACKEND_DAI_USB_TX,
  12673. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12674. msm_routing_put_audio_mixer),
  12675. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12676. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12677. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12678. msm_routing_put_audio_mixer),
  12679. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12680. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12681. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12682. msm_routing_put_audio_mixer),
  12683. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12684. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12685. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12686. msm_routing_put_audio_mixer),
  12687. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12688. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12689. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12690. msm_routing_put_audio_mixer),
  12691. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12692. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12693. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12694. msm_routing_put_audio_mixer),
  12695. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12696. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12697. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12698. msm_routing_put_audio_mixer),
  12699. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12700. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12701. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12702. msm_routing_put_audio_mixer),
  12703. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12704. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12705. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12706. msm_routing_put_audio_mixer),
  12707. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12708. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12709. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12710. msm_routing_put_audio_mixer),
  12711. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12712. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12713. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12714. msm_routing_put_audio_mixer),
  12715. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12716. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12717. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12718. msm_routing_put_audio_mixer),
  12719. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12720. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12721. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12722. msm_routing_put_audio_mixer),
  12723. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12724. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12725. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12726. msm_routing_put_audio_mixer),
  12727. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12728. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12729. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12730. msm_routing_put_audio_mixer),
  12731. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12732. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12733. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12734. msm_routing_put_audio_mixer),
  12735. };
  12736. static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
  12737. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12738. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12739. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12740. msm_routing_put_audio_mixer),
  12741. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12742. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12743. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12744. msm_routing_put_audio_mixer),
  12745. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12746. MSM_BACKEND_DAI_INT_FM_TX,
  12747. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12748. msm_routing_put_audio_mixer),
  12749. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12750. MSM_BACKEND_DAI_MI2S_TX,
  12751. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12752. msm_routing_put_audio_mixer),
  12753. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12754. MSM_BACKEND_DAI_AFE_PCM_TX,
  12755. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12756. msm_routing_put_audio_mixer),
  12757. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12758. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12759. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12760. msm_routing_put_audio_mixer),
  12761. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12762. MSM_BACKEND_DAI_AUXPCM_TX,
  12763. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12764. msm_routing_put_audio_mixer),
  12765. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  12766. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12767. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12768. msm_routing_put_audio_mixer),
  12769. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  12770. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12771. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12772. msm_routing_put_audio_mixer),
  12773. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  12774. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12775. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12776. msm_routing_put_audio_mixer),
  12777. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  12778. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12779. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12780. msm_routing_put_audio_mixer),
  12781. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX", SND_SOC_NOPM,
  12782. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  12783. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12784. msm_routing_put_audio_mixer),
  12785. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12786. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12787. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12788. msm_routing_put_audio_mixer),
  12789. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12790. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12791. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12792. msm_routing_put_audio_mixer),
  12793. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12794. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12795. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12796. msm_routing_put_audio_mixer),
  12797. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12798. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12799. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12800. msm_routing_put_audio_mixer),
  12801. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12802. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12803. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12804. msm_routing_put_audio_mixer),
  12805. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12806. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12807. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12808. msm_routing_put_audio_mixer),
  12809. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12810. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12811. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12812. msm_routing_put_audio_mixer),
  12813. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12814. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12815. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12816. msm_routing_put_audio_mixer),
  12817. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12818. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12819. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12820. msm_routing_put_audio_mixer),
  12821. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12822. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12823. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12824. msm_routing_put_audio_mixer),
  12825. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12826. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12827. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12828. msm_routing_put_audio_mixer),
  12829. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12830. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12831. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12832. msm_routing_put_audio_mixer),
  12833. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12834. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12835. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12836. msm_routing_put_audio_mixer),
  12837. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12838. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12839. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12840. msm_routing_put_audio_mixer),
  12841. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12842. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12843. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12844. msm_routing_put_audio_mixer),
  12845. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12846. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12847. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12848. msm_routing_put_audio_mixer),
  12849. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12850. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12851. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12852. msm_routing_put_audio_mixer),
  12853. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12854. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12855. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12856. msm_routing_put_audio_mixer),
  12857. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12858. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12859. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12860. msm_routing_put_audio_mixer),
  12861. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12862. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12863. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12864. msm_routing_put_audio_mixer),
  12865. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12866. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12867. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12868. msm_routing_put_audio_mixer),
  12869. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12870. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12871. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12872. msm_routing_put_audio_mixer),
  12873. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12874. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12875. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12876. msm_routing_put_audio_mixer),
  12877. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12878. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12879. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12880. msm_routing_put_audio_mixer),
  12881. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12882. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12883. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12884. msm_routing_put_audio_mixer),
  12885. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12886. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12887. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12888. msm_routing_put_audio_mixer),
  12889. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12890. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12891. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12892. msm_routing_put_audio_mixer),
  12893. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12894. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12895. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12896. msm_routing_put_audio_mixer),
  12897. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12898. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12899. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12900. msm_routing_put_audio_mixer),
  12901. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12902. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12903. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12904. msm_routing_put_audio_mixer),
  12905. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12906. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12907. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12908. msm_routing_put_audio_mixer),
  12909. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12910. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12911. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12912. msm_routing_put_audio_mixer),
  12913. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12914. MSM_BACKEND_DAI_USB_TX,
  12915. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12916. msm_routing_put_audio_mixer),
  12917. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12918. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12919. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12920. msm_routing_put_audio_mixer),
  12921. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12922. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12923. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12924. msm_routing_put_audio_mixer),
  12925. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12926. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12927. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12928. msm_routing_put_audio_mixer),
  12929. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12930. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12931. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12932. msm_routing_put_audio_mixer),
  12933. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12934. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12935. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12936. msm_routing_put_audio_mixer),
  12937. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12938. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12939. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12940. msm_routing_put_audio_mixer),
  12941. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12942. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12943. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12944. msm_routing_put_audio_mixer),
  12945. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12946. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12947. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12948. msm_routing_put_audio_mixer),
  12949. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12950. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12951. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12952. msm_routing_put_audio_mixer),
  12953. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12954. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12955. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12956. msm_routing_put_audio_mixer),
  12957. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12958. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12959. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12960. msm_routing_put_audio_mixer),
  12961. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12962. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12963. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12964. msm_routing_put_audio_mixer),
  12965. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12966. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12967. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12968. msm_routing_put_audio_mixer),
  12969. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12970. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12971. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12972. msm_routing_put_audio_mixer),
  12973. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  12974. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  12975. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12976. msm_routing_put_audio_mixer),
  12977. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12978. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12979. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12980. msm_routing_put_audio_mixer),
  12981. };
  12982. static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
  12983. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12984. MSM_BACKEND_DAI_INT_FM_TX,
  12985. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12986. msm_routing_put_audio_mixer),
  12987. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12988. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12989. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12990. msm_routing_put_audio_mixer),
  12991. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12992. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12993. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12994. msm_routing_put_audio_mixer),
  12995. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12996. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12997. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12998. msm_routing_put_audio_mixer),
  12999. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13000. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13001. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13002. msm_routing_put_audio_mixer),
  13003. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13004. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13005. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13006. msm_routing_put_audio_mixer),
  13007. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13008. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13009. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13010. msm_routing_put_audio_mixer),
  13011. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13012. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13013. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13014. msm_routing_put_audio_mixer),
  13015. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13016. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13017. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13018. msm_routing_put_audio_mixer),
  13019. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13020. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  13021. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13022. msm_routing_put_audio_mixer),
  13023. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  13024. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  13025. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13026. msm_routing_put_audio_mixer),
  13027. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13028. MSM_BACKEND_DAI_AUXPCM_TX,
  13029. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13030. msm_routing_put_audio_mixer),
  13031. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13032. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13033. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13034. msm_routing_put_audio_mixer),
  13035. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13036. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  13037. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13038. msm_routing_put_audio_mixer),
  13039. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13040. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13041. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13042. msm_routing_put_audio_mixer),
  13043. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13044. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13045. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13046. msm_routing_put_audio_mixer),
  13047. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13048. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13049. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13050. msm_routing_put_audio_mixer),
  13051. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13052. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13053. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13054. msm_routing_put_audio_mixer),
  13055. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13056. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13057. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13058. msm_routing_put_audio_mixer),
  13059. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13060. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13061. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13062. msm_routing_put_audio_mixer),
  13063. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13064. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13065. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13066. msm_routing_put_audio_mixer),
  13067. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13068. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13069. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13070. msm_routing_put_audio_mixer),
  13071. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13072. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13073. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13074. msm_routing_put_audio_mixer),
  13075. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13076. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13077. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13078. msm_routing_put_audio_mixer),
  13079. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13080. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13081. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13082. msm_routing_put_audio_mixer),
  13083. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13084. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13085. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13086. msm_routing_put_audio_mixer),
  13087. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13088. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13089. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13090. msm_routing_put_audio_mixer),
  13091. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13092. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13093. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13094. msm_routing_put_audio_mixer),
  13095. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13096. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13097. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13098. msm_routing_put_audio_mixer),
  13099. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13100. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13101. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13102. msm_routing_put_audio_mixer),
  13103. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13104. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13105. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13106. msm_routing_put_audio_mixer),
  13107. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13108. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13109. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13110. msm_routing_put_audio_mixer),
  13111. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13112. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13113. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13114. msm_routing_put_audio_mixer),
  13115. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13116. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13117. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13118. msm_routing_put_audio_mixer),
  13119. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13120. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13121. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13122. msm_routing_put_audio_mixer),
  13123. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13124. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13125. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13126. msm_routing_put_audio_mixer),
  13127. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13128. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13129. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13130. msm_routing_put_audio_mixer),
  13131. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13132. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13133. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13134. msm_routing_put_audio_mixer),
  13135. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13136. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13137. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13138. msm_routing_put_audio_mixer),
  13139. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13140. MSM_BACKEND_DAI_USB_TX,
  13141. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13142. msm_routing_put_audio_mixer),
  13143. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13144. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13145. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13146. msm_routing_put_audio_mixer),
  13147. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13148. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13149. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13150. msm_routing_put_audio_mixer),
  13151. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13152. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13153. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13154. msm_routing_put_audio_mixer),
  13155. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13156. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13157. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13158. msm_routing_put_audio_mixer),
  13159. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13160. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13161. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13162. msm_routing_put_audio_mixer),
  13163. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13164. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13165. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13166. msm_routing_put_audio_mixer),
  13167. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13168. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13169. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13170. msm_routing_put_audio_mixer),
  13171. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13172. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13173. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13174. msm_routing_put_audio_mixer),
  13175. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13176. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13177. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13178. msm_routing_put_audio_mixer),
  13179. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13180. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13181. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13182. msm_routing_put_audio_mixer),
  13183. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13184. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13185. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13186. msm_routing_put_audio_mixer),
  13187. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13188. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13189. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13190. msm_routing_put_audio_mixer),
  13191. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13192. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13193. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13194. msm_routing_put_audio_mixer),
  13195. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13196. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13197. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13198. msm_routing_put_audio_mixer),
  13199. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13200. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13201. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13202. msm_routing_put_audio_mixer),
  13203. };
  13204. static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
  13205. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13206. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13207. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13208. msm_routing_put_audio_mixer),
  13209. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13210. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13211. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13212. msm_routing_put_audio_mixer),
  13213. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13214. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13215. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13216. msm_routing_put_audio_mixer),
  13217. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13218. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13219. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13220. msm_routing_put_audio_mixer),
  13221. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13222. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13223. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13224. msm_routing_put_audio_mixer),
  13225. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13226. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13227. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13228. msm_routing_put_audio_mixer),
  13229. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13230. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13231. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13232. msm_routing_put_audio_mixer),
  13233. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13234. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13235. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13236. msm_routing_put_audio_mixer),
  13237. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13238. MSM_BACKEND_DAI_INT_FM_TX,
  13239. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13240. msm_routing_put_audio_mixer),
  13241. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13242. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13243. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13244. msm_routing_put_audio_mixer),
  13245. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13246. MSM_BACKEND_DAI_AFE_PCM_TX,
  13247. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13248. msm_routing_put_audio_mixer),
  13249. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13250. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13251. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13252. msm_routing_put_audio_mixer),
  13253. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13254. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13255. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13256. msm_routing_put_audio_mixer),
  13257. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13258. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13259. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13260. msm_routing_put_audio_mixer),
  13261. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13262. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13263. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13264. msm_routing_put_audio_mixer),
  13265. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13266. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13267. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13268. msm_routing_put_audio_mixer),
  13269. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13270. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13271. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13272. msm_routing_put_audio_mixer),
  13273. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13274. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13275. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13276. msm_routing_put_audio_mixer),
  13277. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13278. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13279. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13280. msm_routing_put_audio_mixer),
  13281. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13282. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13283. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13284. msm_routing_put_audio_mixer),
  13285. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13286. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13287. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13288. msm_routing_put_audio_mixer),
  13289. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13290. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13291. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13292. msm_routing_put_audio_mixer),
  13293. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13294. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13295. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13296. msm_routing_put_audio_mixer),
  13297. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13298. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13299. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13300. msm_routing_put_audio_mixer),
  13301. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13302. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13303. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13304. msm_routing_put_audio_mixer),
  13305. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13306. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13307. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13308. msm_routing_put_audio_mixer),
  13309. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13310. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13311. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13312. msm_routing_put_audio_mixer),
  13313. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13314. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13315. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13316. msm_routing_put_audio_mixer),
  13317. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13318. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13319. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13320. msm_routing_put_audio_mixer),
  13321. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13322. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13323. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13324. msm_routing_put_audio_mixer),
  13325. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13326. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13327. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13328. msm_routing_put_audio_mixer),
  13329. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13330. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13331. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13332. msm_routing_put_audio_mixer),
  13333. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13334. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13335. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13336. msm_routing_put_audio_mixer),
  13337. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13338. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13339. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13340. msm_routing_put_audio_mixer),
  13341. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13342. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13343. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13344. msm_routing_put_audio_mixer),
  13345. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13346. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13347. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13348. msm_routing_put_audio_mixer),
  13349. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13350. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13351. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13352. msm_routing_put_audio_mixer),
  13353. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13354. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13355. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13356. msm_routing_put_audio_mixer),
  13357. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13358. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13359. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13360. msm_routing_put_audio_mixer),
  13361. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13362. MSM_BACKEND_DAI_USB_TX,
  13363. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13364. msm_routing_put_audio_mixer),
  13365. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13366. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13367. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13368. msm_routing_put_audio_mixer),
  13369. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13370. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13371. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13372. msm_routing_put_audio_mixer),
  13373. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13374. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13375. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13376. msm_routing_put_audio_mixer),
  13377. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13378. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13379. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13380. msm_routing_put_audio_mixer),
  13381. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13382. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13383. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13384. msm_routing_put_audio_mixer),
  13385. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13386. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13387. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13388. msm_routing_put_audio_mixer),
  13389. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13390. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13391. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13392. msm_routing_put_audio_mixer),
  13393. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13394. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13395. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13396. msm_routing_put_audio_mixer),
  13397. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13398. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13399. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13400. msm_routing_put_audio_mixer),
  13401. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13402. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13403. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13404. msm_routing_put_audio_mixer),
  13405. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13406. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13407. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13408. msm_routing_put_audio_mixer),
  13409. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13410. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13411. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13412. msm_routing_put_audio_mixer),
  13413. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13414. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13415. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13416. msm_routing_put_audio_mixer),
  13417. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13418. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13419. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13420. msm_routing_put_audio_mixer),
  13421. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13422. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13423. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13424. msm_routing_put_audio_mixer),
  13425. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13426. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13427. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13428. msm_routing_put_audio_mixer),
  13429. };
  13430. static const struct snd_kcontrol_new mmul16_mixer_controls[] = {
  13431. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13432. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13433. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13434. msm_routing_put_audio_mixer),
  13435. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13436. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13437. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13438. msm_routing_put_audio_mixer),
  13439. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13440. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13441. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13442. msm_routing_put_audio_mixer),
  13443. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13444. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13445. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13446. msm_routing_put_audio_mixer),
  13447. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13448. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13449. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13450. msm_routing_put_audio_mixer),
  13451. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13452. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13453. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13454. msm_routing_put_audio_mixer),
  13455. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13456. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13457. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13458. msm_routing_put_audio_mixer),
  13459. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13460. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13461. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13462. msm_routing_put_audio_mixer),
  13463. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13464. MSM_BACKEND_DAI_INT_FM_TX,
  13465. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13466. msm_routing_put_audio_mixer),
  13467. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13468. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13469. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13470. msm_routing_put_audio_mixer),
  13471. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13472. MSM_BACKEND_DAI_AFE_PCM_TX,
  13473. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13474. msm_routing_put_audio_mixer),
  13475. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13476. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13477. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13478. msm_routing_put_audio_mixer),
  13479. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13480. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13481. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13482. msm_routing_put_audio_mixer),
  13483. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13484. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13485. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13486. msm_routing_put_audio_mixer),
  13487. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13488. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13489. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13490. msm_routing_put_audio_mixer),
  13491. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13492. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13493. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13494. msm_routing_put_audio_mixer),
  13495. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13496. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13497. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13498. msm_routing_put_audio_mixer),
  13499. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13500. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13501. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13502. msm_routing_put_audio_mixer),
  13503. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13504. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13505. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13506. msm_routing_put_audio_mixer),
  13507. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13508. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13509. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13510. msm_routing_put_audio_mixer),
  13511. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13512. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13513. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13514. msm_routing_put_audio_mixer),
  13515. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13516. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13517. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13518. msm_routing_put_audio_mixer),
  13519. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13520. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13521. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13522. msm_routing_put_audio_mixer),
  13523. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13524. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13525. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13526. msm_routing_put_audio_mixer),
  13527. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13528. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13529. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13530. msm_routing_put_audio_mixer),
  13531. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13532. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13533. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13534. msm_routing_put_audio_mixer),
  13535. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13536. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13537. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13538. msm_routing_put_audio_mixer),
  13539. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13540. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13541. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13542. msm_routing_put_audio_mixer),
  13543. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13544. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13545. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13546. msm_routing_put_audio_mixer),
  13547. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13548. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13549. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13550. msm_routing_put_audio_mixer),
  13551. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13552. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13553. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13554. msm_routing_put_audio_mixer),
  13555. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13556. MSM_BACKEND_DAI_USB_TX,
  13557. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13558. msm_routing_put_audio_mixer),
  13559. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13560. MSM_BACKEND_DAI_MI2S_TX,
  13561. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13562. msm_routing_put_audio_mixer),
  13563. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  13564. MSM_BACKEND_DAI_AUXPCM_TX,
  13565. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13566. msm_routing_put_audio_mixer),
  13567. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  13568. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13569. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13570. msm_routing_put_audio_mixer),
  13571. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  13572. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13573. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13574. msm_routing_put_audio_mixer),
  13575. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13576. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13577. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13578. msm_routing_put_audio_mixer),
  13579. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13580. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13581. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13582. msm_routing_put_audio_mixer),
  13583. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13584. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13585. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13586. msm_routing_put_audio_mixer),
  13587. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13588. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13589. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13590. msm_routing_put_audio_mixer),
  13591. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13592. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13593. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13594. msm_routing_put_audio_mixer),
  13595. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13596. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13597. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13598. msm_routing_put_audio_mixer),
  13599. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13600. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13601. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13602. msm_routing_get_audio_mixer,
  13603. msm_routing_put_audio_mixer),
  13604. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13605. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13606. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13607. msm_routing_get_audio_mixer,
  13608. msm_routing_put_audio_mixer),
  13609. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13610. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13611. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13612. msm_routing_get_audio_mixer,
  13613. msm_routing_put_audio_mixer),
  13614. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13615. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13616. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13617. msm_routing_get_audio_mixer,
  13618. msm_routing_put_audio_mixer),
  13619. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13620. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13621. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13622. msm_routing_get_audio_mixer,
  13623. msm_routing_put_audio_mixer),
  13624. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13625. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13626. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13627. msm_routing_get_audio_mixer,
  13628. msm_routing_put_audio_mixer),
  13629. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13630. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13631. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13632. msm_routing_put_audio_mixer),
  13633. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13634. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13635. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13636. msm_routing_put_audio_mixer),
  13637. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13638. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13639. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13640. msm_routing_put_audio_mixer),
  13641. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13642. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13643. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13644. msm_routing_put_audio_mixer),
  13645. };
  13646. static const struct snd_kcontrol_new mmul9_mixer_controls[] = {
  13647. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13648. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13649. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13650. msm_routing_put_audio_mixer),
  13651. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13652. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13653. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13654. msm_routing_put_audio_mixer),
  13655. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13656. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13657. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13658. msm_routing_put_audio_mixer),
  13659. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13660. MSM_BACKEND_DAI_INT_FM_TX,
  13661. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13662. msm_routing_put_audio_mixer),
  13663. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13664. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13665. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13666. msm_routing_put_audio_mixer),
  13667. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13668. MSM_BACKEND_DAI_AFE_PCM_TX,
  13669. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13670. msm_routing_put_audio_mixer),
  13671. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13672. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13673. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13674. msm_routing_put_audio_mixer),
  13675. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13676. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13677. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13678. msm_routing_put_audio_mixer),
  13679. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13680. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13681. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13682. msm_routing_put_audio_mixer),
  13683. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13684. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13685. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13686. msm_routing_put_audio_mixer),
  13687. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13688. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13689. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13690. msm_routing_put_audio_mixer),
  13691. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13692. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13693. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13694. msm_routing_put_audio_mixer),
  13695. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13696. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13697. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13698. msm_routing_put_audio_mixer),
  13699. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13700. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13701. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13702. msm_routing_put_audio_mixer),
  13703. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13704. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13705. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13706. msm_routing_put_audio_mixer),
  13707. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13708. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13709. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13710. msm_routing_put_audio_mixer),
  13711. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13712. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13713. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13714. msm_routing_put_audio_mixer),
  13715. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13716. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13717. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13718. msm_routing_put_audio_mixer),
  13719. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13720. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13721. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13722. msm_routing_put_audio_mixer),
  13723. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13724. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13725. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13726. msm_routing_put_audio_mixer),
  13727. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13728. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13729. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13730. msm_routing_put_audio_mixer),
  13731. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13732. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13733. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13734. msm_routing_put_audio_mixer),
  13735. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13736. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13737. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13738. msm_routing_put_audio_mixer),
  13739. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13740. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13741. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13742. msm_routing_put_audio_mixer),
  13743. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13744. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13745. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13746. msm_routing_put_audio_mixer),
  13747. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13748. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13749. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13750. msm_routing_put_audio_mixer),
  13751. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13752. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13753. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13754. msm_routing_put_audio_mixer),
  13755. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13756. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13757. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13758. msm_routing_put_audio_mixer),
  13759. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13760. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13761. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13762. msm_routing_put_audio_mixer),
  13763. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13764. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13765. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13766. msm_routing_put_audio_mixer),
  13767. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13768. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13769. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13770. msm_routing_put_audio_mixer),
  13771. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13772. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13773. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13774. msm_routing_put_audio_mixer),
  13775. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13776. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13777. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13778. msm_routing_put_audio_mixer),
  13779. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13780. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13781. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13782. msm_routing_put_audio_mixer),
  13783. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13784. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13785. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13786. msm_routing_put_audio_mixer),
  13787. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13788. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13789. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13790. msm_routing_put_audio_mixer),
  13791. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13792. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13793. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13794. msm_routing_put_audio_mixer),
  13795. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13796. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13797. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13798. msm_routing_put_audio_mixer),
  13799. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13800. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13801. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13802. msm_routing_put_audio_mixer),
  13803. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13804. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13805. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13806. msm_routing_put_audio_mixer),
  13807. };
  13808. static const struct snd_kcontrol_new mmul10_mixer_controls[] = {
  13809. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13810. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13811. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13812. msm_routing_put_audio_mixer),
  13813. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13814. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13815. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13816. msm_routing_put_audio_mixer),
  13817. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13818. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13819. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13820. msm_routing_put_audio_mixer),
  13821. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13822. MSM_BACKEND_DAI_INT_FM_TX,
  13823. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13824. msm_routing_put_audio_mixer),
  13825. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13826. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13827. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13828. msm_routing_put_audio_mixer),
  13829. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13830. MSM_BACKEND_DAI_AFE_PCM_TX,
  13831. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13832. msm_routing_put_audio_mixer),
  13833. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13834. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13835. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13836. msm_routing_put_audio_mixer),
  13837. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13838. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13839. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13840. msm_routing_put_audio_mixer),
  13841. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13842. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13843. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13844. msm_routing_put_audio_mixer),
  13845. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13846. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13847. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13848. msm_routing_put_audio_mixer),
  13849. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13850. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13851. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13852. msm_routing_put_audio_mixer),
  13853. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13854. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13855. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13856. msm_routing_put_audio_mixer),
  13857. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13858. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13859. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13860. msm_routing_put_audio_mixer),
  13861. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13862. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13863. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13864. msm_routing_put_audio_mixer),
  13865. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13866. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13867. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13868. msm_routing_put_audio_mixer),
  13869. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13870. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13871. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13872. msm_routing_put_audio_mixer),
  13873. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13874. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13875. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13876. msm_routing_put_audio_mixer),
  13877. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13878. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13879. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13880. msm_routing_put_audio_mixer),
  13881. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13882. MSM_BACKEND_DAI_USB_TX,
  13883. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13884. msm_routing_put_audio_mixer),
  13885. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13886. MSM_BACKEND_DAI_MI2S_TX,
  13887. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13888. msm_routing_put_audio_mixer),
  13889. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  13890. MSM_BACKEND_DAI_AUXPCM_TX,
  13891. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13892. msm_routing_put_audio_mixer),
  13893. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  13894. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13895. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13896. msm_routing_put_audio_mixer),
  13897. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  13898. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  13899. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13900. msm_routing_put_audio_mixer),
  13901. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  13902. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13903. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13904. msm_routing_put_audio_mixer),
  13905. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13906. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13907. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13908. msm_routing_put_audio_mixer),
  13909. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13910. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13911. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13912. msm_routing_put_audio_mixer),
  13913. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13914. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13915. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13916. msm_routing_put_audio_mixer),
  13917. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13918. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13919. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13920. msm_routing_put_audio_mixer),
  13921. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13922. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13923. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13924. msm_routing_put_audio_mixer),
  13925. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13926. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13927. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13928. msm_routing_put_audio_mixer),
  13929. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13930. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13931. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13932. msm_routing_put_audio_mixer),
  13933. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13934. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13935. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13936. msm_routing_put_audio_mixer),
  13937. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13938. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13939. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13940. msm_routing_put_audio_mixer),
  13941. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13942. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13943. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13944. msm_routing_get_audio_mixer,
  13945. msm_routing_put_audio_mixer),
  13946. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13947. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13948. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13949. msm_routing_get_audio_mixer,
  13950. msm_routing_put_audio_mixer),
  13951. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13952. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13953. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13954. msm_routing_get_audio_mixer,
  13955. msm_routing_put_audio_mixer),
  13956. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13957. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13958. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13959. msm_routing_get_audio_mixer,
  13960. msm_routing_put_audio_mixer),
  13961. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13962. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13963. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13964. msm_routing_get_audio_mixer,
  13965. msm_routing_put_audio_mixer),
  13966. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13967. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13968. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13969. msm_routing_get_audio_mixer,
  13970. msm_routing_put_audio_mixer),
  13971. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13972. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13973. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13974. msm_routing_put_audio_mixer),
  13975. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13976. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13977. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13978. msm_routing_put_audio_mixer),
  13979. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13980. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13981. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13982. msm_routing_put_audio_mixer),
  13983. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13984. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13985. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13986. msm_routing_put_audio_mixer),
  13987. };
  13988. static const struct snd_kcontrol_new mmul17_mixer_controls[] = {
  13989. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13990. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13991. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13992. msm_routing_put_audio_mixer),
  13993. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13994. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13995. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13996. msm_routing_put_audio_mixer),
  13997. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13998. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13999. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14000. msm_routing_put_audio_mixer),
  14001. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14002. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14003. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14004. msm_routing_put_audio_mixer),
  14005. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14006. MSM_BACKEND_DAI_INT_FM_TX,
  14007. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14008. msm_routing_put_audio_mixer),
  14009. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14010. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14011. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14012. msm_routing_put_audio_mixer),
  14013. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14014. MSM_BACKEND_DAI_AFE_PCM_TX,
  14015. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14016. msm_routing_put_audio_mixer),
  14017. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14018. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14019. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14020. msm_routing_put_audio_mixer),
  14021. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14022. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14023. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14024. msm_routing_put_audio_mixer),
  14025. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14026. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14027. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14028. msm_routing_put_audio_mixer),
  14029. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14030. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14031. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14032. msm_routing_put_audio_mixer),
  14033. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14034. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14035. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14036. msm_routing_put_audio_mixer),
  14037. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14038. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14039. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14040. msm_routing_put_audio_mixer),
  14041. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14042. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14043. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14044. msm_routing_put_audio_mixer),
  14045. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14046. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14047. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14048. msm_routing_put_audio_mixer),
  14049. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14050. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14051. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14052. msm_routing_put_audio_mixer),
  14053. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14054. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14055. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14056. msm_routing_put_audio_mixer),
  14057. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14058. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14059. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14060. msm_routing_get_audio_mixer,
  14061. msm_routing_put_audio_mixer),
  14062. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14063. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14064. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14065. msm_routing_get_audio_mixer,
  14066. msm_routing_put_audio_mixer),
  14067. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14068. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14069. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14070. msm_routing_get_audio_mixer,
  14071. msm_routing_put_audio_mixer),
  14072. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14073. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14074. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14075. msm_routing_get_audio_mixer,
  14076. msm_routing_put_audio_mixer),
  14077. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14078. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14079. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14080. msm_routing_get_audio_mixer,
  14081. msm_routing_put_audio_mixer),
  14082. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14083. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14084. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14085. msm_routing_get_audio_mixer,
  14086. msm_routing_put_audio_mixer),
  14087. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14088. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14089. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14090. msm_routing_put_audio_mixer),
  14091. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14092. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14093. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14094. msm_routing_put_audio_mixer),
  14095. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14096. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14097. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14098. msm_routing_put_audio_mixer),
  14099. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  14100. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  14101. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14102. msm_routing_put_audio_mixer),
  14103. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  14104. MSM_BACKEND_DAI_USB_TX,
  14105. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14106. msm_routing_put_audio_mixer),
  14107. };
  14108. static const struct snd_kcontrol_new mmul18_mixer_controls[] = {
  14109. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14110. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14111. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14112. msm_routing_put_audio_mixer),
  14113. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14114. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14115. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14116. msm_routing_put_audio_mixer),
  14117. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14118. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14119. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14120. msm_routing_put_audio_mixer),
  14121. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14122. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14123. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14124. msm_routing_put_audio_mixer),
  14125. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14126. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14127. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14128. msm_routing_put_audio_mixer),
  14129. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14130. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14131. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14132. msm_routing_put_audio_mixer),
  14133. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14134. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14135. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14136. msm_routing_put_audio_mixer),
  14137. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14138. MSM_BACKEND_DAI_INT_FM_TX,
  14139. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14140. msm_routing_put_audio_mixer),
  14141. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14142. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14143. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14144. msm_routing_put_audio_mixer),
  14145. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14146. MSM_BACKEND_DAI_AFE_PCM_TX,
  14147. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14148. msm_routing_put_audio_mixer),
  14149. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14150. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14151. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14152. msm_routing_put_audio_mixer),
  14153. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14154. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14155. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14156. msm_routing_put_audio_mixer),
  14157. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14158. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14159. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14160. msm_routing_put_audio_mixer),
  14161. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14162. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14163. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14164. msm_routing_put_audio_mixer),
  14165. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14166. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14167. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14168. msm_routing_put_audio_mixer),
  14169. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14170. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14171. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14172. msm_routing_put_audio_mixer),
  14173. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14174. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14175. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14176. msm_routing_put_audio_mixer),
  14177. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14178. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14179. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14180. msm_routing_put_audio_mixer),
  14181. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14182. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14183. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14184. msm_routing_get_audio_mixer,
  14185. msm_routing_put_audio_mixer),
  14186. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14187. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14188. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14189. msm_routing_get_audio_mixer,
  14190. msm_routing_put_audio_mixer),
  14191. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14192. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14193. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14194. msm_routing_get_audio_mixer,
  14195. msm_routing_put_audio_mixer),
  14196. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14197. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14198. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14199. msm_routing_get_audio_mixer,
  14200. msm_routing_put_audio_mixer),
  14201. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14202. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14203. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14204. msm_routing_get_audio_mixer,
  14205. msm_routing_put_audio_mixer),
  14206. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14207. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14208. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14209. msm_routing_get_audio_mixer,
  14210. msm_routing_put_audio_mixer),
  14211. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14212. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14213. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14214. msm_routing_put_audio_mixer),
  14215. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14216. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14217. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14218. msm_routing_put_audio_mixer),
  14219. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14220. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14221. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14222. msm_routing_put_audio_mixer),
  14223. };
  14224. static const struct snd_kcontrol_new mmul19_mixer_controls[] = {
  14225. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14226. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14227. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14228. msm_routing_put_audio_mixer),
  14229. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14230. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14231. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14232. msm_routing_put_audio_mixer),
  14233. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14234. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14235. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14236. msm_routing_put_audio_mixer),
  14237. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14238. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14239. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14240. msm_routing_put_audio_mixer),
  14241. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14242. MSM_BACKEND_DAI_INT_FM_TX,
  14243. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14244. msm_routing_put_audio_mixer),
  14245. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14246. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14247. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14248. msm_routing_put_audio_mixer),
  14249. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14250. MSM_BACKEND_DAI_AFE_PCM_TX,
  14251. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14252. msm_routing_put_audio_mixer),
  14253. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14254. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14255. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14256. msm_routing_put_audio_mixer),
  14257. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14258. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14259. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14260. msm_routing_put_audio_mixer),
  14261. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14262. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14263. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14264. msm_routing_put_audio_mixer),
  14265. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14266. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14267. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14268. msm_routing_put_audio_mixer),
  14269. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14270. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14271. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14272. msm_routing_put_audio_mixer),
  14273. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14274. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14275. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14276. msm_routing_put_audio_mixer),
  14277. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14278. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14279. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14280. msm_routing_put_audio_mixer),
  14281. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14282. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14283. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14284. msm_routing_put_audio_mixer),
  14285. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14286. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14287. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14288. msm_routing_put_audio_mixer),
  14289. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14290. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14291. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14292. msm_routing_put_audio_mixer),
  14293. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14294. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14295. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14296. msm_routing_put_audio_mixer),
  14297. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14298. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14299. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14300. msm_routing_get_audio_mixer,
  14301. msm_routing_put_audio_mixer),
  14302. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14303. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14304. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14305. msm_routing_get_audio_mixer,
  14306. msm_routing_put_audio_mixer),
  14307. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14308. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14309. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14310. msm_routing_get_audio_mixer,
  14311. msm_routing_put_audio_mixer),
  14312. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14313. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14314. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14315. msm_routing_get_audio_mixer,
  14316. msm_routing_put_audio_mixer),
  14317. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14318. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14319. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14320. msm_routing_get_audio_mixer,
  14321. msm_routing_put_audio_mixer),
  14322. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14323. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14324. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14325. msm_routing_get_audio_mixer,
  14326. msm_routing_put_audio_mixer),
  14327. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14328. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14329. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14330. msm_routing_put_audio_mixer),
  14331. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14332. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14333. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14334. msm_routing_put_audio_mixer),
  14335. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14336. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14337. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14338. msm_routing_put_audio_mixer),
  14339. };
  14340. static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
  14341. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14342. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14343. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14344. msm_routing_put_audio_mixer),
  14345. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14346. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14347. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14348. msm_routing_put_audio_mixer),
  14349. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14350. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14351. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14352. msm_routing_put_audio_mixer),
  14353. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14354. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14355. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14356. msm_routing_put_audio_mixer),
  14357. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  14358. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  14359. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14360. msm_routing_put_audio_mixer),
  14361. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  14362. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  14363. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14364. msm_routing_put_audio_mixer),
  14365. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14366. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14367. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14368. msm_routing_put_audio_mixer),
  14369. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14370. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14371. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14372. msm_routing_put_audio_mixer),
  14373. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14374. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14375. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14376. msm_routing_put_audio_mixer),
  14377. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14378. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14379. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14380. msm_routing_put_audio_mixer),
  14381. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14382. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14383. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14384. msm_routing_put_audio_mixer),
  14385. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14386. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14387. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14388. msm_routing_put_audio_mixer),
  14389. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14390. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14391. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14392. msm_routing_put_audio_mixer),
  14393. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14394. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14395. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14396. msm_routing_put_audio_mixer),
  14397. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14398. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14399. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14400. msm_routing_put_audio_mixer),
  14401. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14402. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14403. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14404. msm_routing_put_audio_mixer),
  14405. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14406. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14407. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14408. msm_routing_put_audio_mixer),
  14409. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14410. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14411. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14412. msm_routing_put_audio_mixer),
  14413. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14414. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14415. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14416. msm_routing_put_audio_mixer),
  14417. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14418. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14419. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14420. msm_routing_put_audio_mixer),
  14421. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14422. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14423. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14424. msm_routing_put_audio_mixer),
  14425. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14426. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14427. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14428. msm_routing_put_audio_mixer),
  14429. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14430. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14431. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14432. msm_routing_put_audio_mixer),
  14433. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14434. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14435. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14436. msm_routing_put_audio_mixer),
  14437. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14438. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14439. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14440. msm_routing_put_audio_mixer),
  14441. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14442. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14443. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14444. msm_routing_put_audio_mixer),
  14445. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  14446. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  14447. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14448. msm_routing_put_audio_mixer),
  14449. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  14450. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  14451. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14452. msm_routing_put_audio_mixer),
  14453. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  14454. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  14455. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14456. msm_routing_put_audio_mixer),
  14457. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  14458. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  14459. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14460. msm_routing_put_audio_mixer),
  14461. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14462. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14463. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14464. msm_routing_put_audio_mixer),
  14465. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14466. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14467. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14468. msm_routing_put_audio_mixer),
  14469. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14470. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14471. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14472. msm_routing_put_audio_mixer),
  14473. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14474. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14475. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14476. msm_routing_put_audio_mixer),
  14477. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14478. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14479. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14480. msm_routing_put_audio_mixer),
  14481. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14482. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14483. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14484. msm_routing_put_audio_mixer),
  14485. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14486. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14487. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14488. msm_routing_put_audio_mixer),
  14489. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14490. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14491. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14492. msm_routing_put_audio_mixer),
  14493. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14494. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14495. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14496. msm_routing_put_audio_mixer),
  14497. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14498. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14499. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14500. msm_routing_put_audio_mixer),
  14501. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14502. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14503. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14504. msm_routing_put_audio_mixer),
  14505. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14506. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14507. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14508. msm_routing_put_audio_mixer),
  14509. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14510. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14511. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14512. msm_routing_put_audio_mixer),
  14513. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14514. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14515. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14516. msm_routing_put_audio_mixer),
  14517. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14518. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14519. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14520. msm_routing_put_audio_mixer),
  14521. };
  14522. static const struct snd_kcontrol_new mmul21_mixer_controls[] = {
  14523. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14524. MSM_BACKEND_DAI_AUXPCM_TX,
  14525. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14526. msm_routing_put_audio_mixer),
  14527. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14528. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  14529. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14530. msm_routing_put_audio_mixer),
  14531. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14532. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14533. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14534. msm_routing_put_audio_mixer),
  14535. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14536. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14537. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14538. msm_routing_put_audio_mixer),
  14539. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14540. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14541. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14542. msm_routing_put_audio_mixer),
  14543. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14544. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14545. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14546. msm_routing_put_audio_mixer),
  14547. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14548. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14549. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14550. msm_routing_put_audio_mixer),
  14551. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14552. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14553. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14554. msm_routing_put_audio_mixer),
  14555. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14556. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14557. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14558. msm_routing_put_audio_mixer),
  14559. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14560. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14561. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14562. msm_routing_put_audio_mixer),
  14563. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14564. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14565. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14566. msm_routing_put_audio_mixer),
  14567. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14568. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14569. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14570. msm_routing_put_audio_mixer),
  14571. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14572. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14573. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14574. msm_routing_put_audio_mixer),
  14575. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14576. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14577. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14578. msm_routing_put_audio_mixer),
  14579. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14580. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14581. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14582. msm_routing_put_audio_mixer),
  14583. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14584. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14585. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14586. msm_routing_put_audio_mixer),
  14587. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14588. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14589. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14590. msm_routing_put_audio_mixer),
  14591. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14592. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14593. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14594. msm_routing_put_audio_mixer),
  14595. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14596. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14597. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14598. msm_routing_put_audio_mixer),
  14599. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14600. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14601. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14602. msm_routing_put_audio_mixer),
  14603. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14604. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14605. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14606. msm_routing_put_audio_mixer),
  14607. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14608. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14609. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14610. msm_routing_put_audio_mixer),
  14611. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  14612. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  14613. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14614. msm_routing_put_audio_mixer),
  14615. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  14616. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  14617. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14618. msm_routing_put_audio_mixer),
  14619. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  14620. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  14621. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14622. msm_routing_put_audio_mixer),
  14623. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  14624. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  14625. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14626. msm_routing_put_audio_mixer),
  14627. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14628. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14629. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14630. msm_routing_put_audio_mixer),
  14631. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14632. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14633. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14634. msm_routing_put_audio_mixer),
  14635. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14636. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14637. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14638. msm_routing_put_audio_mixer),
  14639. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14640. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14641. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14642. msm_routing_put_audio_mixer),
  14643. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14644. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14645. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14646. msm_routing_put_audio_mixer),
  14647. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14648. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14649. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14650. msm_routing_put_audio_mixer),
  14651. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14652. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14653. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14654. msm_routing_put_audio_mixer),
  14655. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14656. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14657. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14658. msm_routing_put_audio_mixer),
  14659. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14660. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14661. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14662. msm_routing_put_audio_mixer),
  14663. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14664. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14665. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14666. msm_routing_put_audio_mixer),
  14667. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14668. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14669. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14670. msm_routing_put_audio_mixer),
  14671. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14672. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14673. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14674. msm_routing_put_audio_mixer),
  14675. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14676. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14677. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14678. msm_routing_put_audio_mixer),
  14679. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14680. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14681. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14682. msm_routing_put_audio_mixer),
  14683. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14684. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14685. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14686. msm_routing_put_audio_mixer),
  14687. };
  14688. static const struct snd_kcontrol_new mmul22_mixer_controls[] = {
  14689. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14690. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14691. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14692. msm_routing_put_audio_mixer),
  14693. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14694. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14695. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14696. msm_routing_put_audio_mixer),
  14697. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14698. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14699. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14700. msm_routing_put_audio_mixer),
  14701. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14702. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14703. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14704. msm_routing_put_audio_mixer),
  14705. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14706. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14707. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14708. msm_routing_put_audio_mixer),
  14709. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14710. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14711. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14712. msm_routing_put_audio_mixer),
  14713. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14714. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14715. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14716. msm_routing_put_audio_mixer),
  14717. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14718. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14719. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14720. msm_routing_put_audio_mixer),
  14721. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14722. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14723. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14724. msm_routing_put_audio_mixer),
  14725. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14726. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14727. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14728. msm_routing_put_audio_mixer),
  14729. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14730. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14731. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14732. msm_routing_put_audio_mixer),
  14733. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14734. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14735. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14736. msm_routing_put_audio_mixer),
  14737. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14738. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14739. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14740. msm_routing_put_audio_mixer),
  14741. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14742. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14743. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14744. msm_routing_put_audio_mixer),
  14745. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14746. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14747. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14748. msm_routing_put_audio_mixer),
  14749. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14750. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14751. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14752. msm_routing_put_audio_mixer),
  14753. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14754. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14755. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14756. msm_routing_put_audio_mixer),
  14757. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14758. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14759. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14760. msm_routing_put_audio_mixer),
  14761. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14762. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14763. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14764. msm_routing_put_audio_mixer),
  14765. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14766. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14767. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14768. msm_routing_put_audio_mixer),
  14769. };
  14770. static const struct snd_kcontrol_new mmul23_mixer_controls[] = {
  14771. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14772. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14773. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14774. msm_routing_put_audio_mixer),
  14775. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14776. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14777. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14778. msm_routing_put_audio_mixer),
  14779. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14780. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14781. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14782. msm_routing_put_audio_mixer),
  14783. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14784. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14785. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14786. msm_routing_put_audio_mixer),
  14787. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14788. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14789. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14790. msm_routing_put_audio_mixer),
  14791. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14792. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14793. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14794. msm_routing_put_audio_mixer),
  14795. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14796. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14797. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14798. msm_routing_put_audio_mixer),
  14799. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14800. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14801. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14802. msm_routing_put_audio_mixer),
  14803. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14804. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14805. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14806. msm_routing_put_audio_mixer),
  14807. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14808. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14809. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14810. msm_routing_put_audio_mixer),
  14811. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14812. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14813. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14814. msm_routing_put_audio_mixer),
  14815. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14816. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14817. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14818. msm_routing_put_audio_mixer),
  14819. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14820. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14821. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14822. msm_routing_put_audio_mixer),
  14823. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14824. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14825. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14826. msm_routing_put_audio_mixer),
  14827. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14828. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14829. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14830. msm_routing_put_audio_mixer),
  14831. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14832. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14833. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14834. msm_routing_put_audio_mixer),
  14835. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14836. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14837. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14838. msm_routing_put_audio_mixer),
  14839. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14840. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14841. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14842. msm_routing_put_audio_mixer),
  14843. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14844. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14845. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14846. msm_routing_put_audio_mixer),
  14847. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14848. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14849. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14850. msm_routing_put_audio_mixer),
  14851. };
  14852. static const struct snd_kcontrol_new mmul24_mixer_controls[] = {
  14853. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14854. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14855. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14856. msm_routing_put_audio_mixer),
  14857. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14858. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14859. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14860. msm_routing_put_audio_mixer),
  14861. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14862. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14863. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14864. msm_routing_put_audio_mixer),
  14865. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14866. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14867. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14868. msm_routing_put_audio_mixer),
  14869. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14870. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14871. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14872. msm_routing_put_audio_mixer),
  14873. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14874. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14875. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14876. msm_routing_put_audio_mixer),
  14877. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14878. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14879. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14880. msm_routing_put_audio_mixer),
  14881. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14882. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14883. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14884. msm_routing_put_audio_mixer),
  14885. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14886. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14887. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14888. msm_routing_put_audio_mixer),
  14889. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14890. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14891. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14892. msm_routing_put_audio_mixer),
  14893. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14894. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14895. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14896. msm_routing_put_audio_mixer),
  14897. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14898. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14899. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14900. msm_routing_put_audio_mixer),
  14901. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14902. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14903. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14904. msm_routing_put_audio_mixer),
  14905. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14906. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14907. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14908. msm_routing_put_audio_mixer),
  14909. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14910. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14911. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14912. msm_routing_put_audio_mixer),
  14913. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14914. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14915. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14916. msm_routing_put_audio_mixer),
  14917. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14918. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14919. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14920. msm_routing_put_audio_mixer),
  14921. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14922. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14923. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14924. msm_routing_put_audio_mixer),
  14925. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14926. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14927. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14928. msm_routing_put_audio_mixer),
  14929. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14930. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14931. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14932. msm_routing_put_audio_mixer),
  14933. };
  14934. static const struct snd_kcontrol_new mmul25_mixer_controls[] = {
  14935. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14936. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14937. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  14938. msm_routing_put_audio_mixer),
  14939. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14940. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14941. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  14942. msm_routing_put_audio_mixer),
  14943. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14944. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14945. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  14946. msm_routing_put_audio_mixer),
  14947. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14948. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14949. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  14950. msm_routing_put_audio_mixer),
  14951. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14952. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14953. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  14954. msm_routing_put_audio_mixer),
  14955. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14956. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14957. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  14958. msm_routing_put_audio_mixer),
  14959. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14960. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14961. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  14962. msm_routing_put_audio_mixer),
  14963. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14964. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14965. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  14966. msm_routing_put_audio_mixer),
  14967. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14968. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14969. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  14970. msm_routing_put_audio_mixer),
  14971. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14972. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14973. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  14974. msm_routing_put_audio_mixer),
  14975. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14976. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14977. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  14978. msm_routing_put_audio_mixer),
  14979. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14980. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14981. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  14982. msm_routing_put_audio_mixer),
  14983. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14984. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14985. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  14986. msm_routing_put_audio_mixer),
  14987. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14988. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14989. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  14990. msm_routing_put_audio_mixer),
  14991. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14992. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14993. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  14994. msm_routing_put_audio_mixer),
  14995. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14996. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14997. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  14998. msm_routing_put_audio_mixer),
  14999. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15000. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15001. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15002. msm_routing_put_audio_mixer),
  15003. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15004. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  15005. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15006. msm_routing_put_audio_mixer),
  15007. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15008. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  15009. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15010. msm_routing_put_audio_mixer),
  15011. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15012. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  15013. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15014. msm_routing_put_audio_mixer),
  15015. };
  15016. static const struct snd_kcontrol_new mmul27_mixer_controls[] = {
  15017. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15018. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15019. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15020. msm_routing_put_audio_mixer),
  15021. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15022. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15023. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15024. msm_routing_put_audio_mixer),
  15025. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  15026. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  15027. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15028. msm_routing_put_audio_mixer),
  15029. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  15030. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  15031. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15032. msm_routing_put_audio_mixer),
  15033. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15034. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15035. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15036. msm_routing_put_audio_mixer),
  15037. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15038. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  15039. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15040. msm_routing_put_audio_mixer),
  15041. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15042. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15043. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15044. msm_routing_put_audio_mixer),
  15045. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15046. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15047. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15048. msm_routing_put_audio_mixer),
  15049. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  15050. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  15051. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15052. msm_routing_put_audio_mixer),
  15053. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  15054. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  15055. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15056. msm_routing_put_audio_mixer),
  15057. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  15058. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  15059. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15060. msm_routing_put_audio_mixer),
  15061. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  15062. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  15063. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15064. msm_routing_put_audio_mixer),
  15065. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  15066. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  15067. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15068. msm_routing_put_audio_mixer),
  15069. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  15070. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  15071. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15072. msm_routing_put_audio_mixer),
  15073. };
  15074. static const struct snd_kcontrol_new mmul28_mixer_controls[] = {
  15075. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15076. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15077. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15078. msm_routing_put_audio_mixer),
  15079. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15080. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15081. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15082. msm_routing_put_audio_mixer),
  15083. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15084. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15085. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15086. msm_routing_put_audio_mixer),
  15087. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15088. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15089. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15090. msm_routing_put_audio_mixer),
  15091. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15092. MSM_BACKEND_DAI_INT_FM_TX,
  15093. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15094. msm_routing_put_audio_mixer),
  15095. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15096. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  15097. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15098. msm_routing_put_audio_mixer),
  15099. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15100. MSM_BACKEND_DAI_AFE_PCM_TX,
  15101. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15102. msm_routing_put_audio_mixer),
  15103. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  15104. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  15105. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15106. msm_routing_put_audio_mixer),
  15107. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  15108. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  15109. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15110. msm_routing_put_audio_mixer),
  15111. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15112. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  15113. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15114. msm_routing_put_audio_mixer),
  15115. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15116. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15117. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15118. msm_routing_put_audio_mixer),
  15119. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15120. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15121. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15122. msm_routing_put_audio_mixer),
  15123. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15124. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  15125. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15126. msm_routing_put_audio_mixer),
  15127. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15128. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  15129. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15130. msm_routing_put_audio_mixer),
  15131. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15132. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  15133. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15134. msm_routing_put_audio_mixer),
  15135. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15136. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15137. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15138. msm_routing_put_audio_mixer),
  15139. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15140. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15141. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15142. msm_routing_put_audio_mixer),
  15143. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15144. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  15145. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15146. msm_routing_put_audio_mixer),
  15147. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  15148. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  15149. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15150. msm_routing_get_audio_mixer,
  15151. msm_routing_put_audio_mixer),
  15152. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  15153. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  15154. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15155. msm_routing_get_audio_mixer,
  15156. msm_routing_put_audio_mixer),
  15157. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  15158. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  15159. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15160. msm_routing_get_audio_mixer,
  15161. msm_routing_put_audio_mixer),
  15162. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15163. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15164. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15165. msm_routing_get_audio_mixer,
  15166. msm_routing_put_audio_mixer),
  15167. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  15168. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  15169. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15170. msm_routing_get_audio_mixer,
  15171. msm_routing_put_audio_mixer),
  15172. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  15173. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  15174. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15175. msm_routing_get_audio_mixer,
  15176. msm_routing_put_audio_mixer),
  15177. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  15178. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  15179. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15180. msm_routing_put_audio_mixer),
  15181. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  15182. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  15183. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15184. msm_routing_put_audio_mixer),
  15185. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  15186. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  15187. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15188. msm_routing_put_audio_mixer),
  15189. };
  15190. static const struct snd_kcontrol_new mmul29_mixer_controls[] = {
  15191. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15192. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15193. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15194. msm_routing_put_audio_mixer),
  15195. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15196. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15197. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15198. msm_routing_put_audio_mixer),
  15199. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15200. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15201. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15202. msm_routing_put_audio_mixer),
  15203. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15204. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15205. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15206. msm_routing_put_audio_mixer),
  15207. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15208. MSM_BACKEND_DAI_INT_FM_TX,
  15209. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15210. msm_routing_put_audio_mixer),
  15211. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15212. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  15213. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15214. msm_routing_put_audio_mixer),
  15215. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15216. MSM_BACKEND_DAI_AFE_PCM_TX,
  15217. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15218. msm_routing_put_audio_mixer),
  15219. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  15220. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  15221. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15222. msm_routing_put_audio_mixer),
  15223. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  15224. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  15225. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15226. msm_routing_put_audio_mixer),
  15227. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15228. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  15229. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15230. msm_routing_put_audio_mixer),
  15231. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15232. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15233. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15234. msm_routing_put_audio_mixer),
  15235. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15236. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15237. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15238. msm_routing_put_audio_mixer),
  15239. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15240. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  15241. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15242. msm_routing_put_audio_mixer),
  15243. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15244. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  15245. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15246. msm_routing_put_audio_mixer),
  15247. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15248. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  15249. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15250. msm_routing_put_audio_mixer),
  15251. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15252. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15253. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15254. msm_routing_put_audio_mixer),
  15255. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15256. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15257. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15258. msm_routing_put_audio_mixer),
  15259. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15260. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  15261. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15262. msm_routing_put_audio_mixer),
  15263. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  15264. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  15265. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15266. msm_routing_get_audio_mixer,
  15267. msm_routing_put_audio_mixer),
  15268. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  15269. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  15270. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15271. msm_routing_get_audio_mixer,
  15272. msm_routing_put_audio_mixer),
  15273. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  15274. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  15275. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15276. msm_routing_get_audio_mixer,
  15277. msm_routing_put_audio_mixer),
  15278. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15279. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15280. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15281. msm_routing_get_audio_mixer,
  15282. msm_routing_put_audio_mixer),
  15283. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  15284. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  15285. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15286. msm_routing_get_audio_mixer,
  15287. msm_routing_put_audio_mixer),
  15288. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  15289. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  15290. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15291. msm_routing_get_audio_mixer,
  15292. msm_routing_put_audio_mixer),
  15293. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  15294. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  15295. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15296. msm_routing_put_audio_mixer),
  15297. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  15298. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  15299. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15300. msm_routing_put_audio_mixer),
  15301. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  15302. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  15303. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15304. msm_routing_put_audio_mixer),
  15305. };
  15306. static const struct snd_kcontrol_new mmul30_mixer_controls[] = {
  15307. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15308. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15309. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15310. msm_routing_put_audio_mixer),
  15311. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15312. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15313. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15314. msm_routing_put_audio_mixer),
  15315. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15316. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15317. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15318. msm_routing_put_audio_mixer),
  15319. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15320. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15321. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15322. msm_routing_put_audio_mixer),
  15323. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15324. MSM_BACKEND_DAI_INT_FM_TX,
  15325. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15326. msm_routing_put_audio_mixer),
  15327. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15328. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  15329. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15330. msm_routing_put_audio_mixer),
  15331. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15332. MSM_BACKEND_DAI_AFE_PCM_TX,
  15333. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15334. msm_routing_put_audio_mixer),
  15335. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  15336. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  15337. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15338. msm_routing_put_audio_mixer),
  15339. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  15340. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  15341. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15342. msm_routing_put_audio_mixer),
  15343. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15344. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  15345. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15346. msm_routing_put_audio_mixer),
  15347. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15348. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15349. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15350. msm_routing_put_audio_mixer),
  15351. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15352. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15353. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15354. msm_routing_put_audio_mixer),
  15355. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15356. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  15357. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15358. msm_routing_put_audio_mixer),
  15359. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15360. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  15361. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15362. msm_routing_put_audio_mixer),
  15363. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15364. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  15365. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15366. msm_routing_put_audio_mixer),
  15367. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15368. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15369. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15370. msm_routing_put_audio_mixer),
  15371. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15372. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15373. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15374. msm_routing_put_audio_mixer),
  15375. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  15376. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  15377. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15378. msm_routing_get_audio_mixer,
  15379. msm_routing_put_audio_mixer),
  15380. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  15381. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  15382. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15383. msm_routing_get_audio_mixer,
  15384. msm_routing_put_audio_mixer),
  15385. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  15386. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  15387. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15388. msm_routing_get_audio_mixer,
  15389. msm_routing_put_audio_mixer),
  15390. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15391. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15392. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15393. msm_routing_get_audio_mixer,
  15394. msm_routing_put_audio_mixer),
  15395. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  15396. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  15397. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15398. msm_routing_get_audio_mixer,
  15399. msm_routing_put_audio_mixer),
  15400. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  15401. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  15402. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15403. msm_routing_get_audio_mixer,
  15404. msm_routing_put_audio_mixer),
  15405. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  15406. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  15407. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15408. msm_routing_put_audio_mixer),
  15409. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  15410. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  15411. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15412. msm_routing_put_audio_mixer),
  15413. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  15414. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  15415. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15416. msm_routing_put_audio_mixer),
  15417. };
  15418. static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
  15419. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15420. MSM_BACKEND_DAI_PRI_I2S_RX,
  15421. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15422. msm_routing_put_voice_mixer),
  15423. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15424. MSM_BACKEND_DAI_PRI_I2S_RX,
  15425. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15426. msm_routing_put_voice_mixer),
  15427. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15428. MSM_BACKEND_DAI_PRI_I2S_RX,
  15429. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15430. msm_routing_put_voice_mixer),
  15431. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15432. MSM_BACKEND_DAI_PRI_I2S_RX,
  15433. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15434. msm_routing_put_voice_mixer),
  15435. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15436. MSM_BACKEND_DAI_PRI_I2S_RX,
  15437. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15438. msm_routing_put_voice_mixer),
  15439. };
  15440. static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
  15441. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15442. MSM_BACKEND_DAI_SEC_I2S_RX,
  15443. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15444. msm_routing_put_voice_mixer),
  15445. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15446. MSM_BACKEND_DAI_SEC_I2S_RX,
  15447. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15448. msm_routing_put_voice_mixer),
  15449. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15450. MSM_BACKEND_DAI_SEC_I2S_RX,
  15451. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15452. msm_routing_put_voice_mixer),
  15453. };
  15454. static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
  15455. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15456. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15457. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15458. msm_routing_put_voice_mixer),
  15459. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15460. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15461. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15462. msm_routing_put_voice_mixer),
  15463. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15464. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15465. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15466. msm_routing_put_voice_mixer),
  15467. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15468. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15469. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15470. msm_routing_put_voice_mixer),
  15471. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15472. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15473. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15474. msm_routing_put_voice_mixer),
  15475. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15476. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15477. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15478. msm_routing_put_voice_mixer),
  15479. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15480. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15481. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15482. msm_routing_put_voice_mixer),
  15483. };
  15484. static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
  15485. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15486. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15487. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15488. msm_routing_put_voice_mixer),
  15489. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15490. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15491. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15492. msm_routing_put_voice_mixer),
  15493. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15494. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15495. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15496. msm_routing_put_voice_mixer),
  15497. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15498. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15499. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15500. msm_routing_put_voice_mixer),
  15501. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15502. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15503. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15504. msm_routing_put_voice_mixer),
  15505. };
  15506. static const struct snd_kcontrol_new slimbus_6_rx_voice_mixer_controls[] = {
  15507. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15508. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15509. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15510. msm_routing_put_voice_mixer),
  15511. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15512. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15513. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15514. msm_routing_put_voice_mixer),
  15515. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15516. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15517. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15518. msm_routing_put_voice_mixer),
  15519. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15520. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15521. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15522. msm_routing_put_voice_mixer),
  15523. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15524. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15525. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15526. msm_routing_put_voice_mixer),
  15527. };
  15528. static const struct snd_kcontrol_new usb_audio_rx_voice_mixer_controls[] = {
  15529. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15530. MSM_BACKEND_DAI_USB_RX,
  15531. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15532. msm_routing_put_voice_mixer),
  15533. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15534. MSM_BACKEND_DAI_USB_RX,
  15535. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15536. msm_routing_put_voice_mixer),
  15537. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15538. MSM_BACKEND_DAI_USB_RX,
  15539. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15540. msm_routing_put_voice_mixer),
  15541. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15542. MSM_BACKEND_DAI_USB_RX,
  15543. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15544. msm_routing_put_voice_mixer),
  15545. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15546. MSM_BACKEND_DAI_USB_RX,
  15547. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15548. msm_routing_put_voice_mixer),
  15549. };
  15550. static const struct snd_kcontrol_new display_port_rx_voice_mixer_controls[] = {
  15551. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15552. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15553. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15554. msm_routing_put_voice_mixer),
  15555. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15556. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15557. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15558. msm_routing_put_voice_mixer),
  15559. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15560. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15561. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15562. msm_routing_put_voice_mixer),
  15563. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15564. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15565. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15566. msm_routing_put_voice_mixer),
  15567. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15568. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15569. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15570. msm_routing_put_voice_mixer),
  15571. };
  15572. static const struct snd_kcontrol_new display_port_rx1_voice_mixer_controls[] = {
  15573. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15574. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15575. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15576. msm_routing_put_voice_mixer),
  15577. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15578. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15579. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15580. msm_routing_put_voice_mixer),
  15581. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15582. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15583. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15584. msm_routing_put_voice_mixer),
  15585. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15586. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15587. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15588. msm_routing_put_voice_mixer),
  15589. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15590. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15591. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15592. msm_routing_put_voice_mixer),
  15593. };
  15594. static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
  15595. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15596. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15597. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15598. msm_routing_put_voice_mixer),
  15599. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15600. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15601. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15602. msm_routing_put_voice_mixer),
  15603. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15604. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15605. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15606. msm_routing_put_voice_mixer),
  15607. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15608. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15609. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15610. msm_routing_put_voice_mixer),
  15611. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15612. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15613. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15614. msm_routing_put_voice_mixer),
  15615. };
  15616. static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
  15617. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15618. MSM_BACKEND_DAI_MI2S_RX,
  15619. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15620. msm_routing_put_voice_mixer),
  15621. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15622. MSM_BACKEND_DAI_MI2S_RX,
  15623. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15624. msm_routing_put_voice_mixer),
  15625. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15626. MSM_BACKEND_DAI_MI2S_RX,
  15627. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15628. msm_routing_put_voice_mixer),
  15629. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15630. MSM_BACKEND_DAI_MI2S_RX,
  15631. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15632. msm_routing_put_voice_mixer),
  15633. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15634. MSM_BACKEND_DAI_MI2S_RX,
  15635. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15636. msm_routing_put_voice_mixer),
  15637. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15638. MSM_BACKEND_DAI_MI2S_RX,
  15639. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15640. msm_routing_put_voice_mixer),
  15641. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15642. MSM_BACKEND_DAI_MI2S_RX,
  15643. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15644. msm_routing_put_voice_mixer),
  15645. };
  15646. static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
  15647. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15648. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15649. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15650. msm_routing_put_voice_mixer),
  15651. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15652. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15653. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15654. msm_routing_put_voice_mixer),
  15655. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15656. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15657. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15658. msm_routing_put_voice_mixer),
  15659. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15660. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15661. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15662. msm_routing_put_voice_mixer),
  15663. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15664. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15665. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15666. msm_routing_put_voice_mixer),
  15667. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15668. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15669. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15670. msm_routing_put_voice_mixer),
  15671. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15672. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15673. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15674. msm_routing_put_voice_mixer),
  15675. };
  15676. static const struct snd_kcontrol_new int0_mi2s_rx_voice_mixer_controls[] = {
  15677. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15678. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15679. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15680. msm_routing_put_voice_mixer),
  15681. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15682. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15683. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15684. msm_routing_put_voice_mixer),
  15685. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15686. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15687. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15688. msm_routing_put_voice_mixer),
  15689. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15690. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15691. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15692. msm_routing_put_voice_mixer),
  15693. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15694. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15695. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15696. msm_routing_put_voice_mixer),
  15697. };
  15698. static const struct snd_kcontrol_new int4_mi2s_rx_voice_mixer_controls[] = {
  15699. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15700. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15701. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15702. msm_routing_put_voice_mixer),
  15703. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15704. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15705. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15706. msm_routing_put_voice_mixer),
  15707. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15708. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15709. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15710. msm_routing_put_voice_mixer),
  15711. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15712. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15713. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15714. msm_routing_put_voice_mixer),
  15715. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15716. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15717. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15718. msm_routing_put_voice_mixer),
  15719. };
  15720. static const struct snd_kcontrol_new tert_mi2s_rx_voice_mixer_controls[] = {
  15721. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15722. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15723. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15724. msm_routing_put_voice_mixer),
  15725. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15726. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15727. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15728. msm_routing_put_voice_mixer),
  15729. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15730. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15731. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15732. msm_routing_put_voice_mixer),
  15733. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15734. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15735. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15736. msm_routing_put_voice_mixer),
  15737. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15738. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15739. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15740. msm_routing_put_voice_mixer),
  15741. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15742. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15743. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15744. msm_routing_put_voice_mixer),
  15745. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15746. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15747. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15748. msm_routing_put_voice_mixer),
  15749. };
  15750. static const struct snd_kcontrol_new quat_mi2s_rx_voice_mixer_controls[] = {
  15751. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15752. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15753. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15754. msm_routing_put_voice_mixer),
  15755. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15756. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15757. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15758. msm_routing_put_voice_mixer),
  15759. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15760. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15761. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15762. msm_routing_put_voice_mixer),
  15763. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15764. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15765. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15766. msm_routing_put_voice_mixer),
  15767. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15768. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15769. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15770. msm_routing_put_voice_mixer),
  15771. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15772. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15773. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15774. msm_routing_put_voice_mixer),
  15775. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15776. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15777. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15778. msm_routing_put_voice_mixer),
  15779. };
  15780. static const struct snd_kcontrol_new quin_mi2s_rx_voice_mixer_controls[] = {
  15781. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15782. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15783. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15784. msm_routing_put_voice_mixer),
  15785. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15786. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15787. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15788. msm_routing_put_voice_stub_mixer),
  15789. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15790. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15791. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15792. msm_routing_put_voice_stub_mixer),
  15793. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15794. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15795. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15796. msm_routing_put_voice_mixer),
  15797. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15798. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15799. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15800. msm_routing_put_voice_mixer),
  15801. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15802. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15803. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15804. msm_routing_put_voice_mixer),
  15805. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15806. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15807. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15808. msm_routing_put_voice_mixer),
  15809. };
  15810. static const struct snd_kcontrol_new sen_mi2s_rx_voice_mixer_controls[] = {
  15811. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15812. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15813. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15814. msm_routing_put_voice_mixer),
  15815. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15816. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15817. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15818. msm_routing_put_voice_mixer),
  15819. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15820. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15821. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15822. msm_routing_put_voice_mixer),
  15823. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15824. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15825. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15826. msm_routing_put_voice_mixer),
  15827. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15828. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15829. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15830. msm_routing_put_voice_mixer),
  15831. };
  15832. static const struct snd_kcontrol_new afe_pcm_rx_voice_mixer_controls[] = {
  15833. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15834. MSM_BACKEND_DAI_AFE_PCM_RX,
  15835. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15836. msm_routing_put_voice_mixer),
  15837. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15838. MSM_BACKEND_DAI_AFE_PCM_RX,
  15839. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15840. msm_routing_put_voice_mixer),
  15841. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15842. MSM_BACKEND_DAI_AFE_PCM_RX,
  15843. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15844. msm_routing_put_voice_mixer),
  15845. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15846. MSM_BACKEND_DAI_AFE_PCM_RX,
  15847. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15848. msm_routing_put_voice_mixer),
  15849. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15850. MSM_BACKEND_DAI_AFE_PCM_RX,
  15851. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15852. msm_routing_put_voice_mixer),
  15853. };
  15854. static const struct snd_kcontrol_new aux_pcm_rx_voice_mixer_controls[] = {
  15855. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15856. MSM_BACKEND_DAI_AUXPCM_RX,
  15857. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15858. msm_routing_put_voice_mixer),
  15859. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15860. MSM_BACKEND_DAI_AUXPCM_RX,
  15861. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15862. msm_routing_put_voice_mixer),
  15863. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15864. MSM_BACKEND_DAI_AUXPCM_RX,
  15865. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15866. msm_routing_put_voice_mixer),
  15867. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15868. MSM_BACKEND_DAI_AUXPCM_RX,
  15869. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15870. msm_routing_put_voice_mixer),
  15871. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15872. MSM_BACKEND_DAI_AUXPCM_RX,
  15873. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15874. msm_routing_put_voice_mixer),
  15875. };
  15876. static const struct snd_kcontrol_new sec_aux_pcm_rx_voice_mixer_controls[] = {
  15877. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15878. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15879. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15880. msm_routing_put_voice_mixer),
  15881. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15882. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15883. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15884. msm_routing_put_voice_mixer),
  15885. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15886. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15887. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15888. msm_routing_put_voice_mixer),
  15889. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15890. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15891. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15892. msm_routing_put_voice_mixer),
  15893. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15894. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15895. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15896. msm_routing_put_voice_mixer),
  15897. };
  15898. static const struct snd_kcontrol_new tert_aux_pcm_rx_voice_mixer_controls[] = {
  15899. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15900. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15901. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15902. msm_routing_put_voice_mixer),
  15903. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15904. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15905. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15906. msm_routing_put_voice_mixer),
  15907. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15908. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15909. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15910. msm_routing_put_voice_mixer),
  15911. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15912. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15913. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15914. msm_routing_put_voice_mixer),
  15915. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15916. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15917. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15918. msm_routing_put_voice_mixer),
  15919. };
  15920. static const struct snd_kcontrol_new quat_aux_pcm_rx_voice_mixer_controls[] = {
  15921. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15922. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15923. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15924. msm_routing_put_voice_mixer),
  15925. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15926. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15927. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15928. msm_routing_put_voice_mixer),
  15929. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15930. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15931. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15932. msm_routing_put_voice_mixer),
  15933. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15934. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15935. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15936. msm_routing_put_voice_mixer),
  15937. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15938. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15939. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15940. msm_routing_put_voice_mixer),
  15941. };
  15942. static const struct snd_kcontrol_new quin_aux_pcm_rx_voice_mixer_controls[] = {
  15943. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15944. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15945. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15946. msm_routing_put_voice_mixer),
  15947. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15948. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15949. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15950. msm_routing_put_voice_mixer),
  15951. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15952. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15953. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15954. msm_routing_put_voice_mixer),
  15955. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15956. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15957. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15958. msm_routing_put_voice_mixer),
  15959. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15960. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15961. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15962. msm_routing_put_voice_mixer),
  15963. };
  15964. static const struct snd_kcontrol_new sen_aux_pcm_rx_voice_mixer_controls[] = {
  15965. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15966. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15967. msm_routing_put_voice_mixer),
  15968. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15969. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15970. msm_routing_put_voice_mixer),
  15971. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15972. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15973. msm_routing_put_voice_mixer),
  15974. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15975. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15976. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15977. msm_routing_put_voice_mixer),
  15978. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15979. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15980. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15981. msm_routing_put_voice_mixer),
  15982. };
  15983. static const struct snd_kcontrol_new hdmi_rx_voice_mixer_controls[] = {
  15984. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15985. MSM_BACKEND_DAI_HDMI_RX,
  15986. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15987. msm_routing_put_voice_mixer),
  15988. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15989. MSM_BACKEND_DAI_HDMI_RX,
  15990. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15991. msm_routing_put_voice_mixer),
  15992. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15993. MSM_BACKEND_DAI_HDMI_RX,
  15994. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15995. msm_routing_put_voice_mixer),
  15996. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15997. MSM_BACKEND_DAI_HDMI_RX,
  15998. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15999. msm_routing_put_voice_mixer),
  16000. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16001. MSM_BACKEND_DAI_HDMI_RX,
  16002. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16003. msm_routing_put_voice_mixer),
  16004. };
  16005. static const struct snd_kcontrol_new slimbus_7_rx_voice_mixer_controls[] = {
  16006. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16007. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  16008. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16009. msm_routing_put_voice_mixer),
  16010. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16011. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  16012. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16013. msm_routing_put_voice_mixer),
  16014. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16015. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  16016. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16017. msm_routing_put_voice_mixer),
  16018. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16019. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  16020. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16021. msm_routing_put_voice_mixer),
  16022. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16023. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  16024. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16025. msm_routing_put_voice_mixer),
  16026. };
  16027. static const struct snd_kcontrol_new slimbus_8_rx_voice_mixer_controls[] = {
  16028. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16029. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  16030. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16031. msm_routing_put_voice_mixer),
  16032. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16033. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  16034. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16035. msm_routing_put_voice_mixer),
  16036. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16037. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  16038. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16039. msm_routing_put_voice_mixer),
  16040. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16041. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  16042. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16043. msm_routing_put_voice_mixer),
  16044. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16045. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  16046. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16047. msm_routing_put_voice_mixer),
  16048. };
  16049. static const struct snd_kcontrol_new quat_tdm_rx_2_voice_mixer_controls[] = {
  16050. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16051. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  16052. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16053. msm_routing_put_voice_mixer),
  16054. };
  16055. static const struct snd_kcontrol_new quin_tdm_rx_2_voice_mixer_controls[] = {
  16056. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16057. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  16058. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16059. msm_routing_put_voice_mixer),
  16060. };
  16061. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_voice_mixer_controls[] = {
  16062. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16063. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16064. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16065. msm_routing_put_voice_mixer),
  16066. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16067. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16068. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16069. msm_routing_put_voice_mixer),
  16070. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16071. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16072. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16073. msm_routing_put_voice_mixer),
  16074. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16075. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16076. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16077. msm_routing_put_voice_mixer),
  16078. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16079. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16080. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16081. msm_routing_put_voice_mixer),
  16082. };
  16083. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_voice_mixer_controls[] = {
  16084. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16085. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  16086. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16087. msm_routing_put_voice_mixer),
  16088. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16089. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  16090. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16091. msm_routing_put_voice_mixer),
  16092. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16093. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  16094. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16095. msm_routing_put_voice_mixer),
  16096. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16097. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  16098. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16099. msm_routing_put_voice_mixer),
  16100. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16101. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  16102. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16103. msm_routing_put_voice_mixer),
  16104. };
  16105. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_voice_mixer_controls[] = {
  16106. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16107. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16108. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16109. msm_routing_put_voice_mixer),
  16110. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16111. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16112. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16113. msm_routing_put_voice_mixer),
  16114. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16115. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16116. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16117. msm_routing_put_voice_mixer),
  16118. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16119. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16120. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16121. msm_routing_put_voice_mixer),
  16122. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16123. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16124. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16125. msm_routing_put_voice_mixer),
  16126. };
  16127. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_voice_mixer_controls[] = {
  16128. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16129. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16130. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16131. msm_routing_put_voice_mixer),
  16132. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16133. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16134. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16135. msm_routing_put_voice_mixer),
  16136. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16137. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16138. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16139. msm_routing_put_voice_mixer),
  16140. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16141. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16142. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16143. msm_routing_put_voice_mixer),
  16144. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16145. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16146. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16147. msm_routing_put_voice_mixer),
  16148. };
  16149. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_voice_mixer_controls[] = {
  16150. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16151. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  16152. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16153. msm_routing_put_voice_mixer),
  16154. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16155. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  16156. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16157. msm_routing_put_voice_mixer),
  16158. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16159. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  16160. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16161. msm_routing_put_voice_mixer),
  16162. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16163. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  16164. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16165. msm_routing_put_voice_mixer),
  16166. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16167. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  16168. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16169. msm_routing_put_voice_mixer),
  16170. };
  16171. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_voice_mixer_controls[] = {
  16172. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16173. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  16174. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16175. msm_routing_put_voice_mixer),
  16176. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16177. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  16178. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16179. msm_routing_put_voice_mixer),
  16180. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16181. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  16182. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16183. msm_routing_put_voice_mixer),
  16184. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16185. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  16186. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16187. msm_routing_put_voice_mixer),
  16188. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16189. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  16190. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16191. msm_routing_put_voice_mixer),
  16192. };
  16193. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_voice_mixer_controls[] = {
  16194. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16195. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  16196. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16197. msm_routing_put_voice_mixer),
  16198. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16199. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  16200. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16201. msm_routing_put_voice_mixer),
  16202. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16203. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  16204. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16205. msm_routing_put_voice_mixer),
  16206. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16207. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  16208. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16209. msm_routing_put_voice_mixer),
  16210. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16211. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  16212. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16213. msm_routing_put_voice_mixer),
  16214. };
  16215. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_voice_mixer_controls[] = {
  16216. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16217. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  16218. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16219. msm_routing_put_voice_mixer),
  16220. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16221. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  16222. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16223. msm_routing_put_voice_mixer),
  16224. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16225. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  16226. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16227. msm_routing_put_voice_mixer),
  16228. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16229. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  16230. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16231. msm_routing_put_voice_mixer),
  16232. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16233. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  16234. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16235. msm_routing_put_voice_mixer),
  16236. };
  16237. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_voice_mixer_controls[] = {
  16238. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16239. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  16240. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16241. msm_routing_put_voice_mixer),
  16242. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16243. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  16244. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16245. msm_routing_put_voice_mixer),
  16246. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16247. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  16248. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16249. msm_routing_put_voice_mixer),
  16250. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16251. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  16252. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16253. msm_routing_put_voice_mixer),
  16254. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16255. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  16256. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16257. msm_routing_put_voice_mixer),
  16258. };
  16259. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_voice_mixer_controls[] = {
  16260. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16261. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  16262. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16263. msm_routing_put_voice_mixer),
  16264. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16265. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  16266. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16267. msm_routing_put_voice_mixer),
  16268. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16269. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  16270. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16271. msm_routing_put_voice_mixer),
  16272. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16273. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  16274. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16275. msm_routing_put_voice_mixer),
  16276. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16277. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  16278. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16279. msm_routing_put_voice_mixer),
  16280. };
  16281. static const struct snd_kcontrol_new pri_tdm_rx_0_voice_mixer_controls[] = {
  16282. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16283. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16284. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16285. msm_routing_put_voice_mixer),
  16286. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16287. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16288. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16289. msm_routing_put_voice_stub_mixer),
  16290. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16291. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16292. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16293. msm_routing_put_voice_stub_mixer),
  16294. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  16295. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16296. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16297. msm_routing_put_voice_mixer),
  16298. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16299. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16300. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16301. msm_routing_put_voice_mixer),
  16302. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16303. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16304. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16305. msm_routing_put_voice_mixer),
  16306. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16307. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16308. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16309. msm_routing_put_voice_mixer),
  16310. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16311. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16312. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16313. msm_routing_put_voice_mixer),
  16314. };
  16315. static const struct snd_kcontrol_new pri_tdm_rx_1_voice_mixer_controls[] = {
  16316. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16317. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16318. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16319. msm_routing_put_voice_mixer),
  16320. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16321. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16322. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16323. msm_routing_put_voice_stub_mixer),
  16324. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16325. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16326. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16327. msm_routing_put_voice_stub_mixer),
  16328. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  16329. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16330. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16331. msm_routing_put_voice_mixer),
  16332. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16333. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16334. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16335. msm_routing_put_voice_mixer),
  16336. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16337. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16338. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16339. msm_routing_put_voice_mixer),
  16340. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16341. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16342. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16343. msm_routing_put_voice_mixer),
  16344. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16345. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16346. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16347. msm_routing_put_voice_mixer),
  16348. };
  16349. static const struct snd_kcontrol_new pri_tdm_rx_2_voice_mixer_controls[] = {
  16350. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16351. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16352. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16353. msm_routing_put_voice_mixer),
  16354. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16355. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16356. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16357. msm_routing_put_voice_stub_mixer),
  16358. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16359. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16360. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16361. msm_routing_put_voice_stub_mixer),
  16362. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  16363. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16364. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16365. msm_routing_put_voice_mixer),
  16366. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16367. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16368. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16369. msm_routing_put_voice_mixer),
  16370. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16371. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16372. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16373. msm_routing_put_voice_mixer),
  16374. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16375. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16376. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16377. msm_routing_put_voice_mixer),
  16378. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16379. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16380. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16381. msm_routing_put_voice_mixer),
  16382. };
  16383. static const struct snd_kcontrol_new pri_tdm_rx_3_voice_mixer_controls[] = {
  16384. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16385. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16386. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16387. msm_routing_put_voice_mixer),
  16388. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16389. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16390. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16391. msm_routing_put_voice_stub_mixer),
  16392. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16393. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16394. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16395. msm_routing_put_voice_stub_mixer),
  16396. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  16397. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16398. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16399. msm_routing_put_voice_mixer),
  16400. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16401. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16402. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16403. msm_routing_put_voice_mixer),
  16404. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16405. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16406. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16407. msm_routing_put_voice_mixer),
  16408. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16409. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16410. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16411. msm_routing_put_voice_mixer),
  16412. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16413. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16414. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16415. msm_routing_put_voice_mixer),
  16416. };
  16417. static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
  16418. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16419. MSM_BACKEND_DAI_EXTPROC_RX,
  16420. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16421. msm_routing_put_voice_mixer),
  16422. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16423. MSM_BACKEND_DAI_EXTPROC_RX,
  16424. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16425. msm_routing_put_voice_mixer),
  16426. };
  16427. static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
  16428. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16429. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16430. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16431. msm_routing_put_voice_mixer),
  16432. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16433. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16434. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16435. msm_routing_put_voice_mixer),
  16436. };
  16437. static const struct snd_kcontrol_new slimbus_3_rx_mixer_controls[] = {
  16438. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16439. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16440. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16441. msm_routing_put_voice_mixer),
  16442. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16443. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16444. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16445. msm_routing_put_voice_mixer),
  16446. };
  16447. static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
  16448. SOC_DOUBLE_EXT("PRI_TX_MMode1", SND_SOC_NOPM,
  16449. MSM_BACKEND_DAI_PRI_I2S_TX,
  16450. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16451. msm_routing_put_voice_mixer),
  16452. SOC_DOUBLE_EXT("MI2S_TX_MMode1", SND_SOC_NOPM,
  16453. MSM_BACKEND_DAI_MI2S_TX,
  16454. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16455. msm_routing_put_voice_mixer),
  16456. SOC_DOUBLE_EXT("SLIM_0_TX_MMode1", SND_SOC_NOPM,
  16457. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16458. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16459. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode1", SND_SOC_NOPM,
  16460. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16461. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16462. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode1", SND_SOC_NOPM,
  16463. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  16464. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16465. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16466. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  16467. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16468. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16469. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16470. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16471. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16472. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16473. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16474. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16475. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16476. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16477. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16478. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16479. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16480. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16481. MSM_BACKEND_DAI_SEN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16482. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16483. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode1", SND_SOC_NOPM,
  16484. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  16485. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16486. SOC_DOUBLE_EXT("SEC_MI2S_TX_MMode1", SND_SOC_NOPM,
  16487. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  16488. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16489. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode1", SND_SOC_NOPM,
  16490. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16491. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16492. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode1", SND_SOC_NOPM,
  16493. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16494. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16495. SOC_DOUBLE_EXT("SLIM_7_TX_MMode1", SND_SOC_NOPM,
  16496. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16497. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16498. SOC_DOUBLE_EXT("SLIM_8_TX_MMode1", SND_SOC_NOPM,
  16499. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16500. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16501. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode1", SND_SOC_NOPM,
  16502. MSM_BACKEND_DAI_USB_TX,
  16503. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16504. msm_routing_put_voice_mixer),
  16505. SOC_DOUBLE_EXT("QUAT_TDM_TX_0_MMode1", SND_SOC_NOPM,
  16506. MSM_BACKEND_DAI_QUAT_TDM_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  16507. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16508. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  16509. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  16510. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16511. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  16512. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  16513. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16514. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  16515. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  16516. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16517. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  16518. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  16519. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16520. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  16521. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  16522. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16523. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  16524. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  16525. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16526. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode1", SND_SOC_NOPM,
  16527. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  16528. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16529. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode1", SND_SOC_NOPM,
  16530. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE1,
  16531. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16532. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode1", SND_SOC_NOPM,
  16533. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE1,
  16534. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16535. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode1", SND_SOC_NOPM,
  16536. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16537. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16538. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode1", SND_SOC_NOPM,
  16539. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16540. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16541. SOC_DOUBLE_EXT("PRI_TDM_TX_3_MMode1", SND_SOC_NOPM,
  16542. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  16543. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16544. };
  16545. static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
  16546. SOC_DOUBLE_EXT("PRI_TX_MMode2", SND_SOC_NOPM,
  16547. MSM_BACKEND_DAI_PRI_I2S_TX,
  16548. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16549. msm_routing_put_voice_mixer),
  16550. SOC_DOUBLE_EXT("MI2S_TX_MMode2", SND_SOC_NOPM,
  16551. MSM_BACKEND_DAI_MI2S_TX,
  16552. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16553. msm_routing_put_voice_mixer),
  16554. SOC_DOUBLE_EXT("SLIM_0_TX_MMode2", SND_SOC_NOPM,
  16555. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16556. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16557. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode2", SND_SOC_NOPM,
  16558. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16559. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16560. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode2", SND_SOC_NOPM,
  16561. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  16562. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16563. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16564. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  16565. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16566. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16567. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16568. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16569. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16570. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16571. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16572. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16573. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16574. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16575. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16576. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16577. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16578. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16579. MSM_BACKEND_DAI_SEN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16580. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16581. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode2", SND_SOC_NOPM,
  16582. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  16583. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16584. SOC_DOUBLE_EXT("SEC_MI2S_TX_MMode2", SND_SOC_NOPM,
  16585. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  16586. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16587. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode2", SND_SOC_NOPM,
  16588. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  16589. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16590. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode2", SND_SOC_NOPM,
  16591. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  16592. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16593. SOC_DOUBLE_EXT("SLIM_7_TX_MMode2", SND_SOC_NOPM,
  16594. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16595. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16596. SOC_DOUBLE_EXT("SLIM_8_TX_MMode2", SND_SOC_NOPM,
  16597. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16598. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16599. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode2", SND_SOC_NOPM,
  16600. MSM_BACKEND_DAI_USB_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16601. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16602. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  16603. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  16604. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16605. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  16606. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  16607. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16608. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  16609. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  16610. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16611. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  16612. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  16613. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16614. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  16615. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  16616. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16617. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  16618. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  16619. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16620. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode2", SND_SOC_NOPM,
  16621. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  16622. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16623. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode2", SND_SOC_NOPM,
  16624. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE2,
  16625. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16626. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode2", SND_SOC_NOPM,
  16627. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE2,
  16628. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16629. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode2", SND_SOC_NOPM,
  16630. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  16631. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16632. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode2", SND_SOC_NOPM,
  16633. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  16634. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16635. SOC_DOUBLE_EXT("PRI_TDM_TX_3_MMode2", SND_SOC_NOPM,
  16636. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  16637. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16638. };
  16639. static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
  16640. SOC_DOUBLE_EXT("PRI_TX_Voip", SND_SOC_NOPM,
  16641. MSM_BACKEND_DAI_PRI_I2S_TX,
  16642. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16643. msm_routing_put_voice_mixer),
  16644. SOC_DOUBLE_EXT("MI2S_TX_Voip", SND_SOC_NOPM,
  16645. MSM_BACKEND_DAI_MI2S_TX,
  16646. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16647. msm_routing_put_voice_mixer),
  16648. SOC_DOUBLE_EXT("SLIM_0_TX_Voip", SND_SOC_NOPM,
  16649. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16650. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16651. msm_routing_put_voice_mixer),
  16652. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_Voip", SND_SOC_NOPM,
  16653. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  16654. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16655. msm_routing_put_voice_mixer),
  16656. SOC_DOUBLE_EXT("AFE_PCM_TX_Voip", SND_SOC_NOPM,
  16657. MSM_BACKEND_DAI_AFE_PCM_TX,
  16658. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16659. msm_routing_put_voice_mixer),
  16660. SOC_DOUBLE_EXT("AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16661. MSM_BACKEND_DAI_AUXPCM_TX,
  16662. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16663. msm_routing_put_voice_mixer),
  16664. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16665. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16666. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16667. msm_routing_put_voice_mixer),
  16668. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16669. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16670. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16671. msm_routing_put_voice_mixer),
  16672. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16673. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16674. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16675. msm_routing_put_voice_mixer),
  16676. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16677. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16678. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16679. msm_routing_put_voice_mixer),
  16680. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16681. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16682. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16683. msm_routing_put_voice_mixer),
  16684. SOC_DOUBLE_EXT("PRI_MI2S_TX_Voip", SND_SOC_NOPM,
  16685. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16686. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16687. msm_routing_put_voice_mixer),
  16688. SOC_DOUBLE_EXT("SEC_MI2S_TX_Voip", SND_SOC_NOPM,
  16689. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  16690. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16691. msm_routing_put_voice_mixer),
  16692. SOC_DOUBLE_EXT("TERT_MI2S_TX_Voip", SND_SOC_NOPM,
  16693. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16694. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16695. msm_routing_put_voice_mixer),
  16696. SOC_DOUBLE_EXT("INT3_MI2S_TX_Voip", SND_SOC_NOPM,
  16697. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16698. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16699. msm_routing_put_voice_mixer),
  16700. SOC_DOUBLE_EXT("SLIM_7_TX_Voip", SND_SOC_NOPM,
  16701. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16702. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16703. msm_routing_put_voice_mixer),
  16704. SOC_DOUBLE_EXT("SLIM_8_TX_Voip", SND_SOC_NOPM,
  16705. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16706. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16707. msm_routing_put_voice_mixer),
  16708. SOC_DOUBLE_EXT("USB_AUDIO_TX_Voip", SND_SOC_NOPM,
  16709. MSM_BACKEND_DAI_USB_TX,
  16710. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16711. msm_routing_put_voice_mixer),
  16712. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  16713. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  16714. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16715. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  16716. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  16717. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16718. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  16719. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  16720. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16721. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  16722. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  16723. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16724. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  16725. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  16726. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16727. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  16728. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  16729. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16730. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_Voip", SND_SOC_NOPM,
  16731. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOIP,
  16732. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16733. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_Voip", SND_SOC_NOPM,
  16734. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOIP,
  16735. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16736. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_Voip", SND_SOC_NOPM,
  16737. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOIP,
  16738. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16739. SOC_SINGLE_EXT("PRI_TDM_TX_3_Voip", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  16740. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16741. msm_routing_put_voice_mixer),
  16742. };
  16743. static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
  16744. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  16745. MSM_BACKEND_DAI_EXTPROC_TX,
  16746. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16747. msm_routing_put_voice_stub_mixer),
  16748. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16749. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  16750. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16751. msm_routing_put_voice_stub_mixer),
  16752. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16753. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16754. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16755. msm_routing_put_voice_stub_mixer),
  16756. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  16757. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  16758. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16759. msm_routing_put_voice_stub_mixer),
  16760. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16761. MSM_BACKEND_DAI_MI2S_TX,
  16762. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16763. msm_routing_put_voice_stub_mixer),
  16764. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16765. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16766. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16767. msm_routing_put_voice_stub_mixer),
  16768. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16769. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16770. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16771. msm_routing_put_voice_stub_mixer),
  16772. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16773. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16774. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16775. msm_routing_put_voice_stub_mixer),
  16776. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16777. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16778. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16779. msm_routing_put_voice_stub_mixer),
  16780. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16781. MSM_BACKEND_DAI_AUXPCM_TX,
  16782. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16783. msm_routing_put_voice_stub_mixer),
  16784. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16785. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16786. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16787. msm_routing_put_voice_stub_mixer),
  16788. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16789. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16790. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16791. msm_routing_put_voice_stub_mixer),
  16792. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16793. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16794. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16795. msm_routing_put_voice_stub_mixer),
  16796. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16797. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16798. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16799. msm_routing_put_voice_stub_mixer),
  16800. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16801. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16802. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16803. msm_routing_put_voice_stub_mixer),
  16804. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16805. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16806. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16807. msm_routing_put_voice_stub_mixer),
  16808. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  16809. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16810. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16811. msm_routing_put_voice_stub_mixer),
  16812. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16813. MSM_BACKEND_DAI_AFE_PCM_TX,
  16814. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16815. msm_routing_put_voice_stub_mixer),
  16816. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16817. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16818. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16819. msm_routing_put_voice_stub_mixer),
  16820. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16821. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16822. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16823. msm_routing_put_voice_stub_mixer),
  16824. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16825. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  16826. 1, 0, msm_routing_get_voice_stub_mixer,
  16827. msm_routing_put_voice_stub_mixer),
  16828. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16829. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  16830. 1, 0, msm_routing_get_voice_stub_mixer,
  16831. msm_routing_put_voice_stub_mixer),
  16832. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16833. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  16834. 1, 0, msm_routing_get_voice_stub_mixer,
  16835. msm_routing_put_voice_stub_mixer),
  16836. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  16837. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  16838. 1, 0, msm_routing_get_voice_stub_mixer,
  16839. msm_routing_put_voice_stub_mixer),
  16840. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  16841. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  16842. 1, 0, msm_routing_get_voice_stub_mixer,
  16843. msm_routing_put_voice_stub_mixer),
  16844. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  16845. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  16846. 1, 0, msm_routing_get_voice_stub_mixer,
  16847. msm_routing_put_voice_stub_mixer),
  16848. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16849. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE_STUB,
  16850. 1, 0, msm_routing_get_voice_stub_mixer,
  16851. msm_routing_put_voice_stub_mixer),
  16852. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  16853. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE_STUB,
  16854. 1, 0, msm_routing_get_voice_stub_mixer,
  16855. msm_routing_put_voice_stub_mixer),
  16856. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  16857. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE_STUB,
  16858. 1, 0, msm_routing_get_voice_stub_mixer,
  16859. msm_routing_put_voice_stub_mixer),
  16860. };
  16861. static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
  16862. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  16863. MSM_BACKEND_DAI_EXTPROC_TX,
  16864. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16865. msm_routing_put_voice_stub_mixer),
  16866. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16867. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16868. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16869. msm_routing_put_voice_stub_mixer),
  16870. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  16871. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  16872. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16873. msm_routing_put_voice_stub_mixer),
  16874. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16875. MSM_BACKEND_DAI_AUXPCM_TX,
  16876. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16877. msm_routing_put_voice_stub_mixer),
  16878. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16879. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16880. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16881. msm_routing_put_voice_stub_mixer),
  16882. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16883. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16884. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16885. msm_routing_put_voice_stub_mixer),
  16886. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16887. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16888. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16889. msm_routing_put_voice_stub_mixer),
  16890. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16891. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16892. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16893. msm_routing_put_voice_stub_mixer),
  16894. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16895. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16896. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16897. msm_routing_put_voice_stub_mixer),
  16898. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16899. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16900. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16901. msm_routing_put_voice_stub_mixer),
  16902. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  16903. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16904. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16905. msm_routing_put_voice_stub_mixer),
  16906. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16907. MSM_BACKEND_DAI_AFE_PCM_TX,
  16908. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16909. msm_routing_put_voice_stub_mixer),
  16910. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16911. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16912. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16913. msm_routing_put_voice_stub_mixer),
  16914. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16915. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16916. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16917. msm_routing_put_voice_stub_mixer),
  16918. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16919. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16920. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16921. msm_routing_put_voice_stub_mixer),
  16922. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16923. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16924. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16925. msm_routing_put_voice_stub_mixer),
  16926. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16927. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16928. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16929. msm_routing_put_voice_stub_mixer),
  16930. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16931. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  16932. 1, 0, msm_routing_get_voice_stub_mixer,
  16933. msm_routing_put_voice_stub_mixer),
  16934. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16935. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  16936. 1, 0, msm_routing_get_voice_stub_mixer,
  16937. msm_routing_put_voice_stub_mixer),
  16938. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16939. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  16940. 1, 0, msm_routing_get_voice_stub_mixer,
  16941. msm_routing_put_voice_stub_mixer),
  16942. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  16943. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  16944. 1, 0, msm_routing_get_voice_stub_mixer,
  16945. msm_routing_put_voice_stub_mixer),
  16946. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  16947. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  16948. 1, 0, msm_routing_get_voice_stub_mixer,
  16949. msm_routing_put_voice_stub_mixer),
  16950. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  16951. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  16952. 1, 0, msm_routing_get_voice_stub_mixer,
  16953. msm_routing_put_voice_stub_mixer),
  16954. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16955. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE2_STUB,
  16956. 1, 0, msm_routing_get_voice_stub_mixer,
  16957. msm_routing_put_voice_stub_mixer),
  16958. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  16959. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE2_STUB,
  16960. 1, 0, msm_routing_get_voice_stub_mixer,
  16961. msm_routing_put_voice_stub_mixer),
  16962. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  16963. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE2_STUB,
  16964. 1, 0, msm_routing_get_voice_stub_mixer,
  16965. msm_routing_put_voice_stub_mixer),
  16966. };
  16967. static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
  16968. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  16969. MSM_BACKEND_DAI_EXTPROC_TX,
  16970. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16971. msm_routing_put_voice_stub_mixer),
  16972. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16973. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16974. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16975. msm_routing_put_voice_stub_mixer),
  16976. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  16977. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  16978. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16979. msm_routing_put_voice_stub_mixer),
  16980. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16981. MSM_BACKEND_DAI_AUXPCM_TX,
  16982. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16983. msm_routing_put_voice_stub_mixer),
  16984. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16985. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16986. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16987. msm_routing_put_voice_stub_mixer),
  16988. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16989. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16990. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16991. msm_routing_put_voice_stub_mixer),
  16992. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16993. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16994. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16995. msm_routing_put_voice_stub_mixer),
  16996. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16997. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16998. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16999. msm_routing_put_voice_stub_mixer),
  17000. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17001. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  17002. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17003. msm_routing_put_voice_stub_mixer),
  17004. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17005. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  17006. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17007. msm_routing_put_voice_stub_mixer),
  17008. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  17009. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  17010. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17011. msm_routing_put_voice_stub_mixer),
  17012. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17013. MSM_BACKEND_DAI_AFE_PCM_TX,
  17014. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17015. msm_routing_put_voice_stub_mixer),
  17016. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17017. MSM_BACKEND_DAI_PRI_MI2S_TX,
  17018. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17019. msm_routing_put_voice_stub_mixer),
  17020. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17021. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  17022. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17023. msm_routing_put_voice_stub_mixer),
  17024. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17025. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  17026. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17027. msm_routing_put_voice_stub_mixer),
  17028. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17029. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  17030. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17031. msm_routing_put_voice_stub_mixer),
  17032. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  17033. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  17034. 1, 0, msm_routing_get_voice_stub_mixer,
  17035. msm_routing_put_voice_stub_mixer),
  17036. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  17037. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  17038. 1, 0, msm_routing_get_voice_stub_mixer,
  17039. msm_routing_put_voice_stub_mixer),
  17040. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  17041. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  17042. 1, 0, msm_routing_get_voice_stub_mixer,
  17043. msm_routing_put_voice_stub_mixer),
  17044. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  17045. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  17046. 1, 0, msm_routing_get_voice_stub_mixer,
  17047. msm_routing_put_voice_stub_mixer),
  17048. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  17049. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  17050. 1, 0, msm_routing_get_voice_stub_mixer,
  17051. msm_routing_put_voice_stub_mixer),
  17052. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  17053. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  17054. 1, 0, msm_routing_get_voice_stub_mixer,
  17055. msm_routing_put_voice_stub_mixer),
  17056. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17057. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOLTE_STUB,
  17058. 1, 0, msm_routing_get_voice_stub_mixer,
  17059. msm_routing_put_voice_stub_mixer),
  17060. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  17061. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOLTE_STUB,
  17062. 1, 0, msm_routing_get_voice_stub_mixer,
  17063. msm_routing_put_voice_stub_mixer),
  17064. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  17065. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOLTE_STUB,
  17066. 1, 0, msm_routing_get_voice_stub_mixer,
  17067. msm_routing_put_voice_stub_mixer),
  17068. };
  17069. static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
  17070. SOC_DOUBLE_EXT("PRI_TX_QCHAT", SND_SOC_NOPM,
  17071. MSM_BACKEND_DAI_PRI_I2S_TX,
  17072. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17073. msm_routing_put_voice_mixer),
  17074. SOC_DOUBLE_EXT("SLIM_0_TX_QCHAT", SND_SOC_NOPM,
  17075. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  17076. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17077. msm_routing_put_voice_mixer),
  17078. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_QCHAT", SND_SOC_NOPM,
  17079. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  17080. MSM_FRONTEND_DAI_QCHAT, 1, 0,
  17081. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17082. SOC_DOUBLE_EXT("AFE_PCM_TX_QCHAT", SND_SOC_NOPM,
  17083. MSM_BACKEND_DAI_AFE_PCM_TX,
  17084. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17085. msm_routing_put_voice_mixer),
  17086. SOC_DOUBLE_EXT("AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17087. MSM_BACKEND_DAI_AUXPCM_TX,
  17088. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17089. msm_routing_put_voice_mixer),
  17090. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17091. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  17092. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17093. msm_routing_put_voice_mixer),
  17094. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17095. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  17096. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17097. msm_routing_put_voice_mixer),
  17098. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17099. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  17100. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17101. msm_routing_put_voice_mixer),
  17102. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17103. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  17104. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17105. msm_routing_put_voice_mixer),
  17106. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17107. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  17108. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17109. msm_routing_put_voice_mixer),
  17110. SOC_DOUBLE_EXT("MI2S_TX_QCHAT", SND_SOC_NOPM,
  17111. MSM_BACKEND_DAI_MI2S_TX,
  17112. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17113. msm_routing_put_voice_mixer),
  17114. SOC_DOUBLE_EXT("PRI_MI2S_TX_QCHAT", SND_SOC_NOPM,
  17115. MSM_BACKEND_DAI_PRI_MI2S_TX,
  17116. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17117. msm_routing_put_voice_mixer),
  17118. SOC_DOUBLE_EXT("TERT_MI2S_TX_QCHAT", SND_SOC_NOPM,
  17119. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  17120. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17121. msm_routing_put_voice_mixer),
  17122. SOC_DOUBLE_EXT("INT3_MI2S_TX_QCHAT", SND_SOC_NOPM,
  17123. MSM_BACKEND_DAI_INT3_MI2S_TX,
  17124. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17125. msm_routing_put_voice_mixer),
  17126. SOC_DOUBLE_EXT("SLIM_7_TX_QCHAT", SND_SOC_NOPM,
  17127. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  17128. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17129. msm_routing_put_voice_mixer),
  17130. SOC_DOUBLE_EXT("SLIM_8_TX_QCHAT", SND_SOC_NOPM,
  17131. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  17132. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17133. msm_routing_put_voice_mixer),
  17134. SOC_DOUBLE_EXT("USB_AUDIO_TX_QCHAT", SND_SOC_NOPM,
  17135. MSM_BACKEND_DAI_USB_TX,
  17136. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17137. msm_routing_put_voice_mixer),
  17138. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  17139. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  17140. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17141. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  17142. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  17143. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17144. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  17145. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  17146. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17147. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  17148. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  17149. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17150. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  17151. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  17152. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17153. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  17154. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  17155. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17156. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_QCHAT", SND_SOC_NOPM,
  17157. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_QCHAT,
  17158. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17159. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_QCHAT", SND_SOC_NOPM,
  17160. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_QCHAT,
  17161. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17162. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_QCHAT", SND_SOC_NOPM,
  17163. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_QCHAT,
  17164. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17165. };
  17166. static const struct snd_kcontrol_new int0_mi2s_rx_port_mixer_controls[] = {
  17167. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17168. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17169. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17170. msm_routing_put_port_mixer),
  17171. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17172. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17173. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17174. msm_routing_put_port_mixer),
  17175. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17176. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17177. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17178. msm_routing_put_port_mixer),
  17179. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17180. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17181. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17182. msm_routing_put_port_mixer),
  17183. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17184. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17185. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17186. msm_routing_put_port_mixer),
  17187. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17188. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17189. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17190. msm_routing_put_port_mixer),
  17191. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  17192. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17193. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17194. msm_routing_put_port_mixer),
  17195. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17196. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17197. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17198. msm_routing_put_port_mixer),
  17199. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17200. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17201. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17202. msm_routing_put_port_mixer),
  17203. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17204. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17205. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  17206. msm_routing_put_port_mixer),
  17207. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17208. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17209. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17210. msm_routing_put_port_mixer),
  17211. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17212. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17213. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  17214. msm_routing_put_port_mixer),
  17215. };
  17216. static const struct snd_kcontrol_new int4_mi2s_rx_port_mixer_controls[] = {
  17217. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17218. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17219. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17220. msm_routing_put_port_mixer),
  17221. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17222. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17223. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17224. msm_routing_put_port_mixer),
  17225. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17226. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17227. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17228. msm_routing_put_port_mixer),
  17229. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17230. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17231. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17232. msm_routing_put_port_mixer),
  17233. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17234. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17235. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17236. msm_routing_put_port_mixer),
  17237. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17238. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17239. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17240. msm_routing_put_port_mixer),
  17241. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  17242. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17243. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17244. msm_routing_put_port_mixer),
  17245. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17246. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17247. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17248. msm_routing_put_port_mixer),
  17249. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17250. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17251. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17252. msm_routing_put_port_mixer),
  17253. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17254. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17255. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  17256. msm_routing_put_port_mixer),
  17257. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17258. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17259. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17260. msm_routing_put_port_mixer),
  17261. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17262. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17263. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  17264. msm_routing_put_port_mixer),
  17265. };
  17266. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_port_mixer_controls[] = {
  17267. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  17268. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  17269. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, 1, 0, msm_routing_get_port_mixer,
  17270. msm_routing_put_port_mixer),
  17271. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17272. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  17273. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  17274. msm_routing_put_port_mixer),
  17275. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17276. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  17277. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17278. msm_routing_put_port_mixer),
  17279. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17280. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  17281. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17282. msm_routing_put_port_mixer),
  17283. };
  17284. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_port_mixer_controls[] = {
  17285. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17286. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  17287. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  17288. msm_routing_put_port_mixer),
  17289. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17290. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  17291. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17292. msm_routing_put_port_mixer),
  17293. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17294. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  17295. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  17296. msm_routing_put_port_mixer),
  17297. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17298. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  17299. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17300. msm_routing_put_port_mixer),
  17301. };
  17302. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_port_mixer_controls[] = {
  17303. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  17304. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  17305. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, 1, 0, msm_routing_get_port_mixer,
  17306. msm_routing_put_port_mixer),
  17307. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17308. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  17309. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  17310. msm_routing_put_port_mixer),
  17311. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17312. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  17313. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17314. msm_routing_put_port_mixer),
  17315. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17316. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  17317. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17318. msm_routing_put_port_mixer),
  17319. };
  17320. static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
  17321. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17322. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17323. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17324. msm_routing_put_port_mixer),
  17325. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17326. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17327. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17328. msm_routing_put_port_mixer),
  17329. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17330. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17331. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17332. msm_routing_put_port_mixer),
  17333. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17334. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17335. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  17336. msm_routing_put_port_mixer),
  17337. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17338. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17339. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17340. msm_routing_put_port_mixer),
  17341. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17342. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17343. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17344. msm_routing_put_port_mixer),
  17345. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17346. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17347. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17348. msm_routing_put_port_mixer),
  17349. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17350. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17351. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17352. msm_routing_put_port_mixer),
  17353. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17354. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17355. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17356. msm_routing_put_port_mixer),
  17357. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17358. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17359. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17360. msm_routing_put_port_mixer),
  17361. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17362. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17363. MSM_BACKEND_DAI_SEN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17364. msm_routing_put_port_mixer),
  17365. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17366. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17367. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17368. msm_routing_put_port_mixer),
  17369. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17370. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17371. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17372. msm_routing_put_port_mixer),
  17373. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17374. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17375. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17376. msm_routing_put_port_mixer),
  17377. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17378. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17379. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17380. msm_routing_put_port_mixer),
  17381. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17382. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17383. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17384. msm_routing_put_port_mixer),
  17385. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17386. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17387. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17388. msm_routing_put_port_mixer),
  17389. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17390. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17391. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17392. msm_routing_put_port_mixer),
  17393. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17394. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17395. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17396. msm_routing_put_port_mixer),
  17397. SOC_DOUBLE_EXT("PRI_MI2S_RX", SND_SOC_NOPM,
  17398. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17399. MSM_BACKEND_DAI_PRI_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17400. msm_routing_put_port_mixer),
  17401. SOC_DOUBLE_EXT("SEC_MI2S_RX", SND_SOC_NOPM,
  17402. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17403. MSM_BACKEND_DAI_SECONDARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17404. msm_routing_put_port_mixer),
  17405. SOC_DOUBLE_EXT("TERT_MI2S_RX", SND_SOC_NOPM,
  17406. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17407. MSM_BACKEND_DAI_TERTIARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17408. msm_routing_put_port_mixer),
  17409. SOC_DOUBLE_EXT("QUAT_MI2S_RX", SND_SOC_NOPM,
  17410. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17411. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17412. msm_routing_put_port_mixer),
  17413. SOC_DOUBLE_EXT("QUIN_MI2S_RX", SND_SOC_NOPM,
  17414. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17415. MSM_BACKEND_DAI_QUINARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17416. msm_routing_put_port_mixer),
  17417. SOC_DOUBLE_EXT("SEN_MI2S_RX", SND_SOC_NOPM,
  17418. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17419. MSM_BACKEND_DAI_SENARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17420. msm_routing_put_port_mixer),
  17421. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17422. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17423. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  17424. msm_routing_put_port_mixer),
  17425. };
  17426. static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
  17427. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17428. MSM_BACKEND_DAI_AUXPCM_RX,
  17429. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17430. msm_routing_put_port_mixer),
  17431. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17432. MSM_BACKEND_DAI_AUXPCM_RX,
  17433. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17434. msm_routing_put_port_mixer),
  17435. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17436. MSM_BACKEND_DAI_AUXPCM_RX,
  17437. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17438. msm_routing_put_port_mixer),
  17439. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17440. MSM_BACKEND_DAI_AUXPCM_RX,
  17441. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17442. msm_routing_put_port_mixer),
  17443. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17444. MSM_BACKEND_DAI_AUXPCM_RX,
  17445. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  17446. msm_routing_put_port_mixer),
  17447. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17448. MSM_BACKEND_DAI_AUXPCM_RX,
  17449. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17450. msm_routing_put_port_mixer),
  17451. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17452. MSM_BACKEND_DAI_AUXPCM_RX,
  17453. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  17454. msm_routing_put_port_mixer),
  17455. };
  17456. static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
  17457. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17458. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  17459. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17460. msm_routing_put_port_mixer),
  17461. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17462. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  17463. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17464. msm_routing_put_port_mixer),
  17465. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17466. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  17467. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17468. msm_routing_put_port_mixer),
  17469. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17470. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  17471. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17472. msm_routing_put_port_mixer),
  17473. };
  17474. static const struct snd_kcontrol_new tert_auxpcm_rx_port_mixer_controls[] = {
  17475. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17476. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  17477. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17478. msm_routing_put_port_mixer),
  17479. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17480. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  17481. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17482. msm_routing_put_port_mixer),
  17483. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17484. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  17485. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17486. msm_routing_put_port_mixer),
  17487. };
  17488. static const struct snd_kcontrol_new quat_auxpcm_rx_port_mixer_controls[] = {
  17489. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17490. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  17491. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17492. msm_routing_put_port_mixer),
  17493. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17494. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  17495. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17496. msm_routing_put_port_mixer),
  17497. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17498. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  17499. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17500. msm_routing_put_port_mixer),
  17501. };
  17502. static const struct snd_kcontrol_new quin_auxpcm_rx_port_mixer_controls[] = {
  17503. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17504. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  17505. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17506. msm_routing_put_port_mixer),
  17507. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17508. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  17509. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17510. msm_routing_put_port_mixer),
  17511. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17512. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  17513. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17514. msm_routing_put_port_mixer),
  17515. };
  17516. static const struct snd_kcontrol_new sen_auxpcm_rx_port_mixer_controls[] = {
  17517. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17518. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  17519. MSM_BACKEND_DAI_SEN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17520. msm_routing_put_port_mixer),
  17521. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17522. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  17523. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17524. msm_routing_put_port_mixer),
  17525. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17526. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  17527. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17528. msm_routing_put_port_mixer),
  17529. };
  17530. static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
  17531. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17532. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17533. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17534. msm_routing_put_port_mixer),
  17535. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17536. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17537. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
  17538. msm_routing_put_port_mixer),
  17539. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17540. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17541. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17542. msm_routing_put_port_mixer),
  17543. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17544. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17545. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17546. msm_routing_put_port_mixer),
  17547. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17548. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17549. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17550. msm_routing_put_port_mixer),
  17551. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17552. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17553. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17554. msm_routing_put_port_mixer),
  17555. };
  17556. static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
  17557. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_RX", SND_SOC_NOPM,
  17558. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17559. MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
  17560. msm_routing_put_port_mixer),
  17561. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17562. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17563. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17564. msm_routing_put_port_mixer),
  17565. SOC_DOUBLE_EXT("AFE_PCM_RX", SND_SOC_NOPM,
  17566. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17567. MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
  17568. msm_routing_put_port_mixer),
  17569. SOC_DOUBLE_EXT("AUX_PCM_RX", SND_SOC_NOPM,
  17570. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17571. MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
  17572. msm_routing_put_port_mixer),
  17573. SOC_DOUBLE_EXT("SLIM_0_RX", SND_SOC_NOPM,
  17574. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17575. MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
  17576. msm_routing_put_port_mixer),
  17577. };
  17578. static const struct snd_kcontrol_new sbus_6_rx_port_mixer_controls[] = {
  17579. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17580. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17581. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17582. msm_routing_put_port_mixer),
  17583. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17584. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17585. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17586. msm_routing_put_port_mixer),
  17587. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17588. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17589. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17590. msm_routing_put_port_mixer),
  17591. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17592. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17593. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  17594. msm_routing_put_port_mixer),
  17595. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17596. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17597. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17598. msm_routing_put_port_mixer),
  17599. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17600. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17601. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17602. msm_routing_put_port_mixer),
  17603. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17604. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17605. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17606. msm_routing_put_port_mixer),
  17607. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17608. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17609. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17610. msm_routing_put_port_mixer),
  17611. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17612. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17613. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17614. msm_routing_put_port_mixer),
  17615. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17616. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17617. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17618. msm_routing_put_port_mixer),
  17619. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17620. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17621. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17622. msm_routing_put_port_mixer),
  17623. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17624. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17625. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17626. msm_routing_put_port_mixer),
  17627. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17628. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17629. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  17630. msm_routing_put_port_mixer),
  17631. };
  17632. static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
  17633. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17634. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  17635. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17636. msm_routing_put_port_mixer),
  17637. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17638. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  17639. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17640. msm_routing_put_port_mixer),
  17641. };
  17642. static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
  17643. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17644. MSM_BACKEND_DAI_AFE_PCM_RX,
  17645. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17646. msm_routing_put_port_mixer),
  17647. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17648. MSM_BACKEND_DAI_AFE_PCM_RX,
  17649. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17650. msm_routing_put_port_mixer),
  17651. };
  17652. static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
  17653. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17654. MSM_BACKEND_DAI_HDMI_RX,
  17655. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17656. msm_routing_put_port_mixer),
  17657. };
  17658. static const struct snd_kcontrol_new display_port_rx_port_mixer_controls[] = {
  17659. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17660. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  17661. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17662. msm_routing_put_port_mixer),
  17663. };
  17664. static const struct snd_kcontrol_new display_port_rx1_port_mixer_controls[] = {
  17665. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17666. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  17667. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17668. msm_routing_put_port_mixer),
  17669. };
  17670. static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
  17671. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17672. MSM_BACKEND_DAI_SEC_I2S_RX,
  17673. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17674. msm_routing_put_port_mixer),
  17675. };
  17676. static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
  17677. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17678. MSM_BACKEND_DAI_MI2S_RX,
  17679. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17680. msm_routing_put_port_mixer),
  17681. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17682. MSM_BACKEND_DAI_MI2S_RX,
  17683. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17684. msm_routing_put_port_mixer),
  17685. };
  17686. static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
  17687. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17688. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17689. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17690. msm_routing_put_port_mixer),
  17691. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17692. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17693. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17694. msm_routing_put_port_mixer),
  17695. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17696. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17697. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17698. msm_routing_put_port_mixer),
  17699. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17700. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17701. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17702. msm_routing_put_port_mixer),
  17703. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17704. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17705. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17706. msm_routing_put_port_mixer),
  17707. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17708. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17709. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17710. msm_routing_put_port_mixer),
  17711. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17712. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17713. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17714. msm_routing_put_port_mixer),
  17715. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17716. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17717. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17718. msm_routing_put_port_mixer),
  17719. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17720. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17721. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17722. msm_routing_put_port_mixer),
  17723. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17724. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17725. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17726. msm_routing_put_port_mixer),
  17727. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17728. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17729. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17730. msm_routing_put_port_mixer),
  17731. };
  17732. static const struct snd_kcontrol_new usb_rx_port_mixer_controls[] = {
  17733. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  17734. MSM_BACKEND_DAI_USB_RX,
  17735. MSM_BACKEND_DAI_USB_TX, 1, 0, msm_routing_get_port_mixer,
  17736. msm_routing_put_port_mixer),
  17737. };
  17738. static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
  17739. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17740. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17741. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17742. msm_routing_put_port_mixer),
  17743. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17744. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17745. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17746. msm_routing_put_port_mixer),
  17747. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17748. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17749. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17750. msm_routing_put_port_mixer),
  17751. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17752. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17753. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17754. msm_routing_put_port_mixer),
  17755. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17756. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17757. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17758. msm_routing_put_port_mixer),
  17759. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17760. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17761. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17762. msm_routing_put_port_mixer),
  17763. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17764. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17765. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17766. msm_routing_put_port_mixer),
  17767. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17768. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17769. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17770. msm_routing_put_port_mixer),
  17771. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17772. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17773. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17774. msm_routing_put_port_mixer),
  17775. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17776. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17777. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17778. msm_routing_put_port_mixer),
  17779. };
  17780. static const struct snd_kcontrol_new quin_mi2s_rx_port_mixer_controls[] = {
  17781. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17782. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17783. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17784. msm_routing_put_port_mixer),
  17785. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17786. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17787. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17788. msm_routing_put_port_mixer),
  17789. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17790. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17791. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17792. msm_routing_put_port_mixer),
  17793. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17794. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17795. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17796. msm_routing_put_port_mixer),
  17797. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17798. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17799. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17800. msm_routing_put_port_mixer),
  17801. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17802. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17803. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17804. msm_routing_put_port_mixer),
  17805. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17806. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17807. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17808. msm_routing_put_port_mixer),
  17809. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17810. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17811. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17812. msm_routing_put_port_mixer),
  17813. };
  17814. static const struct snd_kcontrol_new sen_mi2s_rx_port_mixer_controls[] = {
  17815. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17816. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17817. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17818. msm_routing_put_port_mixer),
  17819. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17820. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17821. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17822. msm_routing_put_port_mixer),
  17823. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17824. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17825. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17826. msm_routing_put_port_mixer),
  17827. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17828. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17829. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17830. msm_routing_put_port_mixer),
  17831. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17832. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17833. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17834. msm_routing_put_port_mixer),
  17835. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17836. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17837. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17838. msm_routing_put_port_mixer),
  17839. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17840. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17841. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17842. msm_routing_put_port_mixer),
  17843. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17844. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17845. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17846. msm_routing_put_port_mixer),
  17847. };
  17848. static const struct snd_kcontrol_new pri_tdm_rx_0_port_mixer_controls[] = {
  17849. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17850. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17851. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17852. msm_routing_get_port_mixer,
  17853. msm_routing_put_port_mixer),
  17854. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17855. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17856. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17857. msm_routing_get_port_mixer,
  17858. msm_routing_put_port_mixer),
  17859. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17860. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17861. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17862. msm_routing_get_port_mixer,
  17863. msm_routing_put_port_mixer),
  17864. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17865. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17866. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17867. msm_routing_get_port_mixer,
  17868. msm_routing_put_port_mixer),
  17869. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17870. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17871. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17872. msm_routing_get_port_mixer,
  17873. msm_routing_put_port_mixer),
  17874. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17875. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17876. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17877. msm_routing_get_port_mixer,
  17878. msm_routing_put_port_mixer),
  17879. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17880. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17881. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17882. msm_routing_get_port_mixer,
  17883. msm_routing_put_port_mixer),
  17884. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17885. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17886. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17887. msm_routing_get_port_mixer,
  17888. msm_routing_put_port_mixer),
  17889. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  17890. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17891. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  17892. msm_routing_get_port_mixer,
  17893. msm_routing_put_port_mixer),
  17894. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  17895. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17896. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  17897. msm_routing_get_port_mixer,
  17898. msm_routing_put_port_mixer),
  17899. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  17900. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17901. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  17902. msm_routing_get_port_mixer,
  17903. msm_routing_put_port_mixer),
  17904. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  17905. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17906. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  17907. msm_routing_get_port_mixer,
  17908. msm_routing_put_port_mixer),
  17909. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17910. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17911. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17912. msm_routing_get_port_mixer,
  17913. msm_routing_put_port_mixer),
  17914. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17915. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17916. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17917. msm_routing_get_port_mixer,
  17918. msm_routing_put_port_mixer),
  17919. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17920. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17921. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17922. msm_routing_get_port_mixer,
  17923. msm_routing_put_port_mixer),
  17924. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17925. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17926. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17927. msm_routing_get_port_mixer,
  17928. msm_routing_put_port_mixer),
  17929. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17930. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17931. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17932. msm_routing_get_port_mixer,
  17933. msm_routing_put_port_mixer),
  17934. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17935. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17936. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17937. msm_routing_get_port_mixer,
  17938. msm_routing_put_port_mixer),
  17939. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17940. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17941. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17942. msm_routing_get_port_mixer,
  17943. msm_routing_put_port_mixer),
  17944. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17945. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17946. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17947. msm_routing_get_port_mixer,
  17948. msm_routing_put_port_mixer),
  17949. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17950. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17951. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17952. msm_routing_get_port_mixer,
  17953. msm_routing_put_port_mixer),
  17954. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17955. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17956. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17957. msm_routing_get_port_mixer,
  17958. msm_routing_put_port_mixer),
  17959. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17960. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17961. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17962. msm_routing_get_port_mixer,
  17963. msm_routing_put_port_mixer),
  17964. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17965. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17966. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17967. msm_routing_get_port_mixer,
  17968. msm_routing_put_port_mixer),
  17969. };
  17970. static const struct snd_kcontrol_new pri_tdm_rx_1_port_mixer_controls[] = {
  17971. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17972. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17973. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17974. msm_routing_get_port_mixer,
  17975. msm_routing_put_port_mixer),
  17976. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17977. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17978. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17979. msm_routing_get_port_mixer,
  17980. msm_routing_put_port_mixer),
  17981. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17982. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17983. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17984. msm_routing_get_port_mixer,
  17985. msm_routing_put_port_mixer),
  17986. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17987. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17988. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17989. msm_routing_get_port_mixer,
  17990. msm_routing_put_port_mixer),
  17991. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17992. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17993. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17994. msm_routing_get_port_mixer,
  17995. msm_routing_put_port_mixer),
  17996. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17997. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17998. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17999. msm_routing_get_port_mixer,
  18000. msm_routing_put_port_mixer),
  18001. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18002. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18003. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18004. msm_routing_get_port_mixer,
  18005. msm_routing_put_port_mixer),
  18006. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18007. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18008. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18009. msm_routing_get_port_mixer,
  18010. msm_routing_put_port_mixer),
  18011. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  18012. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18013. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  18014. msm_routing_get_port_mixer,
  18015. msm_routing_put_port_mixer),
  18016. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  18017. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18018. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  18019. msm_routing_get_port_mixer,
  18020. msm_routing_put_port_mixer),
  18021. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  18022. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18023. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  18024. msm_routing_get_port_mixer,
  18025. msm_routing_put_port_mixer),
  18026. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  18027. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18028. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  18029. msm_routing_get_port_mixer,
  18030. msm_routing_put_port_mixer),
  18031. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18032. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18033. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18034. msm_routing_get_port_mixer,
  18035. msm_routing_put_port_mixer),
  18036. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18037. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18038. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18039. msm_routing_get_port_mixer,
  18040. msm_routing_put_port_mixer),
  18041. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18042. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18043. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18044. msm_routing_get_port_mixer,
  18045. msm_routing_put_port_mixer),
  18046. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18047. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18048. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18049. msm_routing_get_port_mixer,
  18050. msm_routing_put_port_mixer),
  18051. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18052. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18053. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18054. msm_routing_get_port_mixer,
  18055. msm_routing_put_port_mixer),
  18056. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18057. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18058. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18059. msm_routing_get_port_mixer,
  18060. msm_routing_put_port_mixer),
  18061. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18062. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18063. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18064. msm_routing_get_port_mixer,
  18065. msm_routing_put_port_mixer),
  18066. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18067. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18068. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18069. msm_routing_get_port_mixer,
  18070. msm_routing_put_port_mixer),
  18071. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18072. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18073. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18074. msm_routing_get_port_mixer,
  18075. msm_routing_put_port_mixer),
  18076. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18077. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18078. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18079. msm_routing_get_port_mixer,
  18080. msm_routing_put_port_mixer),
  18081. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18082. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18083. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18084. msm_routing_get_port_mixer,
  18085. msm_routing_put_port_mixer),
  18086. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18087. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18088. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18089. msm_routing_get_port_mixer,
  18090. msm_routing_put_port_mixer),
  18091. };
  18092. static const struct snd_kcontrol_new pri_tdm_rx_2_port_mixer_controls[] = {
  18093. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18094. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18095. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18096. msm_routing_get_port_mixer,
  18097. msm_routing_put_port_mixer),
  18098. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18099. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18100. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18101. msm_routing_get_port_mixer,
  18102. msm_routing_put_port_mixer),
  18103. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18104. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18105. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18106. msm_routing_get_port_mixer,
  18107. msm_routing_put_port_mixer),
  18108. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18109. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18110. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18111. msm_routing_get_port_mixer,
  18112. msm_routing_put_port_mixer),
  18113. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18114. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18115. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18116. msm_routing_get_port_mixer,
  18117. msm_routing_put_port_mixer),
  18118. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18119. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18120. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18121. msm_routing_get_port_mixer,
  18122. msm_routing_put_port_mixer),
  18123. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18124. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18125. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18126. msm_routing_get_port_mixer,
  18127. msm_routing_put_port_mixer),
  18128. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18129. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18130. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18131. msm_routing_get_port_mixer,
  18132. msm_routing_put_port_mixer),
  18133. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  18134. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18135. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  18136. msm_routing_get_port_mixer,
  18137. msm_routing_put_port_mixer),
  18138. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  18139. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18140. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  18141. msm_routing_get_port_mixer,
  18142. msm_routing_put_port_mixer),
  18143. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  18144. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18145. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  18146. msm_routing_get_port_mixer,
  18147. msm_routing_put_port_mixer),
  18148. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  18149. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18150. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  18151. msm_routing_get_port_mixer,
  18152. msm_routing_put_port_mixer),
  18153. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18154. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18155. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18156. msm_routing_get_port_mixer,
  18157. msm_routing_put_port_mixer),
  18158. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18159. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18160. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18161. msm_routing_get_port_mixer,
  18162. msm_routing_put_port_mixer),
  18163. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18164. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18165. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18166. msm_routing_get_port_mixer,
  18167. msm_routing_put_port_mixer),
  18168. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18169. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18170. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18171. msm_routing_get_port_mixer,
  18172. msm_routing_put_port_mixer),
  18173. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18174. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18175. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18176. msm_routing_get_port_mixer,
  18177. msm_routing_put_port_mixer),
  18178. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18179. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18180. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18181. msm_routing_get_port_mixer,
  18182. msm_routing_put_port_mixer),
  18183. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18184. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18185. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18186. msm_routing_get_port_mixer,
  18187. msm_routing_put_port_mixer),
  18188. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18189. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18190. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18191. msm_routing_get_port_mixer,
  18192. msm_routing_put_port_mixer),
  18193. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18194. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18195. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18196. msm_routing_get_port_mixer,
  18197. msm_routing_put_port_mixer),
  18198. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18199. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18200. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18201. msm_routing_get_port_mixer,
  18202. msm_routing_put_port_mixer),
  18203. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18204. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18205. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18206. msm_routing_get_port_mixer,
  18207. msm_routing_put_port_mixer),
  18208. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18209. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18210. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18211. msm_routing_get_port_mixer,
  18212. msm_routing_put_port_mixer),
  18213. };
  18214. static const struct snd_kcontrol_new pri_tdm_rx_3_port_mixer_controls[] = {
  18215. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18216. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18217. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18218. msm_routing_get_port_mixer,
  18219. msm_routing_put_port_mixer),
  18220. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18221. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18222. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18223. msm_routing_get_port_mixer,
  18224. msm_routing_put_port_mixer),
  18225. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18226. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18227. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18228. msm_routing_get_port_mixer,
  18229. msm_routing_put_port_mixer),
  18230. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18231. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18232. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18233. msm_routing_get_port_mixer,
  18234. msm_routing_put_port_mixer),
  18235. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18236. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18237. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18238. msm_routing_get_port_mixer,
  18239. msm_routing_put_port_mixer),
  18240. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18241. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18242. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18243. msm_routing_get_port_mixer,
  18244. msm_routing_put_port_mixer),
  18245. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18246. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18247. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18248. msm_routing_get_port_mixer,
  18249. msm_routing_put_port_mixer),
  18250. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18251. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18252. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18253. msm_routing_get_port_mixer,
  18254. msm_routing_put_port_mixer),
  18255. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  18256. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18257. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  18258. msm_routing_get_port_mixer,
  18259. msm_routing_put_port_mixer),
  18260. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  18261. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18262. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  18263. msm_routing_get_port_mixer,
  18264. msm_routing_put_port_mixer),
  18265. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  18266. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18267. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  18268. msm_routing_get_port_mixer,
  18269. msm_routing_put_port_mixer),
  18270. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  18271. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18272. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  18273. msm_routing_get_port_mixer,
  18274. msm_routing_put_port_mixer),
  18275. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18276. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18277. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18278. msm_routing_get_port_mixer,
  18279. msm_routing_put_port_mixer),
  18280. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18281. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18282. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18283. msm_routing_get_port_mixer,
  18284. msm_routing_put_port_mixer),
  18285. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18286. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18287. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18288. msm_routing_get_port_mixer,
  18289. msm_routing_put_port_mixer),
  18290. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18291. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18292. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18293. msm_routing_get_port_mixer,
  18294. msm_routing_put_port_mixer),
  18295. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18296. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18297. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18298. msm_routing_get_port_mixer,
  18299. msm_routing_put_port_mixer),
  18300. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18301. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18302. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18303. msm_routing_get_port_mixer,
  18304. msm_routing_put_port_mixer),
  18305. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18306. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18307. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18308. msm_routing_get_port_mixer,
  18309. msm_routing_put_port_mixer),
  18310. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18311. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18312. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18313. msm_routing_get_port_mixer,
  18314. msm_routing_put_port_mixer),
  18315. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18316. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18317. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18318. msm_routing_get_port_mixer,
  18319. msm_routing_put_port_mixer),
  18320. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18321. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18322. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18323. msm_routing_get_port_mixer,
  18324. msm_routing_put_port_mixer),
  18325. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18326. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18327. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18328. msm_routing_get_port_mixer,
  18329. msm_routing_put_port_mixer),
  18330. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18331. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18332. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18333. msm_routing_get_port_mixer,
  18334. msm_routing_put_port_mixer),
  18335. };
  18336. static const struct snd_kcontrol_new sec_tdm_rx_0_port_mixer_controls[] = {
  18337. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18338. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18339. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18340. msm_routing_get_port_mixer,
  18341. msm_routing_put_port_mixer),
  18342. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18343. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18344. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18345. msm_routing_get_port_mixer,
  18346. msm_routing_put_port_mixer),
  18347. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18348. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18349. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18350. msm_routing_get_port_mixer,
  18351. msm_routing_put_port_mixer),
  18352. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18353. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18354. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18355. msm_routing_get_port_mixer,
  18356. msm_routing_put_port_mixer),
  18357. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18358. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18359. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18360. msm_routing_get_port_mixer,
  18361. msm_routing_put_port_mixer),
  18362. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18363. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18364. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18365. msm_routing_get_port_mixer,
  18366. msm_routing_put_port_mixer),
  18367. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18368. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18369. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18370. msm_routing_get_port_mixer,
  18371. msm_routing_put_port_mixer),
  18372. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18373. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18374. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18375. msm_routing_get_port_mixer,
  18376. msm_routing_put_port_mixer),
  18377. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  18378. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18379. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  18380. msm_routing_get_port_mixer,
  18381. msm_routing_put_port_mixer),
  18382. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  18383. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18384. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  18385. msm_routing_get_port_mixer,
  18386. msm_routing_put_port_mixer),
  18387. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  18388. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18389. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  18390. msm_routing_get_port_mixer,
  18391. msm_routing_put_port_mixer),
  18392. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  18393. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18394. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  18395. msm_routing_get_port_mixer,
  18396. msm_routing_put_port_mixer),
  18397. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18398. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18399. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18400. msm_routing_get_port_mixer,
  18401. msm_routing_put_port_mixer),
  18402. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18403. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18404. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18405. msm_routing_get_port_mixer,
  18406. msm_routing_put_port_mixer),
  18407. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18408. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18409. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18410. msm_routing_get_port_mixer,
  18411. msm_routing_put_port_mixer),
  18412. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18413. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18414. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18415. msm_routing_get_port_mixer,
  18416. msm_routing_put_port_mixer),
  18417. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18418. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18419. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18420. msm_routing_get_port_mixer,
  18421. msm_routing_put_port_mixer),
  18422. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18423. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18424. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18425. msm_routing_get_port_mixer,
  18426. msm_routing_put_port_mixer),
  18427. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18428. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18429. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18430. msm_routing_get_port_mixer,
  18431. msm_routing_put_port_mixer),
  18432. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18433. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18434. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18435. msm_routing_get_port_mixer,
  18436. msm_routing_put_port_mixer),
  18437. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18438. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18439. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18440. msm_routing_get_port_mixer,
  18441. msm_routing_put_port_mixer),
  18442. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18443. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18444. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18445. msm_routing_get_port_mixer,
  18446. msm_routing_put_port_mixer),
  18447. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18448. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18449. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18450. msm_routing_get_port_mixer,
  18451. msm_routing_put_port_mixer),
  18452. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18453. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18454. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18455. msm_routing_get_port_mixer,
  18456. msm_routing_put_port_mixer),
  18457. };
  18458. static const struct snd_kcontrol_new sec_tdm_rx_1_port_mixer_controls[] = {
  18459. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18460. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18461. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18462. msm_routing_get_port_mixer,
  18463. msm_routing_put_port_mixer),
  18464. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18465. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18466. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18467. msm_routing_get_port_mixer,
  18468. msm_routing_put_port_mixer),
  18469. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18470. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18471. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18472. msm_routing_get_port_mixer,
  18473. msm_routing_put_port_mixer),
  18474. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18475. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18476. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18477. msm_routing_get_port_mixer,
  18478. msm_routing_put_port_mixer),
  18479. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18480. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18481. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18482. msm_routing_get_port_mixer,
  18483. msm_routing_put_port_mixer),
  18484. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18485. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18486. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18487. msm_routing_get_port_mixer,
  18488. msm_routing_put_port_mixer),
  18489. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18490. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18491. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18492. msm_routing_get_port_mixer,
  18493. msm_routing_put_port_mixer),
  18494. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18495. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18496. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18497. msm_routing_get_port_mixer,
  18498. msm_routing_put_port_mixer),
  18499. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  18500. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18501. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  18502. msm_routing_get_port_mixer,
  18503. msm_routing_put_port_mixer),
  18504. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  18505. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18506. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  18507. msm_routing_get_port_mixer,
  18508. msm_routing_put_port_mixer),
  18509. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  18510. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18511. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  18512. msm_routing_get_port_mixer,
  18513. msm_routing_put_port_mixer),
  18514. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  18515. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18516. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  18517. msm_routing_get_port_mixer,
  18518. msm_routing_put_port_mixer),
  18519. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18520. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18521. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18522. msm_routing_get_port_mixer,
  18523. msm_routing_put_port_mixer),
  18524. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18525. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18526. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18527. msm_routing_get_port_mixer,
  18528. msm_routing_put_port_mixer),
  18529. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18530. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18531. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18532. msm_routing_get_port_mixer,
  18533. msm_routing_put_port_mixer),
  18534. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18535. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18536. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18537. msm_routing_get_port_mixer,
  18538. msm_routing_put_port_mixer),
  18539. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18540. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18541. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18542. msm_routing_get_port_mixer,
  18543. msm_routing_put_port_mixer),
  18544. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18545. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18546. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18547. msm_routing_get_port_mixer,
  18548. msm_routing_put_port_mixer),
  18549. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18550. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18551. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18552. msm_routing_get_port_mixer,
  18553. msm_routing_put_port_mixer),
  18554. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18555. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18556. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18557. msm_routing_get_port_mixer,
  18558. msm_routing_put_port_mixer),
  18559. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18560. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18561. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18562. msm_routing_get_port_mixer,
  18563. msm_routing_put_port_mixer),
  18564. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18565. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18566. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18567. msm_routing_get_port_mixer,
  18568. msm_routing_put_port_mixer),
  18569. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18570. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18571. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18572. msm_routing_get_port_mixer,
  18573. msm_routing_put_port_mixer),
  18574. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18575. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18576. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18577. msm_routing_get_port_mixer,
  18578. msm_routing_put_port_mixer),
  18579. };
  18580. static const struct snd_kcontrol_new sec_tdm_rx_2_port_mixer_controls[] = {
  18581. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18582. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18583. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18584. msm_routing_get_port_mixer,
  18585. msm_routing_put_port_mixer),
  18586. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18587. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18588. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18589. msm_routing_get_port_mixer,
  18590. msm_routing_put_port_mixer),
  18591. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18592. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18593. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18594. msm_routing_get_port_mixer,
  18595. msm_routing_put_port_mixer),
  18596. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18597. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18598. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18599. msm_routing_get_port_mixer,
  18600. msm_routing_put_port_mixer),
  18601. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18602. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18603. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18604. msm_routing_get_port_mixer,
  18605. msm_routing_put_port_mixer),
  18606. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18607. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18608. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18609. msm_routing_get_port_mixer,
  18610. msm_routing_put_port_mixer),
  18611. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18612. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18613. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18614. msm_routing_get_port_mixer,
  18615. msm_routing_put_port_mixer),
  18616. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18617. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18618. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18619. msm_routing_get_port_mixer,
  18620. msm_routing_put_port_mixer),
  18621. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  18622. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18623. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  18624. msm_routing_get_port_mixer,
  18625. msm_routing_put_port_mixer),
  18626. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  18627. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18628. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  18629. msm_routing_get_port_mixer,
  18630. msm_routing_put_port_mixer),
  18631. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  18632. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18633. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  18634. msm_routing_get_port_mixer,
  18635. msm_routing_put_port_mixer),
  18636. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  18637. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18638. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  18639. msm_routing_get_port_mixer,
  18640. msm_routing_put_port_mixer),
  18641. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18642. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18643. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18644. msm_routing_get_port_mixer,
  18645. msm_routing_put_port_mixer),
  18646. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18647. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18648. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18649. msm_routing_get_port_mixer,
  18650. msm_routing_put_port_mixer),
  18651. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18652. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18653. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18654. msm_routing_get_port_mixer,
  18655. msm_routing_put_port_mixer),
  18656. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18657. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18658. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18659. msm_routing_get_port_mixer,
  18660. msm_routing_put_port_mixer),
  18661. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18662. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18663. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18664. msm_routing_get_port_mixer,
  18665. msm_routing_put_port_mixer),
  18666. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18667. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18668. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18669. msm_routing_get_port_mixer,
  18670. msm_routing_put_port_mixer),
  18671. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18672. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18673. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18674. msm_routing_get_port_mixer,
  18675. msm_routing_put_port_mixer),
  18676. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18677. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18678. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18679. msm_routing_get_port_mixer,
  18680. msm_routing_put_port_mixer),
  18681. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18682. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18683. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18684. msm_routing_get_port_mixer,
  18685. msm_routing_put_port_mixer),
  18686. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18687. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18688. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18689. msm_routing_get_port_mixer,
  18690. msm_routing_put_port_mixer),
  18691. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18692. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18693. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18694. msm_routing_get_port_mixer,
  18695. msm_routing_put_port_mixer),
  18696. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18697. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18698. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18699. msm_routing_get_port_mixer,
  18700. msm_routing_put_port_mixer),
  18701. };
  18702. static const struct snd_kcontrol_new sec_tdm_rx_3_port_mixer_controls[] = {
  18703. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18704. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18705. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18706. msm_routing_get_port_mixer,
  18707. msm_routing_put_port_mixer),
  18708. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18709. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18710. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18711. msm_routing_get_port_mixer,
  18712. msm_routing_put_port_mixer),
  18713. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18714. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18715. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18716. msm_routing_get_port_mixer,
  18717. msm_routing_put_port_mixer),
  18718. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18719. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18720. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18721. msm_routing_get_port_mixer,
  18722. msm_routing_put_port_mixer),
  18723. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18724. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18725. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18726. msm_routing_get_port_mixer,
  18727. msm_routing_put_port_mixer),
  18728. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18729. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18730. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18731. msm_routing_get_port_mixer,
  18732. msm_routing_put_port_mixer),
  18733. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18734. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18735. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18736. msm_routing_get_port_mixer,
  18737. msm_routing_put_port_mixer),
  18738. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18739. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18740. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18741. msm_routing_get_port_mixer,
  18742. msm_routing_put_port_mixer),
  18743. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  18744. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18745. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  18746. msm_routing_get_port_mixer,
  18747. msm_routing_put_port_mixer),
  18748. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  18749. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18750. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  18751. msm_routing_get_port_mixer,
  18752. msm_routing_put_port_mixer),
  18753. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  18754. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18755. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  18756. msm_routing_get_port_mixer,
  18757. msm_routing_put_port_mixer),
  18758. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  18759. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18760. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  18761. msm_routing_get_port_mixer,
  18762. msm_routing_put_port_mixer),
  18763. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18764. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18765. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18766. msm_routing_get_port_mixer,
  18767. msm_routing_put_port_mixer),
  18768. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18769. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18770. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18771. msm_routing_get_port_mixer,
  18772. msm_routing_put_port_mixer),
  18773. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18774. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18775. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18776. msm_routing_get_port_mixer,
  18777. msm_routing_put_port_mixer),
  18778. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18779. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18780. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18781. msm_routing_get_port_mixer,
  18782. msm_routing_put_port_mixer),
  18783. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18784. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18785. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18786. msm_routing_get_port_mixer,
  18787. msm_routing_put_port_mixer),
  18788. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18789. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18790. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18791. msm_routing_get_port_mixer,
  18792. msm_routing_put_port_mixer),
  18793. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18794. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18795. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18796. msm_routing_get_port_mixer,
  18797. msm_routing_put_port_mixer),
  18798. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18799. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18800. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18801. msm_routing_get_port_mixer,
  18802. msm_routing_put_port_mixer),
  18803. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18804. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18805. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18806. msm_routing_get_port_mixer,
  18807. msm_routing_put_port_mixer),
  18808. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18809. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18810. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18811. msm_routing_get_port_mixer,
  18812. msm_routing_put_port_mixer),
  18813. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18814. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18815. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18816. msm_routing_get_port_mixer,
  18817. msm_routing_put_port_mixer),
  18818. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18819. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18820. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18821. msm_routing_get_port_mixer,
  18822. msm_routing_put_port_mixer),
  18823. };
  18824. static const struct snd_kcontrol_new sec_tdm_rx_7_port_mixer_controls[] = {
  18825. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  18826. MSM_BACKEND_DAI_SEC_TDM_RX_7,
  18827. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  18828. msm_routing_get_port_mixer,
  18829. msm_routing_put_port_mixer),
  18830. };
  18831. static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
  18832. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18833. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18834. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18835. msm_routing_get_port_mixer,
  18836. msm_routing_put_port_mixer),
  18837. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18838. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18839. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18840. msm_routing_get_port_mixer,
  18841. msm_routing_put_port_mixer),
  18842. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18843. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18844. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18845. msm_routing_get_port_mixer,
  18846. msm_routing_put_port_mixer),
  18847. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18848. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18849. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18850. msm_routing_get_port_mixer,
  18851. msm_routing_put_port_mixer),
  18852. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18853. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18854. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18855. msm_routing_get_port_mixer,
  18856. msm_routing_put_port_mixer),
  18857. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18858. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18859. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18860. msm_routing_get_port_mixer,
  18861. msm_routing_put_port_mixer),
  18862. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18863. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18864. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18865. msm_routing_get_port_mixer,
  18866. msm_routing_put_port_mixer),
  18867. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18868. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18869. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18870. msm_routing_get_port_mixer,
  18871. msm_routing_put_port_mixer),
  18872. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18873. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18874. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18875. msm_routing_get_port_mixer,
  18876. msm_routing_put_port_mixer),
  18877. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18878. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18879. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18880. msm_routing_get_port_mixer,
  18881. msm_routing_put_port_mixer),
  18882. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18883. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18884. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18885. msm_routing_get_port_mixer,
  18886. msm_routing_put_port_mixer),
  18887. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18888. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18889. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18890. msm_routing_get_port_mixer,
  18891. msm_routing_put_port_mixer),
  18892. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18893. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18894. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18895. msm_routing_get_port_mixer,
  18896. msm_routing_put_port_mixer),
  18897. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18898. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18899. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18900. msm_routing_get_port_mixer,
  18901. msm_routing_put_port_mixer),
  18902. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18903. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18904. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18905. msm_routing_get_port_mixer,
  18906. msm_routing_put_port_mixer),
  18907. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18908. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18909. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18910. msm_routing_get_port_mixer,
  18911. msm_routing_put_port_mixer),
  18912. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18913. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18914. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18915. msm_routing_get_port_mixer,
  18916. msm_routing_put_port_mixer),
  18917. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18918. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18919. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18920. msm_routing_get_port_mixer,
  18921. msm_routing_put_port_mixer),
  18922. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18923. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18924. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18925. msm_routing_get_port_mixer,
  18926. msm_routing_put_port_mixer),
  18927. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18928. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18929. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18930. msm_routing_get_port_mixer,
  18931. msm_routing_put_port_mixer),
  18932. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18933. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18934. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18935. msm_routing_get_port_mixer,
  18936. msm_routing_put_port_mixer),
  18937. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18938. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18939. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18940. msm_routing_get_port_mixer,
  18941. msm_routing_put_port_mixer),
  18942. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18943. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18944. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18945. msm_routing_get_port_mixer,
  18946. msm_routing_put_port_mixer),
  18947. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18948. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18949. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18950. msm_routing_get_port_mixer,
  18951. msm_routing_put_port_mixer),
  18952. };
  18953. static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
  18954. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18955. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18956. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18957. msm_routing_get_port_mixer,
  18958. msm_routing_put_port_mixer),
  18959. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18960. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18961. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18962. msm_routing_get_port_mixer,
  18963. msm_routing_put_port_mixer),
  18964. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18965. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18966. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18967. msm_routing_get_port_mixer,
  18968. msm_routing_put_port_mixer),
  18969. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18970. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18971. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18972. msm_routing_get_port_mixer,
  18973. msm_routing_put_port_mixer),
  18974. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18975. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18976. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18977. msm_routing_get_port_mixer,
  18978. msm_routing_put_port_mixer),
  18979. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18980. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18981. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18982. msm_routing_get_port_mixer,
  18983. msm_routing_put_port_mixer),
  18984. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18985. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18986. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18987. msm_routing_get_port_mixer,
  18988. msm_routing_put_port_mixer),
  18989. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18990. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18991. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18992. msm_routing_get_port_mixer,
  18993. msm_routing_put_port_mixer),
  18994. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18995. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18996. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18997. msm_routing_get_port_mixer,
  18998. msm_routing_put_port_mixer),
  18999. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19000. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19001. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19002. msm_routing_get_port_mixer,
  19003. msm_routing_put_port_mixer),
  19004. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19005. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19006. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19007. msm_routing_get_port_mixer,
  19008. msm_routing_put_port_mixer),
  19009. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19010. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19011. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19012. msm_routing_get_port_mixer,
  19013. msm_routing_put_port_mixer),
  19014. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19015. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19016. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19017. msm_routing_get_port_mixer,
  19018. msm_routing_put_port_mixer),
  19019. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19020. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19021. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19022. msm_routing_get_port_mixer,
  19023. msm_routing_put_port_mixer),
  19024. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19025. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19026. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19027. msm_routing_get_port_mixer,
  19028. msm_routing_put_port_mixer),
  19029. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19030. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19031. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19032. msm_routing_get_port_mixer,
  19033. msm_routing_put_port_mixer),
  19034. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19035. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19036. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19037. msm_routing_get_port_mixer,
  19038. msm_routing_put_port_mixer),
  19039. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19040. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19041. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19042. msm_routing_get_port_mixer,
  19043. msm_routing_put_port_mixer),
  19044. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19045. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19046. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19047. msm_routing_get_port_mixer,
  19048. msm_routing_put_port_mixer),
  19049. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19050. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19051. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19052. msm_routing_get_port_mixer,
  19053. msm_routing_put_port_mixer),
  19054. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19055. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19056. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19057. msm_routing_get_port_mixer,
  19058. msm_routing_put_port_mixer),
  19059. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19060. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19061. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19062. msm_routing_get_port_mixer,
  19063. msm_routing_put_port_mixer),
  19064. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19065. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19066. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19067. msm_routing_get_port_mixer,
  19068. msm_routing_put_port_mixer),
  19069. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19070. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19071. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19072. msm_routing_get_port_mixer,
  19073. msm_routing_put_port_mixer),
  19074. };
  19075. static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
  19076. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19077. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19078. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19079. msm_routing_get_port_mixer,
  19080. msm_routing_put_port_mixer),
  19081. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19082. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19083. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19084. msm_routing_get_port_mixer,
  19085. msm_routing_put_port_mixer),
  19086. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19087. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19088. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  19089. msm_routing_get_port_mixer,
  19090. msm_routing_put_port_mixer),
  19091. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19092. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19093. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19094. msm_routing_get_port_mixer,
  19095. msm_routing_put_port_mixer),
  19096. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19097. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19098. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19099. msm_routing_get_port_mixer,
  19100. msm_routing_put_port_mixer),
  19101. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19102. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19103. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19104. msm_routing_get_port_mixer,
  19105. msm_routing_put_port_mixer),
  19106. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19107. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19108. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19109. msm_routing_get_port_mixer,
  19110. msm_routing_put_port_mixer),
  19111. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19112. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19113. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19114. msm_routing_get_port_mixer,
  19115. msm_routing_put_port_mixer),
  19116. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19117. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19118. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19119. msm_routing_get_port_mixer,
  19120. msm_routing_put_port_mixer),
  19121. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19122. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19123. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19124. msm_routing_get_port_mixer,
  19125. msm_routing_put_port_mixer),
  19126. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19127. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19128. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19129. msm_routing_get_port_mixer,
  19130. msm_routing_put_port_mixer),
  19131. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19132. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19133. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19134. msm_routing_get_port_mixer,
  19135. msm_routing_put_port_mixer),
  19136. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19137. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19138. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19139. msm_routing_get_port_mixer,
  19140. msm_routing_put_port_mixer),
  19141. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19142. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19143. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19144. msm_routing_get_port_mixer,
  19145. msm_routing_put_port_mixer),
  19146. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19147. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19148. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19149. msm_routing_get_port_mixer,
  19150. msm_routing_put_port_mixer),
  19151. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19152. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19153. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19154. msm_routing_get_port_mixer,
  19155. msm_routing_put_port_mixer),
  19156. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19157. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19158. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19159. msm_routing_get_port_mixer,
  19160. msm_routing_put_port_mixer),
  19161. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19162. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19163. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19164. msm_routing_get_port_mixer,
  19165. msm_routing_put_port_mixer),
  19166. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19167. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19168. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19169. msm_routing_get_port_mixer,
  19170. msm_routing_put_port_mixer),
  19171. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19172. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19173. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19174. msm_routing_get_port_mixer,
  19175. msm_routing_put_port_mixer),
  19176. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19177. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19178. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19179. msm_routing_get_port_mixer,
  19180. msm_routing_put_port_mixer),
  19181. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19182. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19183. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19184. msm_routing_get_port_mixer,
  19185. msm_routing_put_port_mixer),
  19186. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19187. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19188. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19189. msm_routing_get_port_mixer,
  19190. msm_routing_put_port_mixer),
  19191. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19192. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19193. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19194. msm_routing_get_port_mixer,
  19195. msm_routing_put_port_mixer),
  19196. };
  19197. static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
  19198. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19199. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19200. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19201. msm_routing_get_port_mixer,
  19202. msm_routing_put_port_mixer),
  19203. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19204. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19205. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19206. msm_routing_get_port_mixer,
  19207. msm_routing_put_port_mixer),
  19208. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19209. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19210. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  19211. msm_routing_get_port_mixer,
  19212. msm_routing_put_port_mixer),
  19213. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19214. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19215. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19216. msm_routing_get_port_mixer,
  19217. msm_routing_put_port_mixer),
  19218. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19219. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19220. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19221. msm_routing_get_port_mixer,
  19222. msm_routing_put_port_mixer),
  19223. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19224. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19225. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19226. msm_routing_get_port_mixer,
  19227. msm_routing_put_port_mixer),
  19228. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19229. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19230. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19231. msm_routing_get_port_mixer,
  19232. msm_routing_put_port_mixer),
  19233. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19234. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19235. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19236. msm_routing_get_port_mixer,
  19237. msm_routing_put_port_mixer),
  19238. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19239. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19240. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19241. msm_routing_get_port_mixer,
  19242. msm_routing_put_port_mixer),
  19243. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19244. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19245. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19246. msm_routing_get_port_mixer,
  19247. msm_routing_put_port_mixer),
  19248. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19249. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19250. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19251. msm_routing_get_port_mixer,
  19252. msm_routing_put_port_mixer),
  19253. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19254. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19255. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19256. msm_routing_get_port_mixer,
  19257. msm_routing_put_port_mixer),
  19258. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19259. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19260. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19261. msm_routing_get_port_mixer,
  19262. msm_routing_put_port_mixer),
  19263. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19264. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19265. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19266. msm_routing_get_port_mixer,
  19267. msm_routing_put_port_mixer),
  19268. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19269. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19270. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19271. msm_routing_get_port_mixer,
  19272. msm_routing_put_port_mixer),
  19273. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19274. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19275. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19276. msm_routing_get_port_mixer,
  19277. msm_routing_put_port_mixer),
  19278. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19279. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19280. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19281. msm_routing_get_port_mixer,
  19282. msm_routing_put_port_mixer),
  19283. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19284. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19285. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19286. msm_routing_get_port_mixer,
  19287. msm_routing_put_port_mixer),
  19288. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19289. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19290. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19291. msm_routing_get_port_mixer,
  19292. msm_routing_put_port_mixer),
  19293. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19294. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19295. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19296. msm_routing_get_port_mixer,
  19297. msm_routing_put_port_mixer),
  19298. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19299. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19300. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19301. msm_routing_get_port_mixer,
  19302. msm_routing_put_port_mixer),
  19303. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19304. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19305. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19306. msm_routing_get_port_mixer,
  19307. msm_routing_put_port_mixer),
  19308. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19309. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19310. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19311. msm_routing_get_port_mixer,
  19312. msm_routing_put_port_mixer),
  19313. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19314. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19315. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19316. msm_routing_get_port_mixer,
  19317. msm_routing_put_port_mixer),
  19318. };
  19319. static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
  19320. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19321. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19322. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19323. msm_routing_get_port_mixer,
  19324. msm_routing_put_port_mixer),
  19325. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19326. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19327. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19328. msm_routing_get_port_mixer,
  19329. msm_routing_put_port_mixer),
  19330. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19331. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19332. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19333. msm_routing_get_port_mixer,
  19334. msm_routing_put_port_mixer),
  19335. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19336. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19337. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19338. msm_routing_get_port_mixer,
  19339. msm_routing_put_port_mixer),
  19340. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19341. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19342. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19343. msm_routing_get_port_mixer,
  19344. msm_routing_put_port_mixer),
  19345. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19346. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19347. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19348. msm_routing_get_port_mixer,
  19349. msm_routing_put_port_mixer),
  19350. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19351. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19352. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19353. msm_routing_get_port_mixer,
  19354. msm_routing_put_port_mixer),
  19355. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19356. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19357. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19358. msm_routing_get_port_mixer,
  19359. msm_routing_put_port_mixer),
  19360. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19361. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19362. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19363. msm_routing_get_port_mixer,
  19364. msm_routing_put_port_mixer),
  19365. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19366. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19367. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19368. msm_routing_get_port_mixer,
  19369. msm_routing_put_port_mixer),
  19370. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19371. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19372. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19373. msm_routing_get_port_mixer,
  19374. msm_routing_put_port_mixer),
  19375. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19376. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19377. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19378. msm_routing_get_port_mixer,
  19379. msm_routing_put_port_mixer),
  19380. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19381. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19382. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19383. msm_routing_get_port_mixer,
  19384. msm_routing_put_port_mixer),
  19385. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19386. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19387. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19388. msm_routing_get_port_mixer,
  19389. msm_routing_put_port_mixer),
  19390. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19391. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19392. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19393. msm_routing_get_port_mixer,
  19394. msm_routing_put_port_mixer),
  19395. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19396. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19397. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19398. msm_routing_get_port_mixer,
  19399. msm_routing_put_port_mixer),
  19400. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19401. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19402. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19403. msm_routing_get_port_mixer,
  19404. msm_routing_put_port_mixer),
  19405. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19406. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19407. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19408. msm_routing_get_port_mixer,
  19409. msm_routing_put_port_mixer),
  19410. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19411. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19412. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19413. msm_routing_get_port_mixer,
  19414. msm_routing_put_port_mixer),
  19415. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19416. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19417. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19418. msm_routing_get_port_mixer,
  19419. msm_routing_put_port_mixer),
  19420. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19421. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19422. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19423. msm_routing_get_port_mixer,
  19424. msm_routing_put_port_mixer),
  19425. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19426. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19427. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19428. msm_routing_get_port_mixer,
  19429. msm_routing_put_port_mixer),
  19430. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19431. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19432. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19433. msm_routing_get_port_mixer,
  19434. msm_routing_put_port_mixer),
  19435. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19436. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19437. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19438. msm_routing_get_port_mixer,
  19439. msm_routing_put_port_mixer),
  19440. };
  19441. static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
  19442. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19443. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19444. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19445. msm_routing_get_port_mixer,
  19446. msm_routing_put_port_mixer),
  19447. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19448. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19449. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19450. msm_routing_get_port_mixer,
  19451. msm_routing_put_port_mixer),
  19452. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19453. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19454. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19455. msm_routing_get_port_mixer,
  19456. msm_routing_put_port_mixer),
  19457. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19458. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19459. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19460. msm_routing_get_port_mixer,
  19461. msm_routing_put_port_mixer),
  19462. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19463. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19464. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19465. msm_routing_get_port_mixer,
  19466. msm_routing_put_port_mixer),
  19467. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19468. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19469. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19470. msm_routing_get_port_mixer,
  19471. msm_routing_put_port_mixer),
  19472. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19473. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19474. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19475. msm_routing_get_port_mixer,
  19476. msm_routing_put_port_mixer),
  19477. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19478. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19479. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19480. msm_routing_get_port_mixer,
  19481. msm_routing_put_port_mixer),
  19482. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19483. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19484. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19485. msm_routing_get_port_mixer,
  19486. msm_routing_put_port_mixer),
  19487. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19488. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19489. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19490. msm_routing_get_port_mixer,
  19491. msm_routing_put_port_mixer),
  19492. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19493. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19494. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19495. msm_routing_get_port_mixer,
  19496. msm_routing_put_port_mixer),
  19497. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19498. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19499. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19500. msm_routing_get_port_mixer,
  19501. msm_routing_put_port_mixer),
  19502. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19503. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19504. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19505. msm_routing_get_port_mixer,
  19506. msm_routing_put_port_mixer),
  19507. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19508. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19509. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19510. msm_routing_get_port_mixer,
  19511. msm_routing_put_port_mixer),
  19512. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19513. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19514. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19515. msm_routing_get_port_mixer,
  19516. msm_routing_put_port_mixer),
  19517. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19518. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19519. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19520. msm_routing_get_port_mixer,
  19521. msm_routing_put_port_mixer),
  19522. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19523. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19524. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19525. msm_routing_get_port_mixer,
  19526. msm_routing_put_port_mixer),
  19527. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19528. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19529. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19530. msm_routing_get_port_mixer,
  19531. msm_routing_put_port_mixer),
  19532. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19533. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19534. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19535. msm_routing_get_port_mixer,
  19536. msm_routing_put_port_mixer),
  19537. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19538. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19539. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19540. msm_routing_get_port_mixer,
  19541. msm_routing_put_port_mixer),
  19542. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19543. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19544. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19545. msm_routing_get_port_mixer,
  19546. msm_routing_put_port_mixer),
  19547. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19548. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19549. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19550. msm_routing_get_port_mixer,
  19551. msm_routing_put_port_mixer),
  19552. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19553. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19554. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19555. msm_routing_get_port_mixer,
  19556. msm_routing_put_port_mixer),
  19557. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19558. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19559. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19560. msm_routing_get_port_mixer,
  19561. msm_routing_put_port_mixer),
  19562. };
  19563. static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
  19564. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19565. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19566. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19567. msm_routing_get_port_mixer,
  19568. msm_routing_put_port_mixer),
  19569. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19570. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19571. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19572. msm_routing_get_port_mixer,
  19573. msm_routing_put_port_mixer),
  19574. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19575. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19576. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19577. msm_routing_get_port_mixer,
  19578. msm_routing_put_port_mixer),
  19579. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19580. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19581. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19582. msm_routing_get_port_mixer,
  19583. msm_routing_put_port_mixer),
  19584. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19585. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19586. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19587. msm_routing_get_port_mixer,
  19588. msm_routing_put_port_mixer),
  19589. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19590. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19591. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19592. msm_routing_get_port_mixer,
  19593. msm_routing_put_port_mixer),
  19594. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19595. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19596. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19597. msm_routing_get_port_mixer,
  19598. msm_routing_put_port_mixer),
  19599. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19600. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19601. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19602. msm_routing_get_port_mixer,
  19603. msm_routing_put_port_mixer),
  19604. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19605. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19606. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19607. msm_routing_get_port_mixer,
  19608. msm_routing_put_port_mixer),
  19609. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19610. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19611. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19612. msm_routing_get_port_mixer,
  19613. msm_routing_put_port_mixer),
  19614. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19615. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19616. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19617. msm_routing_get_port_mixer,
  19618. msm_routing_put_port_mixer),
  19619. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19620. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19621. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19622. msm_routing_get_port_mixer,
  19623. msm_routing_put_port_mixer),
  19624. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19625. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19626. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19627. msm_routing_get_port_mixer,
  19628. msm_routing_put_port_mixer),
  19629. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19630. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19631. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19632. msm_routing_get_port_mixer,
  19633. msm_routing_put_port_mixer),
  19634. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19635. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19636. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19637. msm_routing_get_port_mixer,
  19638. msm_routing_put_port_mixer),
  19639. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19640. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19641. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19642. msm_routing_get_port_mixer,
  19643. msm_routing_put_port_mixer),
  19644. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19645. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19646. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19647. msm_routing_get_port_mixer,
  19648. msm_routing_put_port_mixer),
  19649. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19650. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19651. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19652. msm_routing_get_port_mixer,
  19653. msm_routing_put_port_mixer),
  19654. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19655. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19656. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19657. msm_routing_get_port_mixer,
  19658. msm_routing_put_port_mixer),
  19659. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19660. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19661. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19662. msm_routing_get_port_mixer,
  19663. msm_routing_put_port_mixer),
  19664. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19665. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19666. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19667. msm_routing_get_port_mixer,
  19668. msm_routing_put_port_mixer),
  19669. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19670. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19671. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19672. msm_routing_get_port_mixer,
  19673. msm_routing_put_port_mixer),
  19674. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19675. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19676. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19677. msm_routing_get_port_mixer,
  19678. msm_routing_put_port_mixer),
  19679. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19680. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19681. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19682. msm_routing_get_port_mixer,
  19683. msm_routing_put_port_mixer),
  19684. };
  19685. static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
  19686. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19687. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19688. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19689. msm_routing_get_port_mixer,
  19690. msm_routing_put_port_mixer),
  19691. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19692. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19693. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19694. msm_routing_get_port_mixer,
  19695. msm_routing_put_port_mixer),
  19696. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19697. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19698. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19699. msm_routing_get_port_mixer,
  19700. msm_routing_put_port_mixer),
  19701. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19702. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19703. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19704. msm_routing_get_port_mixer,
  19705. msm_routing_put_port_mixer),
  19706. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19707. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19708. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19709. msm_routing_get_port_mixer,
  19710. msm_routing_put_port_mixer),
  19711. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19712. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19713. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19714. msm_routing_get_port_mixer,
  19715. msm_routing_put_port_mixer),
  19716. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19717. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19718. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19719. msm_routing_get_port_mixer,
  19720. msm_routing_put_port_mixer),
  19721. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19722. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19723. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19724. msm_routing_get_port_mixer,
  19725. msm_routing_put_port_mixer),
  19726. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19727. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19728. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19729. msm_routing_get_port_mixer,
  19730. msm_routing_put_port_mixer),
  19731. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19732. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19733. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19734. msm_routing_get_port_mixer,
  19735. msm_routing_put_port_mixer),
  19736. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19737. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19738. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19739. msm_routing_get_port_mixer,
  19740. msm_routing_put_port_mixer),
  19741. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19742. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19743. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19744. msm_routing_get_port_mixer,
  19745. msm_routing_put_port_mixer),
  19746. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19747. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19748. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19749. msm_routing_get_port_mixer,
  19750. msm_routing_put_port_mixer),
  19751. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19752. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19753. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19754. msm_routing_get_port_mixer,
  19755. msm_routing_put_port_mixer),
  19756. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19757. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19758. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19759. msm_routing_get_port_mixer,
  19760. msm_routing_put_port_mixer),
  19761. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19762. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19763. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19764. msm_routing_get_port_mixer,
  19765. msm_routing_put_port_mixer),
  19766. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19767. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19768. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19769. msm_routing_get_port_mixer,
  19770. msm_routing_put_port_mixer),
  19771. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19772. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19773. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19774. msm_routing_get_port_mixer,
  19775. msm_routing_put_port_mixer),
  19776. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19777. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19778. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19779. msm_routing_get_port_mixer,
  19780. msm_routing_put_port_mixer),
  19781. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19782. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19783. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19784. msm_routing_get_port_mixer,
  19785. msm_routing_put_port_mixer),
  19786. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19787. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19788. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19789. msm_routing_get_port_mixer,
  19790. msm_routing_put_port_mixer),
  19791. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19792. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19793. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19794. msm_routing_get_port_mixer,
  19795. msm_routing_put_port_mixer),
  19796. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19797. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19798. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19799. msm_routing_get_port_mixer,
  19800. msm_routing_put_port_mixer),
  19801. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19802. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19803. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19804. msm_routing_get_port_mixer,
  19805. msm_routing_put_port_mixer),
  19806. };
  19807. static const struct snd_kcontrol_new quat_tdm_rx_7_port_mixer_controls[] = {
  19808. SOC_DOUBLE_EXT("QUAT_TDM_TX_7", SND_SOC_NOPM,
  19809. MSM_BACKEND_DAI_QUAT_TDM_RX_7,
  19810. MSM_BACKEND_DAI_QUAT_TDM_TX_7, 1, 0,
  19811. msm_routing_get_port_mixer,
  19812. msm_routing_put_port_mixer),
  19813. SOC_DOUBLE_EXT("QUIN_TDM_TX_7", SND_SOC_NOPM,
  19814. MSM_BACKEND_DAI_QUAT_TDM_RX_7,
  19815. MSM_BACKEND_DAI_QUIN_TDM_TX_7, 1, 0,
  19816. msm_routing_get_port_mixer,
  19817. msm_routing_put_port_mixer),
  19818. };
  19819. static const struct snd_kcontrol_new quin_tdm_rx_0_port_mixer_controls[] = {
  19820. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19821. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19822. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19823. msm_routing_get_port_mixer,
  19824. msm_routing_put_port_mixer),
  19825. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19826. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19827. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19828. msm_routing_get_port_mixer,
  19829. msm_routing_put_port_mixer),
  19830. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19831. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19832. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19833. msm_routing_get_port_mixer,
  19834. msm_routing_put_port_mixer),
  19835. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19836. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19837. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19838. msm_routing_get_port_mixer,
  19839. msm_routing_put_port_mixer),
  19840. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19841. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19842. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19843. msm_routing_get_port_mixer,
  19844. msm_routing_put_port_mixer),
  19845. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19846. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19847. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19848. msm_routing_get_port_mixer,
  19849. msm_routing_put_port_mixer),
  19850. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19851. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19852. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19853. msm_routing_get_port_mixer,
  19854. msm_routing_put_port_mixer),
  19855. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19856. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19857. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19858. msm_routing_get_port_mixer,
  19859. msm_routing_put_port_mixer),
  19860. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19861. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19862. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19863. msm_routing_get_port_mixer,
  19864. msm_routing_put_port_mixer),
  19865. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19866. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19867. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19868. msm_routing_get_port_mixer,
  19869. msm_routing_put_port_mixer),
  19870. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19871. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19872. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19873. msm_routing_get_port_mixer,
  19874. msm_routing_put_port_mixer),
  19875. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19876. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19877. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19878. msm_routing_get_port_mixer,
  19879. msm_routing_put_port_mixer),
  19880. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19881. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19882. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19883. msm_routing_get_port_mixer,
  19884. msm_routing_put_port_mixer),
  19885. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19886. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19887. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19888. msm_routing_get_port_mixer,
  19889. msm_routing_put_port_mixer),
  19890. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19891. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19892. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19893. msm_routing_get_port_mixer,
  19894. msm_routing_put_port_mixer),
  19895. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19896. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19897. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19898. msm_routing_get_port_mixer,
  19899. msm_routing_put_port_mixer),
  19900. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19901. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19902. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19903. msm_routing_get_port_mixer,
  19904. msm_routing_put_port_mixer),
  19905. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19906. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19907. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19908. msm_routing_get_port_mixer,
  19909. msm_routing_put_port_mixer),
  19910. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19911. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19912. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19913. msm_routing_get_port_mixer,
  19914. msm_routing_put_port_mixer),
  19915. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19916. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19917. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19918. msm_routing_get_port_mixer,
  19919. msm_routing_put_port_mixer),
  19920. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19921. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19922. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19923. msm_routing_get_port_mixer,
  19924. msm_routing_put_port_mixer),
  19925. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19926. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19927. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19928. msm_routing_get_port_mixer,
  19929. msm_routing_put_port_mixer),
  19930. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19931. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19932. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19933. msm_routing_get_port_mixer,
  19934. msm_routing_put_port_mixer),
  19935. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19936. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19937. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19938. msm_routing_get_port_mixer,
  19939. msm_routing_put_port_mixer),
  19940. };
  19941. static const struct snd_kcontrol_new quin_tdm_rx_1_port_mixer_controls[] = {
  19942. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19943. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19944. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19945. msm_routing_get_port_mixer,
  19946. msm_routing_put_port_mixer),
  19947. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19948. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19949. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19950. msm_routing_get_port_mixer,
  19951. msm_routing_put_port_mixer),
  19952. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19953. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19954. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19955. msm_routing_get_port_mixer,
  19956. msm_routing_put_port_mixer),
  19957. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19958. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19959. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19960. msm_routing_get_port_mixer,
  19961. msm_routing_put_port_mixer),
  19962. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19963. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19964. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19965. msm_routing_get_port_mixer,
  19966. msm_routing_put_port_mixer),
  19967. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19968. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19969. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19970. msm_routing_get_port_mixer,
  19971. msm_routing_put_port_mixer),
  19972. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19973. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19974. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19975. msm_routing_get_port_mixer,
  19976. msm_routing_put_port_mixer),
  19977. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19978. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19979. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19980. msm_routing_get_port_mixer,
  19981. msm_routing_put_port_mixer),
  19982. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19983. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19984. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19985. msm_routing_get_port_mixer,
  19986. msm_routing_put_port_mixer),
  19987. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19988. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19989. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19990. msm_routing_get_port_mixer,
  19991. msm_routing_put_port_mixer),
  19992. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19993. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19994. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19995. msm_routing_get_port_mixer,
  19996. msm_routing_put_port_mixer),
  19997. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19998. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19999. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20000. msm_routing_get_port_mixer,
  20001. msm_routing_put_port_mixer),
  20002. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20003. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20004. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20005. msm_routing_get_port_mixer,
  20006. msm_routing_put_port_mixer),
  20007. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20008. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20009. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20010. msm_routing_get_port_mixer,
  20011. msm_routing_put_port_mixer),
  20012. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20013. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20014. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20015. msm_routing_get_port_mixer,
  20016. msm_routing_put_port_mixer),
  20017. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20018. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20019. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20020. msm_routing_get_port_mixer,
  20021. msm_routing_put_port_mixer),
  20022. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20023. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20024. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20025. msm_routing_get_port_mixer,
  20026. msm_routing_put_port_mixer),
  20027. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20028. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20029. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20030. msm_routing_get_port_mixer,
  20031. msm_routing_put_port_mixer),
  20032. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20033. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20034. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20035. msm_routing_get_port_mixer,
  20036. msm_routing_put_port_mixer),
  20037. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20038. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20039. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20040. msm_routing_get_port_mixer,
  20041. msm_routing_put_port_mixer),
  20042. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20043. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20044. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20045. msm_routing_get_port_mixer,
  20046. msm_routing_put_port_mixer),
  20047. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20048. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20049. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20050. msm_routing_get_port_mixer,
  20051. msm_routing_put_port_mixer),
  20052. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20053. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20054. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20055. msm_routing_get_port_mixer,
  20056. msm_routing_put_port_mixer),
  20057. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20058. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20059. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20060. msm_routing_get_port_mixer,
  20061. msm_routing_put_port_mixer),
  20062. };
  20063. static const struct snd_kcontrol_new quin_tdm_rx_2_port_mixer_controls[] = {
  20064. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20065. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20066. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20067. msm_routing_get_port_mixer,
  20068. msm_routing_put_port_mixer),
  20069. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20070. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20071. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20072. msm_routing_get_port_mixer,
  20073. msm_routing_put_port_mixer),
  20074. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20075. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20076. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20077. msm_routing_get_port_mixer,
  20078. msm_routing_put_port_mixer),
  20079. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20080. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20081. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20082. msm_routing_get_port_mixer,
  20083. msm_routing_put_port_mixer),
  20084. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20085. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20086. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20087. msm_routing_get_port_mixer,
  20088. msm_routing_put_port_mixer),
  20089. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20090. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20091. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20092. msm_routing_get_port_mixer,
  20093. msm_routing_put_port_mixer),
  20094. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20095. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20096. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20097. msm_routing_get_port_mixer,
  20098. msm_routing_put_port_mixer),
  20099. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20100. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20101. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20102. msm_routing_get_port_mixer,
  20103. msm_routing_put_port_mixer),
  20104. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20105. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20106. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20107. msm_routing_get_port_mixer,
  20108. msm_routing_put_port_mixer),
  20109. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20110. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20111. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20112. msm_routing_get_port_mixer,
  20113. msm_routing_put_port_mixer),
  20114. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20115. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20116. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20117. msm_routing_get_port_mixer,
  20118. msm_routing_put_port_mixer),
  20119. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20120. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20121. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20122. msm_routing_get_port_mixer,
  20123. msm_routing_put_port_mixer),
  20124. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20125. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20126. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20127. msm_routing_get_port_mixer,
  20128. msm_routing_put_port_mixer),
  20129. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20130. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20131. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20132. msm_routing_get_port_mixer,
  20133. msm_routing_put_port_mixer),
  20134. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20135. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20136. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20137. msm_routing_get_port_mixer,
  20138. msm_routing_put_port_mixer),
  20139. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20140. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20141. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20142. msm_routing_get_port_mixer,
  20143. msm_routing_put_port_mixer),
  20144. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20145. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20146. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20147. msm_routing_get_port_mixer,
  20148. msm_routing_put_port_mixer),
  20149. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20150. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20151. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20152. msm_routing_get_port_mixer,
  20153. msm_routing_put_port_mixer),
  20154. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20155. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20156. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20157. msm_routing_get_port_mixer,
  20158. msm_routing_put_port_mixer),
  20159. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20160. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20161. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20162. msm_routing_get_port_mixer,
  20163. msm_routing_put_port_mixer),
  20164. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20165. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20166. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20167. msm_routing_get_port_mixer,
  20168. msm_routing_put_port_mixer),
  20169. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20170. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20171. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20172. msm_routing_get_port_mixer,
  20173. msm_routing_put_port_mixer),
  20174. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20175. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20176. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20177. msm_routing_get_port_mixer,
  20178. msm_routing_put_port_mixer),
  20179. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20180. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20181. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20182. msm_routing_get_port_mixer,
  20183. msm_routing_put_port_mixer),
  20184. };
  20185. static const struct snd_kcontrol_new quin_tdm_rx_3_port_mixer_controls[] = {
  20186. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20187. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20188. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20189. msm_routing_get_port_mixer,
  20190. msm_routing_put_port_mixer),
  20191. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20192. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20193. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20194. msm_routing_get_port_mixer,
  20195. msm_routing_put_port_mixer),
  20196. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20197. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20198. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20199. msm_routing_get_port_mixer,
  20200. msm_routing_put_port_mixer),
  20201. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20202. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20203. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20204. msm_routing_get_port_mixer,
  20205. msm_routing_put_port_mixer),
  20206. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20207. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20208. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20209. msm_routing_get_port_mixer,
  20210. msm_routing_put_port_mixer),
  20211. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20212. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20213. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20214. msm_routing_get_port_mixer,
  20215. msm_routing_put_port_mixer),
  20216. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20217. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20218. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20219. msm_routing_get_port_mixer,
  20220. msm_routing_put_port_mixer),
  20221. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20222. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20223. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20224. msm_routing_get_port_mixer,
  20225. msm_routing_put_port_mixer),
  20226. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20227. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20228. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20229. msm_routing_get_port_mixer,
  20230. msm_routing_put_port_mixer),
  20231. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20232. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20233. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20234. msm_routing_get_port_mixer,
  20235. msm_routing_put_port_mixer),
  20236. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20237. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20238. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20239. msm_routing_get_port_mixer,
  20240. msm_routing_put_port_mixer),
  20241. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20242. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20243. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20244. msm_routing_get_port_mixer,
  20245. msm_routing_put_port_mixer),
  20246. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20247. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20248. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20249. msm_routing_get_port_mixer,
  20250. msm_routing_put_port_mixer),
  20251. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20252. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20253. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20254. msm_routing_get_port_mixer,
  20255. msm_routing_put_port_mixer),
  20256. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20257. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20258. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20259. msm_routing_get_port_mixer,
  20260. msm_routing_put_port_mixer),
  20261. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20262. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20263. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20264. msm_routing_get_port_mixer,
  20265. msm_routing_put_port_mixer),
  20266. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20267. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20268. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20269. msm_routing_get_port_mixer,
  20270. msm_routing_put_port_mixer),
  20271. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20272. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20273. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20274. msm_routing_get_port_mixer,
  20275. msm_routing_put_port_mixer),
  20276. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20277. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20278. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20279. msm_routing_get_port_mixer,
  20280. msm_routing_put_port_mixer),
  20281. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20282. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20283. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20284. msm_routing_get_port_mixer,
  20285. msm_routing_put_port_mixer),
  20286. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20287. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20288. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20289. msm_routing_get_port_mixer,
  20290. msm_routing_put_port_mixer),
  20291. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20292. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20293. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20294. msm_routing_get_port_mixer,
  20295. msm_routing_put_port_mixer),
  20296. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20297. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20298. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20299. msm_routing_get_port_mixer,
  20300. msm_routing_put_port_mixer),
  20301. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20302. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20303. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20304. msm_routing_get_port_mixer,
  20305. msm_routing_put_port_mixer),
  20306. };
  20307. static const struct snd_kcontrol_new sen_tdm_rx_0_port_mixer_controls[] = {
  20308. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20309. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20310. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20311. msm_routing_get_port_mixer,
  20312. msm_routing_put_port_mixer),
  20313. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20314. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20315. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20316. msm_routing_get_port_mixer,
  20317. msm_routing_put_port_mixer),
  20318. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20319. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20320. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20321. msm_routing_get_port_mixer,
  20322. msm_routing_put_port_mixer),
  20323. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20324. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20325. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20326. msm_routing_get_port_mixer,
  20327. msm_routing_put_port_mixer),
  20328. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20329. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20330. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20331. msm_routing_get_port_mixer,
  20332. msm_routing_put_port_mixer),
  20333. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20334. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20335. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20336. msm_routing_get_port_mixer,
  20337. msm_routing_put_port_mixer),
  20338. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20339. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20340. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20341. msm_routing_get_port_mixer,
  20342. msm_routing_put_port_mixer),
  20343. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20344. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20345. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20346. msm_routing_get_port_mixer,
  20347. msm_routing_put_port_mixer),
  20348. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20349. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20350. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20351. msm_routing_get_port_mixer,
  20352. msm_routing_put_port_mixer),
  20353. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20354. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20355. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20356. msm_routing_get_port_mixer,
  20357. msm_routing_put_port_mixer),
  20358. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20359. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20360. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20361. msm_routing_get_port_mixer,
  20362. msm_routing_put_port_mixer),
  20363. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20364. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20365. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20366. msm_routing_get_port_mixer,
  20367. msm_routing_put_port_mixer),
  20368. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20369. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20370. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20371. msm_routing_get_port_mixer,
  20372. msm_routing_put_port_mixer),
  20373. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20374. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20375. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20376. msm_routing_get_port_mixer,
  20377. msm_routing_put_port_mixer),
  20378. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20379. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20380. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20381. msm_routing_get_port_mixer,
  20382. msm_routing_put_port_mixer),
  20383. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20384. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20385. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20386. msm_routing_get_port_mixer,
  20387. msm_routing_put_port_mixer),
  20388. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20389. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20390. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20391. msm_routing_get_port_mixer,
  20392. msm_routing_put_port_mixer),
  20393. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20394. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20395. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20396. msm_routing_get_port_mixer,
  20397. msm_routing_put_port_mixer),
  20398. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20399. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20400. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20401. msm_routing_get_port_mixer,
  20402. msm_routing_put_port_mixer),
  20403. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20404. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20405. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20406. msm_routing_get_port_mixer,
  20407. msm_routing_put_port_mixer),
  20408. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20409. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20410. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20411. msm_routing_get_port_mixer,
  20412. msm_routing_put_port_mixer),
  20413. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20414. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20415. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20416. msm_routing_get_port_mixer,
  20417. msm_routing_put_port_mixer),
  20418. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20419. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20420. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20421. msm_routing_get_port_mixer,
  20422. msm_routing_put_port_mixer),
  20423. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20424. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20425. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20426. msm_routing_get_port_mixer,
  20427. msm_routing_put_port_mixer),
  20428. };
  20429. static const struct snd_kcontrol_new sen_tdm_rx_1_port_mixer_controls[] = {
  20430. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20431. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20432. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20433. msm_routing_get_port_mixer,
  20434. msm_routing_put_port_mixer),
  20435. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20436. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20437. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20438. msm_routing_get_port_mixer,
  20439. msm_routing_put_port_mixer),
  20440. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20441. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20442. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20443. msm_routing_get_port_mixer,
  20444. msm_routing_put_port_mixer),
  20445. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20446. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20447. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20448. msm_routing_get_port_mixer,
  20449. msm_routing_put_port_mixer),
  20450. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20451. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20452. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20453. msm_routing_get_port_mixer,
  20454. msm_routing_put_port_mixer),
  20455. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20456. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20457. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20458. msm_routing_get_port_mixer,
  20459. msm_routing_put_port_mixer),
  20460. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20461. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20462. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20463. msm_routing_get_port_mixer,
  20464. msm_routing_put_port_mixer),
  20465. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20466. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20467. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20468. msm_routing_get_port_mixer,
  20469. msm_routing_put_port_mixer),
  20470. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20471. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20472. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20473. msm_routing_get_port_mixer,
  20474. msm_routing_put_port_mixer),
  20475. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20476. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20477. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20478. msm_routing_get_port_mixer,
  20479. msm_routing_put_port_mixer),
  20480. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20481. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20482. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20483. msm_routing_get_port_mixer,
  20484. msm_routing_put_port_mixer),
  20485. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20486. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20487. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20488. msm_routing_get_port_mixer,
  20489. msm_routing_put_port_mixer),
  20490. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20491. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20492. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20493. msm_routing_get_port_mixer,
  20494. msm_routing_put_port_mixer),
  20495. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20496. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20497. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20498. msm_routing_get_port_mixer,
  20499. msm_routing_put_port_mixer),
  20500. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20501. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20502. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20503. msm_routing_get_port_mixer,
  20504. msm_routing_put_port_mixer),
  20505. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20506. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20507. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20508. msm_routing_get_port_mixer,
  20509. msm_routing_put_port_mixer),
  20510. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20511. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20512. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20513. msm_routing_get_port_mixer,
  20514. msm_routing_put_port_mixer),
  20515. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20516. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20517. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20518. msm_routing_get_port_mixer,
  20519. msm_routing_put_port_mixer),
  20520. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20521. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20522. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20523. msm_routing_get_port_mixer,
  20524. msm_routing_put_port_mixer),
  20525. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20526. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20527. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20528. msm_routing_get_port_mixer,
  20529. msm_routing_put_port_mixer),
  20530. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20531. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20532. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20533. msm_routing_get_port_mixer,
  20534. msm_routing_put_port_mixer),
  20535. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20536. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20537. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20538. msm_routing_get_port_mixer,
  20539. msm_routing_put_port_mixer),
  20540. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20541. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20542. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20543. msm_routing_get_port_mixer,
  20544. msm_routing_put_port_mixer),
  20545. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20546. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20547. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20548. msm_routing_get_port_mixer,
  20549. msm_routing_put_port_mixer),
  20550. };
  20551. static const struct snd_kcontrol_new sen_tdm_rx_2_port_mixer_controls[] = {
  20552. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20553. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20554. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20555. msm_routing_get_port_mixer,
  20556. msm_routing_put_port_mixer),
  20557. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20558. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20559. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20560. msm_routing_get_port_mixer,
  20561. msm_routing_put_port_mixer),
  20562. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20563. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20564. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20565. msm_routing_get_port_mixer,
  20566. msm_routing_put_port_mixer),
  20567. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20568. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20569. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20570. msm_routing_get_port_mixer,
  20571. msm_routing_put_port_mixer),
  20572. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20573. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20574. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20575. msm_routing_get_port_mixer,
  20576. msm_routing_put_port_mixer),
  20577. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20578. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20579. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20580. msm_routing_get_port_mixer,
  20581. msm_routing_put_port_mixer),
  20582. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20583. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20584. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20585. msm_routing_get_port_mixer,
  20586. msm_routing_put_port_mixer),
  20587. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20588. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20589. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20590. msm_routing_get_port_mixer,
  20591. msm_routing_put_port_mixer),
  20592. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20593. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20594. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20595. msm_routing_get_port_mixer,
  20596. msm_routing_put_port_mixer),
  20597. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20598. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20599. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20600. msm_routing_get_port_mixer,
  20601. msm_routing_put_port_mixer),
  20602. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20603. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20604. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20605. msm_routing_get_port_mixer,
  20606. msm_routing_put_port_mixer),
  20607. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20608. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20609. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20610. msm_routing_get_port_mixer,
  20611. msm_routing_put_port_mixer),
  20612. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20613. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20614. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20615. msm_routing_get_port_mixer,
  20616. msm_routing_put_port_mixer),
  20617. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20618. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20619. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20620. msm_routing_get_port_mixer,
  20621. msm_routing_put_port_mixer),
  20622. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20623. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20624. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20625. msm_routing_get_port_mixer,
  20626. msm_routing_put_port_mixer),
  20627. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20628. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20629. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20630. msm_routing_get_port_mixer,
  20631. msm_routing_put_port_mixer),
  20632. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20633. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20634. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20635. msm_routing_get_port_mixer,
  20636. msm_routing_put_port_mixer),
  20637. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20638. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20639. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20640. msm_routing_get_port_mixer,
  20641. msm_routing_put_port_mixer),
  20642. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20643. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20644. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20645. msm_routing_get_port_mixer,
  20646. msm_routing_put_port_mixer),
  20647. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20648. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20649. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20650. msm_routing_get_port_mixer,
  20651. msm_routing_put_port_mixer),
  20652. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20653. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20654. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20655. msm_routing_get_port_mixer,
  20656. msm_routing_put_port_mixer),
  20657. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20658. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20659. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20660. msm_routing_get_port_mixer,
  20661. msm_routing_put_port_mixer),
  20662. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20663. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20664. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20665. msm_routing_get_port_mixer,
  20666. msm_routing_put_port_mixer),
  20667. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20668. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20669. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20670. msm_routing_get_port_mixer,
  20671. msm_routing_put_port_mixer),
  20672. };
  20673. static const struct snd_kcontrol_new sen_tdm_rx_3_port_mixer_controls[] = {
  20674. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20675. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20676. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20677. msm_routing_get_port_mixer,
  20678. msm_routing_put_port_mixer),
  20679. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20680. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20681. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20682. msm_routing_get_port_mixer,
  20683. msm_routing_put_port_mixer),
  20684. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20685. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20686. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20687. msm_routing_get_port_mixer,
  20688. msm_routing_put_port_mixer),
  20689. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20690. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20691. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20692. msm_routing_get_port_mixer,
  20693. msm_routing_put_port_mixer),
  20694. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20695. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20696. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20697. msm_routing_get_port_mixer,
  20698. msm_routing_put_port_mixer),
  20699. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20700. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20701. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20702. msm_routing_get_port_mixer,
  20703. msm_routing_put_port_mixer),
  20704. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20705. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20706. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20707. msm_routing_get_port_mixer,
  20708. msm_routing_put_port_mixer),
  20709. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20710. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20711. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20712. msm_routing_get_port_mixer,
  20713. msm_routing_put_port_mixer),
  20714. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20715. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20716. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20717. msm_routing_get_port_mixer,
  20718. msm_routing_put_port_mixer),
  20719. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20720. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20721. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20722. msm_routing_get_port_mixer,
  20723. msm_routing_put_port_mixer),
  20724. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20725. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20726. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20727. msm_routing_get_port_mixer,
  20728. msm_routing_put_port_mixer),
  20729. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20730. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20731. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20732. msm_routing_get_port_mixer,
  20733. msm_routing_put_port_mixer),
  20734. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20735. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20736. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20737. msm_routing_get_port_mixer,
  20738. msm_routing_put_port_mixer),
  20739. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20740. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20741. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20742. msm_routing_get_port_mixer,
  20743. msm_routing_put_port_mixer),
  20744. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20745. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20746. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20747. msm_routing_get_port_mixer,
  20748. msm_routing_put_port_mixer),
  20749. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20750. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20751. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20752. msm_routing_get_port_mixer,
  20753. msm_routing_put_port_mixer),
  20754. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20755. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20756. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20757. msm_routing_get_port_mixer,
  20758. msm_routing_put_port_mixer),
  20759. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20760. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20761. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20762. msm_routing_get_port_mixer,
  20763. msm_routing_put_port_mixer),
  20764. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20765. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20766. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20767. msm_routing_get_port_mixer,
  20768. msm_routing_put_port_mixer),
  20769. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20770. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20771. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20772. msm_routing_get_port_mixer,
  20773. msm_routing_put_port_mixer),
  20774. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20775. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20776. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20777. msm_routing_get_port_mixer,
  20778. msm_routing_put_port_mixer),
  20779. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20780. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20781. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20782. msm_routing_get_port_mixer,
  20783. msm_routing_put_port_mixer),
  20784. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20785. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20786. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20787. msm_routing_get_port_mixer,
  20788. msm_routing_put_port_mixer),
  20789. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20790. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20791. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20792. msm_routing_get_port_mixer,
  20793. msm_routing_put_port_mixer),
  20794. };
  20795. static const struct snd_kcontrol_new quin_tdm_rx_7_port_mixer_controls[] = {
  20796. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  20797. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  20798. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  20799. msm_routing_get_port_mixer,
  20800. msm_routing_put_port_mixer),
  20801. SOC_DOUBLE_EXT("QUAT_TDM_TX_7", SND_SOC_NOPM,
  20802. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  20803. MSM_BACKEND_DAI_QUAT_TDM_TX_7, 1, 0,
  20804. msm_routing_get_port_mixer,
  20805. msm_routing_put_port_mixer),
  20806. SOC_DOUBLE_EXT("QUIN_TDM_TX_7", SND_SOC_NOPM,
  20807. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  20808. MSM_BACKEND_DAI_QUIN_TDM_TX_7, 1, 0,
  20809. msm_routing_get_port_mixer,
  20810. msm_routing_put_port_mixer),
  20811. };
  20812. static const struct snd_kcontrol_new tert_mi2s_rx_port_mixer_controls[] = {
  20813. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20814. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20815. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20816. msm_routing_put_port_mixer),
  20817. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20818. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20819. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20820. msm_routing_put_port_mixer),
  20821. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  20822. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20823. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  20824. msm_routing_put_port_mixer),
  20825. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20826. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20827. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20828. msm_routing_put_port_mixer),
  20829. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  20830. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20831. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20832. msm_routing_put_port_mixer),
  20833. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  20834. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20835. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20836. msm_routing_put_port_mixer),
  20837. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20838. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20839. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20840. msm_routing_put_port_mixer),
  20841. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  20842. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20843. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  20844. msm_routing_put_port_mixer),
  20845. };
  20846. static const struct snd_kcontrol_new sec_mi2s_rx_port_mixer_controls[] = {
  20847. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20848. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20849. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20850. msm_routing_put_port_mixer),
  20851. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20852. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20853. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20854. msm_routing_put_port_mixer),
  20855. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20856. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20857. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20858. msm_routing_put_port_mixer),
  20859. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20860. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20861. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20862. msm_routing_put_port_mixer),
  20863. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  20864. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20865. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20866. msm_routing_put_port_mixer),
  20867. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  20868. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20869. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20870. msm_routing_put_port_mixer),
  20871. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  20872. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20873. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  20874. msm_routing_put_port_mixer),
  20875. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20876. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20877. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  20878. msm_routing_put_port_mixer),
  20879. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  20880. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20881. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  20882. msm_routing_put_port_mixer),
  20883. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20884. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20885. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  20886. msm_routing_put_port_mixer),
  20887. };
  20888. static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
  20889. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20890. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20891. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20892. msm_routing_put_listen_mixer),
  20893. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20894. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20895. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20896. msm_routing_put_listen_mixer),
  20897. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20898. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20899. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20900. msm_routing_put_listen_mixer),
  20901. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20902. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20903. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20904. msm_routing_put_listen_mixer),
  20905. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20906. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20907. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20908. msm_routing_put_listen_mixer),
  20909. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20910. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20911. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20912. msm_routing_put_listen_mixer),
  20913. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20914. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20915. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20916. msm_routing_put_listen_mixer),
  20917. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20918. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20919. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20920. msm_routing_put_listen_mixer),
  20921. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20922. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20923. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20924. msm_routing_put_listen_mixer),
  20925. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20926. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20927. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20928. msm_routing_put_listen_mixer),
  20929. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20930. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20931. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20932. msm_routing_put_listen_mixer),
  20933. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20934. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20935. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20936. msm_routing_put_listen_mixer),
  20937. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20938. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20939. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20940. msm_routing_put_listen_mixer),
  20941. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20942. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  20943. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20944. msm_routing_put_listen_mixer),
  20945. };
  20946. static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
  20947. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20948. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20949. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20950. msm_routing_put_listen_mixer),
  20951. SOC_DOUBLE_EXT("SLIMBUS_1_TX",
  20952. SND_SOC_NOPM,
  20953. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20954. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20955. msm_routing_put_listen_mixer),
  20956. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20957. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20958. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20959. msm_routing_put_listen_mixer),
  20960. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20961. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20962. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20963. msm_routing_put_listen_mixer),
  20964. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20965. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20966. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20967. msm_routing_put_listen_mixer),
  20968. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20969. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20970. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20971. msm_routing_put_listen_mixer),
  20972. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20973. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20974. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20975. msm_routing_put_listen_mixer),
  20976. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20977. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20978. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20979. msm_routing_put_listen_mixer),
  20980. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20981. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20982. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20983. msm_routing_put_listen_mixer),
  20984. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20985. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20986. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20987. msm_routing_put_listen_mixer),
  20988. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20989. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20990. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20991. msm_routing_put_listen_mixer),
  20992. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20993. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20994. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20995. msm_routing_put_listen_mixer),
  20996. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20997. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20998. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20999. msm_routing_put_listen_mixer),
  21000. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21001. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21002. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21003. msm_routing_put_listen_mixer),
  21004. };
  21005. static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
  21006. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21007. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21008. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21009. msm_routing_put_listen_mixer),
  21010. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21011. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21012. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21013. msm_routing_put_listen_mixer),
  21014. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21015. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21016. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21017. msm_routing_put_listen_mixer),
  21018. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21019. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21020. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21021. msm_routing_put_listen_mixer),
  21022. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21023. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21024. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21025. msm_routing_put_listen_mixer),
  21026. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21027. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21028. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21029. msm_routing_put_listen_mixer),
  21030. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21031. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21032. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21033. msm_routing_put_listen_mixer),
  21034. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21035. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21036. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21037. msm_routing_put_listen_mixer),
  21038. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21039. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21040. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21041. msm_routing_put_listen_mixer),
  21042. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21043. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21044. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21045. msm_routing_put_listen_mixer),
  21046. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21047. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21048. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21049. msm_routing_put_listen_mixer),
  21050. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21051. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21052. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21053. msm_routing_put_listen_mixer),
  21054. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21055. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21056. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21057. msm_routing_put_listen_mixer),
  21058. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21059. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21060. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21061. msm_routing_put_listen_mixer),
  21062. };
  21063. static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
  21064. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21065. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21066. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21067. msm_routing_put_listen_mixer),
  21068. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21069. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21070. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21071. msm_routing_put_listen_mixer),
  21072. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21073. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21074. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21075. msm_routing_put_listen_mixer),
  21076. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21077. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21078. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21079. msm_routing_put_listen_mixer),
  21080. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21081. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21082. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21083. msm_routing_put_listen_mixer),
  21084. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21085. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21086. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21087. msm_routing_put_listen_mixer),
  21088. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21089. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21090. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21091. msm_routing_put_listen_mixer),
  21092. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21093. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21094. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21095. msm_routing_put_listen_mixer),
  21096. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21097. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21098. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21099. msm_routing_put_listen_mixer),
  21100. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21101. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21102. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21103. msm_routing_put_listen_mixer),
  21104. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21105. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21106. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21107. msm_routing_put_listen_mixer),
  21108. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21109. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21110. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21111. msm_routing_put_listen_mixer),
  21112. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21113. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21114. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21115. msm_routing_put_listen_mixer),
  21116. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21117. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21118. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21119. msm_routing_put_listen_mixer),
  21120. };
  21121. static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
  21122. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21123. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21124. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21125. msm_routing_put_listen_mixer),
  21126. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21127. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21128. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21129. msm_routing_put_listen_mixer),
  21130. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21131. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21132. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21133. msm_routing_put_listen_mixer),
  21134. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21135. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21136. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21137. msm_routing_put_listen_mixer),
  21138. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21139. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21140. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21141. msm_routing_put_listen_mixer),
  21142. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21143. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21144. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21145. msm_routing_put_listen_mixer),
  21146. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21147. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21148. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21149. msm_routing_put_listen_mixer),
  21150. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21151. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21152. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21153. msm_routing_put_listen_mixer),
  21154. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21155. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21156. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21157. msm_routing_put_listen_mixer),
  21158. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21159. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21160. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21161. msm_routing_put_listen_mixer),
  21162. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21163. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21164. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21165. msm_routing_put_listen_mixer),
  21166. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21167. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21168. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21169. msm_routing_put_listen_mixer),
  21170. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21171. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21172. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21173. msm_routing_put_listen_mixer),
  21174. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21175. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21176. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21177. msm_routing_put_listen_mixer),
  21178. };
  21179. static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
  21180. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21181. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21182. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21183. msm_routing_put_listen_mixer),
  21184. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21185. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21186. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21187. msm_routing_put_listen_mixer),
  21188. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21189. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21190. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21191. msm_routing_put_listen_mixer),
  21192. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21193. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21194. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21195. msm_routing_put_listen_mixer),
  21196. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21197. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21198. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21199. msm_routing_put_listen_mixer),
  21200. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21201. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21202. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21203. msm_routing_put_listen_mixer),
  21204. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21205. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21206. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21207. msm_routing_put_listen_mixer),
  21208. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21209. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21210. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21211. msm_routing_put_listen_mixer),
  21212. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21213. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21214. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21215. msm_routing_put_listen_mixer),
  21216. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21217. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21218. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21219. msm_routing_put_listen_mixer),
  21220. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21221. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21222. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21223. msm_routing_put_listen_mixer),
  21224. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21225. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21226. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21227. msm_routing_put_listen_mixer),
  21228. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21229. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21230. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21231. msm_routing_put_listen_mixer),
  21232. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21233. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21234. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21235. msm_routing_put_listen_mixer),
  21236. };
  21237. static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
  21238. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21239. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21240. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21241. msm_routing_put_listen_mixer),
  21242. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21243. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21244. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21245. msm_routing_put_listen_mixer),
  21246. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21247. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21248. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21249. msm_routing_put_listen_mixer),
  21250. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21251. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21252. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21253. msm_routing_put_listen_mixer),
  21254. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21255. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21256. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21257. msm_routing_put_listen_mixer),
  21258. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21259. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21260. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21261. msm_routing_put_listen_mixer),
  21262. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21263. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21264. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21265. msm_routing_put_listen_mixer),
  21266. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21267. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21268. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21269. msm_routing_put_listen_mixer),
  21270. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21271. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21272. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21273. msm_routing_put_listen_mixer),
  21274. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21275. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21276. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21277. msm_routing_put_listen_mixer),
  21278. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21279. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21280. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21281. msm_routing_put_listen_mixer),
  21282. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21283. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21284. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21285. msm_routing_put_listen_mixer),
  21286. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21287. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21288. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21289. msm_routing_put_listen_mixer),
  21290. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21291. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21292. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21293. msm_routing_put_listen_mixer),
  21294. };
  21295. static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
  21296. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21297. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21298. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21299. msm_routing_put_listen_mixer),
  21300. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21301. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21302. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21303. msm_routing_put_listen_mixer),
  21304. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21305. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21306. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21307. msm_routing_put_listen_mixer),
  21308. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21309. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21310. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21311. msm_routing_put_listen_mixer),
  21312. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21313. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21314. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21315. msm_routing_put_listen_mixer),
  21316. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21317. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21318. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21319. msm_routing_put_listen_mixer),
  21320. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21321. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21322. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21323. msm_routing_put_listen_mixer),
  21324. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21325. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21326. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21327. msm_routing_put_listen_mixer),
  21328. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21329. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21330. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21331. msm_routing_put_listen_mixer),
  21332. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21333. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21334. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21335. msm_routing_put_listen_mixer),
  21336. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21337. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21338. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21339. msm_routing_put_listen_mixer),
  21340. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21341. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21342. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21343. msm_routing_put_listen_mixer),
  21344. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21345. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21346. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21347. msm_routing_put_listen_mixer),
  21348. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21349. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21350. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21351. msm_routing_put_listen_mixer),
  21352. };
  21353. static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
  21354. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21355. 0, 1, 0, msm_routing_get_switch_mixer,
  21356. msm_routing_put_switch_mixer);
  21357. static const struct snd_kcontrol_new slim1_fm_switch_mixer_controls =
  21358. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21359. 0, 1, 0, msm_routing_get_switch_mixer,
  21360. msm_routing_put_switch_mixer);
  21361. static const struct snd_kcontrol_new slim3_fm_switch_mixer_controls =
  21362. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21363. 0, 1, 0, msm_routing_get_switch_mixer,
  21364. msm_routing_put_switch_mixer);
  21365. static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
  21366. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21367. 0, 1, 0, msm_routing_get_switch_mixer,
  21368. msm_routing_put_switch_mixer);
  21369. static const struct snd_kcontrol_new cdc_dma_wsa_switch_mixer_controls =
  21370. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21371. 0, 1, 0, msm_routing_get_switch_mixer,
  21372. msm_routing_put_switch_mixer);
  21373. static const struct snd_kcontrol_new cdc_dma_rx_switch_mixer_controls =
  21374. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21375. 0, 1, 0, msm_routing_get_switch_mixer,
  21376. msm_routing_put_switch_mixer);
  21377. static const struct snd_kcontrol_new cdc_dma_rx_1_switch_mixer_controls =
  21378. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21379. 0, 1, 0, msm_routing_get_switch_mixer,
  21380. msm_routing_put_switch_mixer);
  21381. static const struct snd_kcontrol_new slim6_fm_switch_mixer_controls =
  21382. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21383. 0, 1, 0, msm_routing_get_switch_mixer,
  21384. msm_routing_put_switch_mixer);
  21385. static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
  21386. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21387. 0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
  21388. msm_routing_put_fm_pcmrx_switch_mixer);
  21389. static const struct snd_kcontrol_new int0_mi2s_rx_switch_mixer_controls =
  21390. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21391. 0, 1, 0, msm_routing_get_int0_mi2s_switch_mixer,
  21392. msm_routing_put_int0_mi2s_switch_mixer);
  21393. static const struct snd_kcontrol_new int4_mi2s_rx_switch_mixer_controls =
  21394. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21395. 0, 1, 0, msm_routing_get_int4_mi2s_switch_mixer,
  21396. msm_routing_put_int4_mi2s_switch_mixer);
  21397. static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
  21398. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21399. 0, 1, 0, msm_routing_get_pri_mi2s_switch_mixer,
  21400. msm_routing_put_pri_mi2s_switch_mixer);
  21401. static const struct snd_kcontrol_new sec_mi2s_rx_switch_mixer_controls =
  21402. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21403. 0, 1, 0, msm_routing_get_sec_mi2s_switch_mixer,
  21404. msm_routing_put_sec_mi2s_switch_mixer);
  21405. static const struct snd_kcontrol_new tert_mi2s_rx_switch_mixer_controls =
  21406. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21407. 0, 1, 0, msm_routing_get_tert_mi2s_switch_mixer,
  21408. msm_routing_put_tert_mi2s_switch_mixer);
  21409. static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
  21410. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21411. 0, 1, 0, msm_routing_get_quat_mi2s_switch_mixer,
  21412. msm_routing_put_quat_mi2s_switch_mixer);
  21413. static const struct snd_kcontrol_new quin_mi2s_rx_switch_mixer_controls =
  21414. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21415. 0, 1, 0, msm_routing_get_quin_mi2s_switch_mixer,
  21416. msm_routing_put_quin_mi2s_switch_mixer);
  21417. static const struct snd_kcontrol_new sen_mi2s_rx_switch_mixer_controls =
  21418. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21419. 0, 1, 0, msm_routing_get_sen_mi2s_switch_mixer,
  21420. msm_routing_put_sen_mi2s_switch_mixer);
  21421. static const struct snd_kcontrol_new hfp_pri_aux_switch_mixer_controls =
  21422. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21423. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  21424. msm_routing_put_hfp_switch_mixer);
  21425. static const struct snd_kcontrol_new hfp_aux_switch_mixer_controls =
  21426. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21427. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  21428. msm_routing_put_hfp_switch_mixer);
  21429. static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
  21430. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21431. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  21432. msm_routing_put_hfp_switch_mixer);
  21433. static const struct snd_kcontrol_new hfp_slim7_switch_mixer_controls =
  21434. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21435. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  21436. msm_routing_put_hfp_switch_mixer);
  21437. static const struct snd_kcontrol_new usb_switch_mixer_controls =
  21438. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21439. 0, 1, 0, msm_routing_get_usb_switch_mixer,
  21440. msm_routing_put_usb_switch_mixer);
  21441. static const struct snd_kcontrol_new a2dp_slim7_switch_mixer_controls =
  21442. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21443. 0, 1, 0, msm_routing_a2dp_switch_mixer_get,
  21444. msm_routing_a2dp_switch_mixer_put);
  21445. static const struct snd_kcontrol_new sco_slim7_switch_mixer_controls =
  21446. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21447. 0, 1, 0, msm_routing_sco_switch_mixer_get,
  21448. msm_routing_sco_switch_mixer_put);
  21449. static const struct soc_enum lsm_port_enum =
  21450. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_port_text), lsm_port_text);
  21451. static const char * const lsm_func_text[] = {
  21452. "None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
  21453. };
  21454. static const struct soc_enum lsm_func_enum =
  21455. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
  21456. static const struct snd_kcontrol_new lsm_controls[] = {
  21457. /* kcontrol of lsm_function */
  21458. SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21459. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21460. SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21461. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21462. SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21463. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21464. SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21465. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21466. SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21467. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21468. SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21469. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21470. SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21471. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21472. SOC_ENUM_EXT(QUAT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21473. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21474. SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21475. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21476. SOC_ENUM_EXT(TX_CDC_DMA_TX_3_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21477. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21478. SOC_ENUM_EXT(QUIN_TDM_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21479. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21480. SOC_ENUM_EXT(TERT_TDM_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21481. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21482. /* kcontrol of lsm_port */
  21483. SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
  21484. msm_routing_lsm_port_get,
  21485. msm_routing_lsm_port_put),
  21486. SOC_ENUM_EXT("LSM2 Port", lsm_port_enum,
  21487. msm_routing_lsm_port_get,
  21488. msm_routing_lsm_port_put),
  21489. SOC_ENUM_EXT("LSM3 Port", lsm_port_enum,
  21490. msm_routing_lsm_port_get,
  21491. msm_routing_lsm_port_put),
  21492. SOC_ENUM_EXT("LSM4 Port", lsm_port_enum,
  21493. msm_routing_lsm_port_get,
  21494. msm_routing_lsm_port_put),
  21495. SOC_ENUM_EXT("LSM5 Port", lsm_port_enum,
  21496. msm_routing_lsm_port_get,
  21497. msm_routing_lsm_port_put),
  21498. SOC_ENUM_EXT("LSM6 Port", lsm_port_enum,
  21499. msm_routing_lsm_port_get,
  21500. msm_routing_lsm_port_put),
  21501. SOC_ENUM_EXT("LSM7 Port", lsm_port_enum,
  21502. msm_routing_lsm_port_get,
  21503. msm_routing_lsm_port_put),
  21504. SOC_ENUM_EXT("LSM8 Port", lsm_port_enum,
  21505. msm_routing_lsm_port_get,
  21506. msm_routing_lsm_port_put),
  21507. };
  21508. static const char * const aanc_slim_0_rx_text[] = {
  21509. "ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
  21510. "SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
  21511. };
  21512. static const struct soc_enum aanc_slim_0_rx_enum =
  21513. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
  21514. aanc_slim_0_rx_text);
  21515. static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
  21516. SOC_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
  21517. msm_routing_slim_0_rx_aanc_mux_get,
  21518. msm_routing_slim_0_rx_aanc_mux_put)
  21519. };
  21520. static int msm_routing_aanc_noise_level_get(struct snd_kcontrol *kcontrol,
  21521. struct snd_ctl_elem_value *ucontrol)
  21522. {
  21523. ucontrol->value.integer.value[0] = aanc_level;
  21524. return 0;
  21525. }
  21526. static int msm_routing_aanc_noise_level_put(struct snd_kcontrol *kcontrol,
  21527. struct snd_ctl_elem_value *ucontrol)
  21528. {
  21529. int ret = 0;
  21530. mutex_lock(&routing_lock);
  21531. aanc_level = ucontrol->value.integer.value[0];
  21532. pr_debug("%s: value: %ld\n",
  21533. __func__, ucontrol->value.integer.value[0]);
  21534. ret = afe_set_aanc_noise_level(aanc_level);
  21535. mutex_unlock(&routing_lock);
  21536. return ret;
  21537. }
  21538. static const struct snd_kcontrol_new aanc_noise_level[] = {
  21539. SOC_SINGLE_EXT("AANC Noise Level", SND_SOC_NOPM, 0, 255,
  21540. 0, msm_routing_aanc_noise_level_get, msm_routing_aanc_noise_level_put)
  21541. };
  21542. static int msm_routing_get_stereo_to_custom_stereo_control(
  21543. struct snd_kcontrol *kcontrol,
  21544. struct snd_ctl_elem_value *ucontrol)
  21545. {
  21546. ucontrol->value.integer.value[0] = is_custom_stereo_on;
  21547. return 0;
  21548. }
  21549. static int msm_routing_put_stereo_to_custom_stereo_control(
  21550. struct snd_kcontrol *kcontrol,
  21551. struct snd_ctl_elem_value *ucontrol)
  21552. {
  21553. int flag = 0, i = 0, rc = 0, idx = 0;
  21554. int be_index = 0, port_id, topo_id;
  21555. unsigned int session_id = 0;
  21556. uint16_t op_FL_ip_FL_weight = 0;
  21557. uint16_t op_FL_ip_FR_weight = 0;
  21558. uint16_t op_FR_ip_FL_weight = 0;
  21559. uint16_t op_FR_ip_FR_weight = 0;
  21560. flag = ucontrol->value.integer.value[0];
  21561. pr_debug("%s E flag %d\n", __func__, flag);
  21562. if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
  21563. pr_err("%s: is_custom_stereo_on %d, flag %d\n",
  21564. __func__, is_custom_stereo_on, flag);
  21565. return 0;
  21566. }
  21567. is_custom_stereo_on = flag ? true : false;
  21568. pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
  21569. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  21570. port_id = msm_bedais[be_index].port_id;
  21571. if (!msm_bedais[be_index].active)
  21572. continue;
  21573. if ((port_id != SLIMBUS_0_RX) &&
  21574. (port_id != RT_PROXY_PORT_001_RX) &&
  21575. (port_id != AFE_PORT_ID_PRIMARY_MI2S_RX) &&
  21576. (port_id != AFE_PORT_ID_INT4_MI2S_RX))
  21577. continue;
  21578. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  21579. MSM_FRONTEND_DAI_MM_SIZE) {
  21580. if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
  21581. LEGACY_PCM_MODE)
  21582. goto skip_send_custom_stereo;
  21583. session_id =
  21584. fe_dai_map[i][SESSION_TYPE_RX].strm_id;
  21585. if (is_custom_stereo_on) {
  21586. op_FL_ip_FL_weight =
  21587. Q14_GAIN_ZERO_POINT_FIVE;
  21588. op_FL_ip_FR_weight =
  21589. Q14_GAIN_ZERO_POINT_FIVE;
  21590. op_FR_ip_FL_weight =
  21591. Q14_GAIN_ZERO_POINT_FIVE;
  21592. op_FR_ip_FR_weight =
  21593. Q14_GAIN_ZERO_POINT_FIVE;
  21594. } else {
  21595. op_FL_ip_FL_weight = Q14_GAIN_UNITY;
  21596. op_FL_ip_FR_weight = 0;
  21597. op_FR_ip_FL_weight = 0;
  21598. op_FR_ip_FR_weight = Q14_GAIN_UNITY;
  21599. }
  21600. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  21601. unsigned long copp =
  21602. session_copp_map[i]
  21603. [SESSION_TYPE_RX][be_index];
  21604. if (!test_bit(idx, &copp))
  21605. goto skip_send_custom_stereo;
  21606. topo_id = adm_get_topology_for_port_copp_idx(
  21607. msm_bedais[be_index].port_id, idx);
  21608. if (topo_id < 0)
  21609. pr_debug("%s:Err:custom stereo topo %d",
  21610. __func__, topo_id);
  21611. pr_debug("idx %d\n", idx);
  21612. if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
  21613. rc = msm_ds2_dap_set_custom_stereo_onoff
  21614. (msm_bedais[be_index].port_id,
  21615. idx, is_custom_stereo_on);
  21616. else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
  21617. rc = dolby_dap_set_custom_stereo_onoff(
  21618. msm_bedais[be_index].port_id,
  21619. idx, is_custom_stereo_on);
  21620. else
  21621. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
  21622. (msm_bedais[be_index].port_id,
  21623. idx, session_id,
  21624. op_FL_ip_FL_weight,
  21625. op_FL_ip_FR_weight,
  21626. op_FR_ip_FL_weight,
  21627. op_FR_ip_FR_weight);
  21628. if (rc < 0)
  21629. skip_send_custom_stereo:
  21630. pr_err("%s: err setting custom stereo\n",
  21631. __func__);
  21632. }
  21633. }
  21634. }
  21635. return 0;
  21636. }
  21637. static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
  21638. SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
  21639. 1, 0, msm_routing_get_stereo_to_custom_stereo_control,
  21640. msm_routing_put_stereo_to_custom_stereo_control),
  21641. };
  21642. static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  21643. struct snd_ctl_elem_value *ucontrol)
  21644. {
  21645. return 0;
  21646. }
  21647. static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  21648. struct snd_ctl_elem_value *ucontrol)
  21649. {
  21650. int i = 0, j;
  21651. int num_app_types = ucontrol->value.integer.value[i++];
  21652. pr_debug("%s\n", __func__);
  21653. memset(app_type_cfg, 0, MAX_APP_TYPES*
  21654. sizeof(struct msm_pcm_routing_app_type_data));
  21655. if (num_app_types > MAX_APP_TYPES) {
  21656. pr_err("%s: number of app types exceed the max supported\n",
  21657. __func__);
  21658. return -EINVAL;
  21659. }
  21660. for (j = 0; j < num_app_types; j++) {
  21661. app_type_cfg[j].app_type =
  21662. ucontrol->value.integer.value[i++];
  21663. app_type_cfg[j].sample_rate =
  21664. ucontrol->value.integer.value[i++];
  21665. app_type_cfg[j].bit_width =
  21666. ucontrol->value.integer.value[i++];
  21667. }
  21668. return 0;
  21669. }
  21670. static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
  21671. struct snd_ctl_elem_value *ucontrol)
  21672. {
  21673. int j, fe_id, be_id, port_type;
  21674. int ret = 0;
  21675. unsigned long copp;
  21676. struct msm_pcm_routing_bdai_data *bedai;
  21677. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  21678. SESSION_TYPE_RX;
  21679. int app_type = ucontrol->value.integer.value[1];
  21680. int gain = (ucontrol->value.integer.value[2] +
  21681. ucontrol->value.integer.value[3])/2;
  21682. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  21683. MSM_AFE_PORT_TYPE_TX;
  21684. mutex_lock(&routing_lock);
  21685. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  21686. if (is_be_dai_extproc(be_id))
  21687. continue;
  21688. bedai = &msm_bedais[be_id];
  21689. if (afe_get_port_type(bedai->port_id) != port_type)
  21690. continue;
  21691. if (!bedai->active)
  21692. continue;
  21693. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  21694. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  21695. continue;
  21696. if (app_type !=
  21697. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  21698. continue;
  21699. copp = session_copp_map[fe_id][dir][be_id];
  21700. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  21701. if (!test_bit(j, &copp))
  21702. continue;
  21703. ret |= adm_set_volume(bedai->port_id, j, gain);
  21704. }
  21705. }
  21706. }
  21707. mutex_unlock(&routing_lock);
  21708. return ret ? -EINVAL : 0;
  21709. }
  21710. static const struct snd_kcontrol_new app_type_cfg_controls[] = {
  21711. SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
  21712. 0x7FFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
  21713. msm_routing_put_app_type_cfg_control),
  21714. SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
  21715. 0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)
  21716. };
  21717. static int msm_routing_put_module_cfg_control(struct snd_kcontrol *kcontrol,
  21718. struct snd_ctl_elem_value *ucontrol)
  21719. {
  21720. int copp_idx, fe_id, be_id, port_type;
  21721. int ret = 0;
  21722. unsigned long copp;
  21723. struct msm_pcm_routing_bdai_data *bedai;
  21724. u8 *packed_params = NULL;
  21725. struct param_hdr_v3 param_hdr;
  21726. u32 packed_param_size = (sizeof(struct param_hdr_v3) +
  21727. sizeof(uint32_t));
  21728. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  21729. SESSION_TYPE_RX;
  21730. int app_type = ucontrol->value.integer.value[1];
  21731. int module_id = ucontrol->value.integer.value[2];
  21732. int instance_id = ucontrol->value.integer.value[3];
  21733. int param_id = ucontrol->value.integer.value[4];
  21734. int param_value = ucontrol->value.integer.value[5];
  21735. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  21736. MSM_AFE_PORT_TYPE_TX;
  21737. pr_debug("%s app_type:%d mod_id:%d instance_id:%d param_id:%d value:%d\n",
  21738. __func__, app_type, module_id,
  21739. instance_id, param_id, param_value);
  21740. packed_params = kzalloc(packed_param_size, GFP_KERNEL);
  21741. if (!packed_params)
  21742. return -ENOMEM;
  21743. memset(&param_hdr, 0, sizeof(param_hdr));
  21744. param_hdr.module_id = module_id;
  21745. param_hdr.instance_id = instance_id;
  21746. param_hdr.param_id = param_id;
  21747. param_hdr.param_size = sizeof(uint32_t);
  21748. packed_param_size = 0;
  21749. mutex_lock(&routing_lock);
  21750. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  21751. if (is_be_dai_extproc(be_id))
  21752. continue;
  21753. bedai = &msm_bedais[be_id];
  21754. if (afe_get_port_type(bedai->port_id) != port_type)
  21755. continue;
  21756. if (!bedai->active)
  21757. continue;
  21758. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  21759. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  21760. continue;
  21761. if (app_type !=
  21762. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  21763. continue;
  21764. copp = session_copp_map[fe_id][dir][be_id];
  21765. for (copp_idx = 0; copp_idx < MAX_COPPS_PER_PORT;
  21766. copp_idx++) {
  21767. if (!test_bit(copp_idx, &copp))
  21768. continue;
  21769. ret = q6common_pack_pp_params(packed_params,
  21770. &param_hdr,
  21771. (u8 *) &param_value,
  21772. &packed_param_size);
  21773. if (ret) {
  21774. pr_err("%s: Failed to pack params, error %d\n",
  21775. __func__, ret);
  21776. goto done;
  21777. }
  21778. ret = adm_set_pp_params(bedai->port_id,
  21779. copp_idx, NULL,
  21780. packed_params,
  21781. packed_param_size);
  21782. if (ret) {
  21783. pr_err("%s: Setting param failed with err=%d\n",
  21784. __func__, ret);
  21785. ret = -EINVAL;
  21786. goto done;
  21787. }
  21788. }
  21789. }
  21790. }
  21791. done:
  21792. mutex_unlock(&routing_lock);
  21793. kfree(packed_params);
  21794. return ret;
  21795. }
  21796. static const struct snd_kcontrol_new module_cfg_controls[] = {
  21797. SOC_SINGLE_MULTI_EXT("Audio Effect", SND_SOC_NOPM, 0,
  21798. 0x2000, 0, 6, NULL, msm_routing_put_module_cfg_control)
  21799. };
  21800. static int msm_routing_get_lsm_app_type_cfg_control(
  21801. struct snd_kcontrol *kcontrol,
  21802. struct snd_ctl_elem_value *ucontrol)
  21803. {
  21804. int shift = ((struct soc_multi_mixer_control *)
  21805. kcontrol->private_value)->shift;
  21806. int i = 0, j = 0;
  21807. ucontrol->value.integer.value[i] = num_app_cfg_types;
  21808. for (j = 0; j < num_app_cfg_types; ++j) {
  21809. ucontrol->value.integer.value[++i] =
  21810. lsm_app_type_cfg[j].app_type;
  21811. ucontrol->value.integer.value[++i] =
  21812. lsm_app_type_cfg[j].sample_rate;
  21813. ucontrol->value.integer.value[++i] =
  21814. lsm_app_type_cfg[j].bit_width;
  21815. if (shift == 1)
  21816. ucontrol->value.integer.value[++i] =
  21817. lsm_app_type_cfg[j].num_out_channels;
  21818. }
  21819. return 0;
  21820. }
  21821. static int msm_routing_put_lsm_app_type_cfg_control(
  21822. struct snd_kcontrol *kcontrol,
  21823. struct snd_ctl_elem_value *ucontrol)
  21824. {
  21825. int shift = ((struct soc_multi_mixer_control *)
  21826. kcontrol->private_value)->shift;
  21827. int i = 0, j;
  21828. if (ucontrol->value.integer.value[0] > MAX_APP_TYPES) {
  21829. pr_err("%s: number of app types exceed the max supported\n",
  21830. __func__);
  21831. return -EINVAL;
  21832. }
  21833. num_app_cfg_types = ucontrol->value.integer.value[i++];
  21834. memset(lsm_app_type_cfg, 0, MAX_APP_TYPES*
  21835. sizeof(struct msm_pcm_routing_app_type_data));
  21836. for (j = 0; j < num_app_cfg_types; j++) {
  21837. lsm_app_type_cfg[j].app_type =
  21838. ucontrol->value.integer.value[i++];
  21839. lsm_app_type_cfg[j].sample_rate =
  21840. ucontrol->value.integer.value[i++];
  21841. lsm_app_type_cfg[j].bit_width =
  21842. ucontrol->value.integer.value[i++];
  21843. /* Shift of 1 indicates this is V2 mixer control */
  21844. if (shift == 1)
  21845. lsm_app_type_cfg[j].num_out_channels =
  21846. ucontrol->value.integer.value[i++];
  21847. }
  21848. return 0;
  21849. }
  21850. static const struct snd_kcontrol_new lsm_app_type_cfg_controls[] = {
  21851. SOC_SINGLE_MULTI_EXT("Listen App Type Config", SND_SOC_NOPM, 0,
  21852. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  21853. msm_routing_put_lsm_app_type_cfg_control),
  21854. SOC_SINGLE_MULTI_EXT("Listen App Type Config V2", SND_SOC_NOPM, 1,
  21855. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  21856. msm_routing_put_lsm_app_type_cfg_control),
  21857. };
  21858. static int msm_routing_get_use_ds1_or_ds2_control(
  21859. struct snd_kcontrol *kcontrol,
  21860. struct snd_ctl_elem_value *ucontrol)
  21861. {
  21862. ucontrol->value.integer.value[0] = is_ds2_on;
  21863. return 0;
  21864. }
  21865. static int msm_routing_put_use_ds1_or_ds2_control(
  21866. struct snd_kcontrol *kcontrol,
  21867. struct snd_ctl_elem_value *ucontrol)
  21868. {
  21869. is_ds2_on = ucontrol->value.integer.value[0];
  21870. return 0;
  21871. }
  21872. static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
  21873. SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
  21874. 1, 0, msm_routing_get_use_ds1_or_ds2_control,
  21875. msm_routing_put_use_ds1_or_ds2_control),
  21876. };
  21877. static int msm_routing_get_hifi_filter_control(
  21878. struct snd_kcontrol *kcontrol,
  21879. struct snd_ctl_elem_value *ucontrol)
  21880. {
  21881. ucontrol->value.integer.value[0] = hifi_filter_enabled;
  21882. return 0;
  21883. }
  21884. static int msm_routing_put_hifi_filter_control(
  21885. struct snd_kcontrol *kcontrol,
  21886. struct snd_ctl_elem_value *ucontrol)
  21887. {
  21888. hifi_filter_enabled = ucontrol->value.integer.value[0];
  21889. return 0;
  21890. }
  21891. static const struct snd_kcontrol_new hifi_filter_controls[] = {
  21892. SOC_SINGLE_EXT("HiFi Filter", SND_SOC_NOPM, 0,
  21893. 1, 0, msm_routing_get_hifi_filter_control,
  21894. msm_routing_put_hifi_filter_control),
  21895. };
  21896. int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
  21897. struct snd_ctl_elem_value *ucontrol) {
  21898. int rc = 0;
  21899. int be_idx = 0;
  21900. char *param_value;
  21901. int *update_param_value;
  21902. uint32_t param_size = (RMS_PAYLOAD_LEN + 1) * sizeof(uint32_t);
  21903. struct param_hdr_v3 param_hdr;
  21904. param_value = kzalloc(param_size, GFP_KERNEL);
  21905. if (!param_value)
  21906. return -ENOMEM;
  21907. memset(&param_hdr, 0, sizeof(param_hdr));
  21908. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
  21909. if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
  21910. break;
  21911. if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
  21912. param_hdr.module_id = RMS_MODULEID_APPI_PASSTHRU;
  21913. param_hdr.instance_id = INSTANCE_ID_0;
  21914. param_hdr.param_id = RMS_PARAM_FIRST_SAMPLE;
  21915. param_hdr.param_size = param_size;
  21916. rc = adm_get_pp_params(SLIMBUS_0_TX, 0, ADM_CLIENT_ID_DEFAULT,
  21917. NULL, &param_hdr, (u8 *) param_value);
  21918. if (rc) {
  21919. pr_err("%s: get parameters failed:%d\n", __func__, rc);
  21920. kfree(param_value);
  21921. return -EINVAL;
  21922. }
  21923. update_param_value = (int *)param_value;
  21924. ucontrol->value.integer.value[0] = update_param_value[0];
  21925. pr_debug("%s: FROM DSP value[0] 0x%x\n",
  21926. __func__, update_param_value[0]);
  21927. }
  21928. kfree(param_value);
  21929. return 0;
  21930. }
  21931. static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
  21932. struct snd_ctl_elem_value *ucontrol)
  21933. {
  21934. voc_session_id = ucontrol->value.integer.value[0];
  21935. pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
  21936. return 0;
  21937. }
  21938. static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
  21939. struct snd_ctl_elem_value *ucontrol)
  21940. {
  21941. ucontrol->value.integer.value[0] = voc_session_id;
  21942. return 0;
  21943. }
  21944. static struct snd_kcontrol_new msm_voc_session_controls[] = {
  21945. SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
  21946. 0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
  21947. msm_voc_session_id_put),
  21948. };
  21949. static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
  21950. struct snd_ctl_elem_info *uinfo)
  21951. {
  21952. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  21953. uinfo->count = sizeof(struct sound_focus_param);
  21954. return 0;
  21955. }
  21956. static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
  21957. struct snd_ctl_elem_value *ucontrol)
  21958. {
  21959. int ret = 0;
  21960. struct sound_focus_param soundFocusData;
  21961. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  21962. sizeof(struct sound_focus_param));
  21963. ret = voc_set_sound_focus(soundFocusData);
  21964. if (ret) {
  21965. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  21966. __func__, ret);
  21967. ret = -EINVAL;
  21968. }
  21969. return ret;
  21970. }
  21971. static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
  21972. struct snd_ctl_elem_value *ucontrol)
  21973. {
  21974. int ret = 0;
  21975. struct sound_focus_param soundFocusData;
  21976. memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
  21977. ret = voc_get_sound_focus(&soundFocusData);
  21978. if (ret) {
  21979. pr_debug("%s: Error getting Sound Focus Params, err=%d\n",
  21980. __func__, ret);
  21981. ret = -EINVAL;
  21982. goto done;
  21983. }
  21984. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  21985. sizeof(struct sound_focus_param));
  21986. done:
  21987. return ret;
  21988. }
  21989. static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
  21990. struct snd_ctl_elem_info *uinfo)
  21991. {
  21992. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  21993. uinfo->count = sizeof(struct source_tracking_param);
  21994. return 0;
  21995. }
  21996. static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
  21997. struct snd_ctl_elem_value *ucontrol)
  21998. {
  21999. int ret = 0;
  22000. struct source_tracking_param sourceTrackingData;
  22001. memset(&sourceTrackingData, 0, sizeof(struct source_tracking_param));
  22002. ret = voc_get_source_tracking(&sourceTrackingData);
  22003. if (ret) {
  22004. pr_debug("%s: Error getting Source Tracking Params, err=%d\n",
  22005. __func__, ret);
  22006. ret = -EINVAL;
  22007. goto done;
  22008. }
  22009. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  22010. sizeof(struct source_tracking_param));
  22011. done:
  22012. return ret;
  22013. }
  22014. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  22015. int *copp_idx)
  22016. {
  22017. int i, idx, be_idx;
  22018. int ret = 0;
  22019. unsigned long copp;
  22020. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  22021. ret = q6audio_validate_port(port_id);
  22022. if (ret < 0) {
  22023. pr_err("%s: port validation failed id 0x%x ret %d\n",
  22024. __func__, port_id, ret);
  22025. ret = -EINVAL;
  22026. goto done;
  22027. }
  22028. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  22029. if (msm_bedais[be_idx].port_id == port_id)
  22030. break;
  22031. }
  22032. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  22033. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  22034. ret = -EINVAL;
  22035. goto done;
  22036. }
  22037. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  22038. MSM_FRONTEND_DAI_MAX) {
  22039. if (!(is_mm_lsm_fe_id(i) &&
  22040. route_check_fe_id_adm_support(i)))
  22041. continue;
  22042. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  22043. copp = session_copp_map[i]
  22044. [session_type][be_idx];
  22045. if (test_bit(idx, &copp))
  22046. break;
  22047. }
  22048. if (idx >= MAX_COPPS_PER_PORT)
  22049. continue;
  22050. else
  22051. break;
  22052. }
  22053. if (i >= MSM_FRONTEND_DAI_MAX) {
  22054. pr_debug("%s: Invalid FE, exiting\n", __func__);
  22055. ret = -EINVAL;
  22056. goto done;
  22057. }
  22058. *copp_idx = idx;
  22059. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  22060. done:
  22061. return ret;
  22062. }
  22063. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  22064. const char *prefix, int *port_id)
  22065. {
  22066. int ret = 0;
  22067. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  22068. /*
  22069. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  22070. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  22071. * and compare the string with the backend name to derive the port id.
  22072. */
  22073. if (!strcmp(kcontrol->id.name + strlen(prefix),
  22074. "SLIMBUS_0")) {
  22075. *port_id = SLIMBUS_0_TX;
  22076. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22077. "TERT_MI2S")) {
  22078. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  22079. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22080. "INT3_MI2S")) {
  22081. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  22082. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22083. "VA_CDC_DMA_TX_0")) {
  22084. *port_id = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  22085. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22086. "TX_CDC_DMA_TX_3")) {
  22087. *port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  22088. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22089. "QUIN_TDM_TX_0")) {
  22090. *port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  22091. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22092. "PRIMARY_TDM")) {
  22093. *port_id = AFE_PORT_ID_PRIMARY_TDM_TX;
  22094. } else {
  22095. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  22096. __func__, kcontrol->id.name);
  22097. ret = -EINVAL;
  22098. goto done;
  22099. }
  22100. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  22101. __func__, kcontrol->id.name, *port_id);
  22102. done:
  22103. return ret;
  22104. }
  22105. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  22106. struct snd_ctl_elem_value *ucontrol)
  22107. {
  22108. int ret = 0;
  22109. struct sound_focus_param soundFocusData;
  22110. int port_id, copp_idx;
  22111. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  22112. "Sound Focus Audio Tx ", &port_id);
  22113. if (ret != 0) {
  22114. pr_err("%s: Error in deriving port id, err=%d\n",
  22115. __func__, ret);
  22116. ret = -EINVAL;
  22117. goto done;
  22118. }
  22119. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  22120. &copp_idx);
  22121. if (ret) {
  22122. pr_err("%s: Could not get copp idx for port_id=%d\n",
  22123. __func__, port_id);
  22124. ret = -EINVAL;
  22125. goto done;
  22126. }
  22127. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  22128. sizeof(struct sound_focus_param));
  22129. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  22130. if (ret) {
  22131. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  22132. __func__, ret);
  22133. ret = -EINVAL;
  22134. goto done;
  22135. }
  22136. done:
  22137. return ret;
  22138. }
  22139. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  22140. struct snd_ctl_elem_value *ucontrol)
  22141. {
  22142. int ret = 0;
  22143. struct sound_focus_param soundFocusData;
  22144. int port_id, copp_idx;
  22145. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  22146. "Sound Focus Audio Tx ", &port_id);
  22147. if (ret) {
  22148. pr_err("%s: Error in deriving port id, err=%d\n",
  22149. __func__, ret);
  22150. ret = -EINVAL;
  22151. goto done;
  22152. }
  22153. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  22154. &copp_idx);
  22155. if (ret) {
  22156. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  22157. __func__, port_id);
  22158. ret = -EINVAL;
  22159. goto done;
  22160. }
  22161. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  22162. if (ret) {
  22163. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  22164. __func__, ret);
  22165. ret = -EINVAL;
  22166. goto done;
  22167. }
  22168. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  22169. sizeof(struct sound_focus_param));
  22170. done:
  22171. return ret;
  22172. }
  22173. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  22174. struct snd_ctl_elem_value *ucontrol)
  22175. {
  22176. int ret = 0;
  22177. struct source_tracking_param sourceTrackingData;
  22178. int port_id, copp_idx;
  22179. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  22180. "Source Tracking Audio Tx ", &port_id);
  22181. if (ret) {
  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_debug("%s: Could not get copp idx for port_id=%d\n",
  22191. __func__, port_id);
  22192. ret = -EINVAL;
  22193. goto done;
  22194. }
  22195. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  22196. if (ret) {
  22197. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  22198. __func__, ret);
  22199. ret = -EINVAL;
  22200. goto done;
  22201. }
  22202. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  22203. sizeof(struct source_tracking_param));
  22204. done:
  22205. return ret;
  22206. }
  22207. static int msm_doa_tracking_mon_info(struct snd_kcontrol *kcontrol,
  22208. struct snd_ctl_elem_info *uinfo)
  22209. {
  22210. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  22211. uinfo->count = sizeof(struct doa_tracking_mon_param);
  22212. return 0;
  22213. }
  22214. static int msm_doa_tracking_mon_get(struct snd_kcontrol *kcontrol,
  22215. struct snd_ctl_elem_value *ucontrol)
  22216. {
  22217. int ret = 0;
  22218. struct doa_tracking_mon_param doa_tracking_data;
  22219. int port_id, copp_idx;
  22220. memset(&doa_tracking_data, 0, sizeof(struct doa_tracking_mon_param));
  22221. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  22222. "Doa Tracking Monitor Listen ", &port_id);
  22223. if (ret) {
  22224. pr_err("%s: Error in deriving port id, err=%d\n",
  22225. __func__, ret);
  22226. ret = -EINVAL;
  22227. goto done;
  22228. }
  22229. /*
  22230. * If copp id exists for given port id, query adm to get doa data.
  22231. * Else query afe for doa tracking params.
  22232. * This is to support in cases where LSM directly connects to
  22233. * AFE for FFNS.
  22234. */
  22235. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  22236. &copp_idx);
  22237. if (!ret)
  22238. ret = adm_get_doa_tracking_mon(port_id, copp_idx,
  22239. &doa_tracking_data);
  22240. else
  22241. ret = afe_get_doa_tracking_mon(port_id, &doa_tracking_data);
  22242. if (ret) {
  22243. pr_err("%s: Error getting Doa Tracking Params, err=%d\n",
  22244. __func__, ret);
  22245. ret = -EINVAL;
  22246. goto done;
  22247. }
  22248. memcpy(ucontrol->value.bytes.data, (void *)&doa_tracking_data,
  22249. sizeof(struct doa_tracking_mon_param));
  22250. done:
  22251. return ret;
  22252. }
  22253. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  22254. {
  22255. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22256. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22257. .name = "Sound Focus Voice Tx SLIMBUS_0",
  22258. .info = msm_sound_focus_info,
  22259. .get = msm_voice_sound_focus_get,
  22260. .put = msm_voice_sound_focus_put,
  22261. },
  22262. {
  22263. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22264. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22265. .name = "Source Tracking Voice Tx SLIMBUS_0",
  22266. .info = msm_source_tracking_info,
  22267. .get = msm_voice_source_tracking_get,
  22268. },
  22269. {
  22270. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22271. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22272. .name = "Sound Focus Audio Tx SLIMBUS_0",
  22273. .info = msm_sound_focus_info,
  22274. .get = msm_audio_sound_focus_get,
  22275. .put = msm_audio_sound_focus_put,
  22276. },
  22277. {
  22278. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22279. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22280. .name = "Source Tracking Audio Tx SLIMBUS_0",
  22281. .info = msm_source_tracking_info,
  22282. .get = msm_audio_source_tracking_get,
  22283. },
  22284. {
  22285. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22286. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22287. .name = "Sound Focus Voice Tx TERT_MI2S",
  22288. .info = msm_sound_focus_info,
  22289. .get = msm_voice_sound_focus_get,
  22290. .put = msm_voice_sound_focus_put,
  22291. },
  22292. {
  22293. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22294. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22295. .name = "Source Tracking Voice Tx TERT_MI2S",
  22296. .info = msm_source_tracking_info,
  22297. .get = msm_voice_source_tracking_get,
  22298. },
  22299. {
  22300. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22301. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22302. .name = "Sound Focus Audio Tx TERT_MI2S",
  22303. .info = msm_sound_focus_info,
  22304. .get = msm_audio_sound_focus_get,
  22305. .put = msm_audio_sound_focus_put,
  22306. },
  22307. {
  22308. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22309. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22310. .name = "Source Tracking Audio Tx TERT_MI2S",
  22311. .info = msm_source_tracking_info,
  22312. .get = msm_audio_source_tracking_get,
  22313. },
  22314. {
  22315. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22316. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22317. .name = "Sound Focus Voice Tx INT3_MI2S",
  22318. .info = msm_sound_focus_info,
  22319. .get = msm_voice_sound_focus_get,
  22320. .put = msm_voice_sound_focus_put,
  22321. },
  22322. {
  22323. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22324. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22325. .name = "Source Tracking Voice Tx INT3_MI2S",
  22326. .info = msm_source_tracking_info,
  22327. .get = msm_voice_source_tracking_get,
  22328. },
  22329. {
  22330. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22331. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22332. .name = "Sound Focus Audio Tx INT3_MI2S",
  22333. .info = msm_sound_focus_info,
  22334. .get = msm_audio_sound_focus_get,
  22335. .put = msm_audio_sound_focus_put,
  22336. },
  22337. {
  22338. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22339. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22340. .name = "Source Tracking Audio Tx INT3_MI2S",
  22341. .info = msm_source_tracking_info,
  22342. .get = msm_audio_source_tracking_get,
  22343. },
  22344. {
  22345. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22346. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22347. .name = "Sound Focus Voice Tx VA_CDC_DMA_TX_0",
  22348. .info = msm_sound_focus_info,
  22349. .get = msm_voice_sound_focus_get,
  22350. .put = msm_voice_sound_focus_put,
  22351. },
  22352. {
  22353. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22354. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22355. .name = "Source Tracking Voice Tx VA_CDC_DMA_TX_0",
  22356. .info = msm_source_tracking_info,
  22357. .get = msm_voice_source_tracking_get,
  22358. },
  22359. {
  22360. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22361. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22362. .name = "Sound Focus Audio Tx VA_CDC_DMA_TX_0",
  22363. .info = msm_sound_focus_info,
  22364. .get = msm_audio_sound_focus_get,
  22365. .put = msm_audio_sound_focus_put,
  22366. },
  22367. {
  22368. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22369. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22370. .name = "Source Tracking Audio Tx VA_CDC_DMA_TX_0",
  22371. .info = msm_source_tracking_info,
  22372. .get = msm_audio_source_tracking_get,
  22373. },
  22374. {
  22375. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22376. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22377. .name = "Sound Focus Voice Tx TX_CDC_DMA_TX_3",
  22378. .info = msm_sound_focus_info,
  22379. .get = msm_voice_sound_focus_get,
  22380. .put = msm_voice_sound_focus_put,
  22381. },
  22382. {
  22383. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22384. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22385. .name = "Source Tracking Voice Tx TX_CDC_DMA_TX_3",
  22386. .info = msm_source_tracking_info,
  22387. .get = msm_voice_source_tracking_get,
  22388. },
  22389. {
  22390. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22391. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22392. .name = "Sound Focus Audio Tx TX_CDC_DMA_TX_3",
  22393. .info = msm_sound_focus_info,
  22394. .get = msm_audio_sound_focus_get,
  22395. .put = msm_audio_sound_focus_put,
  22396. },
  22397. {
  22398. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22399. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22400. .name = "Source Tracking Audio Tx TX_CDC_DMA_TX_3",
  22401. .info = msm_source_tracking_info,
  22402. .get = msm_audio_source_tracking_get,
  22403. },
  22404. {
  22405. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22406. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22407. .name = "Sound Focus Voice Tx QUIN_TDM_TX_0",
  22408. .info = msm_sound_focus_info,
  22409. .get = msm_voice_sound_focus_get,
  22410. .put = msm_voice_sound_focus_put,
  22411. },
  22412. {
  22413. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22414. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22415. .name = "Source Tracking Voice Tx QUIN_TDM_TX_0",
  22416. .info = msm_source_tracking_info,
  22417. .get = msm_voice_source_tracking_get,
  22418. },
  22419. {
  22420. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22421. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22422. .name = "Sound Focus Audio Tx QUIN_TDM_TX_0",
  22423. .info = msm_sound_focus_info,
  22424. .get = msm_audio_sound_focus_get,
  22425. .put = msm_audio_sound_focus_put,
  22426. },
  22427. {
  22428. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22429. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22430. .name = "Source Tracking Audio Tx QUIN_TDM_TX_0",
  22431. .info = msm_source_tracking_info,
  22432. .get = msm_audio_source_tracking_get,
  22433. },
  22434. {
  22435. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22436. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22437. .name = "Sound Focus Audio Tx PRIMARY_TDM",
  22438. .info = msm_sound_focus_info,
  22439. .get = msm_audio_sound_focus_get,
  22440. .put = msm_audio_sound_focus_put,
  22441. },
  22442. {
  22443. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22444. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22445. .name = "Source Tracking Audio Tx PRIMARY_TDM",
  22446. .info = msm_source_tracking_info,
  22447. .get = msm_audio_source_tracking_get,
  22448. },
  22449. {
  22450. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22451. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22452. .name = "Doa Tracking Monitor Listen VA_CDC_DMA_TX_0",
  22453. .info = msm_doa_tracking_mon_info,
  22454. .get = msm_doa_tracking_mon_get,
  22455. },
  22456. };
  22457. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  22458. struct snd_ctl_elem_value *ucontrol)
  22459. {
  22460. int ret = 0;
  22461. int item;
  22462. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  22463. pr_debug("%s item is %d\n", __func__,
  22464. ucontrol->value.enumerated.item[0]);
  22465. mutex_lock(&routing_lock);
  22466. item = ucontrol->value.enumerated.item[0];
  22467. if (item < e->items) {
  22468. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  22469. __func__, e->shift_l, e->values[item]);
  22470. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  22471. e->values[item] < MSM_BACKEND_DAI_MAX)
  22472. /* Enable feedback TX path */
  22473. ret = afe_spk_prot_feed_back_cfg(
  22474. msm_bedais[e->values[item]].port_id,
  22475. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  22476. else {
  22477. pr_debug("%s values are out of range item %d\n",
  22478. __func__, e->values[item]);
  22479. /* Disable feedback TX path */
  22480. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  22481. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  22482. else
  22483. ret = -EINVAL;
  22484. }
  22485. } else {
  22486. pr_err("%s item value is out of range item\n", __func__);
  22487. ret = -EINVAL;
  22488. }
  22489. mutex_unlock(&routing_lock);
  22490. return ret;
  22491. }
  22492. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  22493. struct snd_ctl_elem_value *ucontrol)
  22494. {
  22495. int ret = 0;
  22496. int item;
  22497. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  22498. pr_debug("%s item is %d\n", __func__,
  22499. ucontrol->value.enumerated.item[0]);
  22500. mutex_lock(&routing_lock);
  22501. item = ucontrol->value.enumerated.item[0];
  22502. if (item < e->items) {
  22503. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  22504. __func__, e->shift_l, e->values[item]);
  22505. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  22506. e->values[item] < MSM_BACKEND_DAI_MAX)
  22507. /* Enable feedback TX path */
  22508. ret = afe_spk_prot_feed_back_cfg(
  22509. msm_bedais[e->values[item]].port_id,
  22510. msm_bedais[e->shift_l].port_id,
  22511. 1, 1, 1);
  22512. else {
  22513. pr_debug("%s values are out of range item %d\n",
  22514. __func__, e->values[item]);
  22515. /* Disable feedback TX path */
  22516. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  22517. ret = afe_spk_prot_feed_back_cfg(0,
  22518. 0, 0, 0, 0);
  22519. else
  22520. ret = -EINVAL;
  22521. }
  22522. } else {
  22523. pr_err("%s item value is out of range item\n", __func__);
  22524. ret = -EINVAL;
  22525. }
  22526. mutex_unlock(&routing_lock);
  22527. return ret;
  22528. }
  22529. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  22530. struct snd_ctl_elem_value *ucontrol)
  22531. {
  22532. pr_debug("%s\n", __func__);
  22533. return 0;
  22534. }
  22535. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  22536. struct snd_ctl_elem_value *ucontrol)
  22537. {
  22538. pr_debug("%s\n", __func__);
  22539. ucontrol->value.enumerated.item[0] = 0;
  22540. return 0;
  22541. }
  22542. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  22543. "ZERO", "SLIM4_TX"
  22544. };
  22545. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  22546. "ZERO", "SLIM4_TX"
  22547. };
  22548. static const char * const wsa_rx_0_vi_fb_tx_lch_mux_text[] = {
  22549. "ZERO", "WSA_CDC_DMA_TX_0"
  22550. };
  22551. static const char * const wsa_rx_0_vi_fb_tx_rch_mux_text[] = {
  22552. "ZERO", "WSA_CDC_DMA_TX_0"
  22553. };
  22554. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  22555. "ZERO", "SENARY_TX"
  22556. };
  22557. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  22558. "ZERO", "INT5_MI2S_TX"
  22559. };
  22560. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  22561. "ZERO", "INT5_MI2S_TX"
  22562. };
  22563. static const int slim0_rx_vi_fb_tx_lch_value[] = {
  22564. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  22565. };
  22566. static const int slim0_rx_vi_fb_tx_rch_value[] = {
  22567. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  22568. };
  22569. static const int wsa_rx_0_vi_fb_tx_lch_value[] = {
  22570. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  22571. };
  22572. static const int wsa_rx_0_vi_fb_tx_rch_value[] = {
  22573. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  22574. };
  22575. static const int mi2s_rx_vi_fb_tx_value[] = {
  22576. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  22577. };
  22578. static const int int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  22579. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  22580. };
  22581. static const int int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  22582. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  22583. };
  22584. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  22585. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  22586. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  22587. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  22588. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  22589. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  22590. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  22591. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  22592. static const struct soc_enum wsa_rx_0_vi_fb_lch_mux_enum =
  22593. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  22594. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_lch_mux_text),
  22595. wsa_rx_0_vi_fb_tx_lch_mux_text, wsa_rx_0_vi_fb_tx_lch_value);
  22596. static const struct soc_enum wsa_rx_0_vi_fb_rch_mux_enum =
  22597. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  22598. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_rch_mux_text),
  22599. wsa_rx_0_vi_fb_tx_rch_mux_text, wsa_rx_0_vi_fb_tx_rch_value);
  22600. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  22601. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  22602. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  22603. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  22604. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  22605. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  22606. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  22607. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  22608. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  22609. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  22610. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  22611. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  22612. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  22613. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  22614. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  22615. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  22616. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  22617. spkr_prot_put_vi_lch_port);
  22618. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  22619. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  22620. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  22621. spkr_prot_put_vi_rch_port);
  22622. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_lch_mux =
  22623. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_LCH_MUX",
  22624. wsa_rx_0_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  22625. spkr_prot_put_vi_lch_port);
  22626. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_rch_mux =
  22627. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_RCH_MUX",
  22628. wsa_rx_0_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  22629. spkr_prot_put_vi_rch_port);
  22630. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  22631. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  22632. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  22633. spkr_prot_put_vi_lch_port);
  22634. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  22635. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  22636. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  22637. spkr_prot_put_vi_lch_port);
  22638. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  22639. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  22640. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  22641. spkr_prot_put_vi_rch_port);
  22642. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  22643. /* Frontend AIF */
  22644. /* Widget name equals to Front-End DAI name<Need confirmation>,
  22645. * Stream name must contains substring of front-end dai name
  22646. */
  22647. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  22648. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  22649. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  22650. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  22651. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  22652. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  22653. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  22654. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  22655. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  22656. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  22657. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  22658. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  22659. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  22660. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  22661. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  22662. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  22663. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  22664. SND_SOC_DAPM_AIF_IN("MM_DL21", "MultiMedia21 Playback", 0, 0, 0, 0),
  22665. SND_SOC_DAPM_AIF_IN("MM_DL22", "MultiMedia22 Playback", 0, 0, 0, 0),
  22666. SND_SOC_DAPM_AIF_IN("MM_DL23", "MultiMedia23 Playback", 0, 0, 0, 0),
  22667. SND_SOC_DAPM_AIF_IN("MM_DL24", "MultiMedia24 Playback", 0, 0, 0, 0),
  22668. SND_SOC_DAPM_AIF_IN("MM_DL25", "MultiMedia25 Playback", 0, 0, 0, 0),
  22669. SND_SOC_DAPM_AIF_IN("MM_DL26", "MultiMedia26 Playback", 0, 0, 0, 0),
  22670. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  22671. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  22672. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  22673. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  22674. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  22675. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  22676. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  22677. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  22678. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  22679. SND_SOC_DAPM_AIF_OUT("MM_UL10", "MultiMedia10 Capture", 0, 0, 0, 0),
  22680. SND_SOC_DAPM_AIF_OUT("MM_UL16", "MultiMedia16 Capture", 0, 0, 0, 0),
  22681. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  22682. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  22683. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  22684. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  22685. SND_SOC_DAPM_AIF_OUT("MM_UL21", "MultiMedia21 Capture", 0, 0, 0, 0),
  22686. SND_SOC_DAPM_AIF_OUT("MM_UL22", "MultiMedia22 Capture", 0, 0, 0, 0),
  22687. SND_SOC_DAPM_AIF_OUT("MM_UL23", "MultiMedia23 Capture", 0, 0, 0, 0),
  22688. SND_SOC_DAPM_AIF_OUT("MM_UL24", "MultiMedia24 Capture", 0, 0, 0, 0),
  22689. SND_SOC_DAPM_AIF_OUT("MM_UL25", "MultiMedia25 Capture", 0, 0, 0, 0),
  22690. SND_SOC_DAPM_AIF_OUT("MM_UL27", "MultiMedia27 Capture", 0, 0, 0, 0),
  22691. SND_SOC_DAPM_AIF_OUT("MM_UL28", "MultiMedia28 Capture", 0, 0, 0, 0),
  22692. SND_SOC_DAPM_AIF_OUT("MM_UL29", "MultiMedia29 Capture", 0, 0, 0, 0),
  22693. SND_SOC_DAPM_AIF_OUT("MM_UL30", "MultiMedia30 Capture", 0, 0, 0, 0),
  22694. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  22695. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  22696. "VoiceMMode1 Playback", 0, 0, 0, 0),
  22697. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  22698. "VoiceMMode1 Capture", 0, 0, 0, 0),
  22699. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  22700. "VoiceMMode2 Playback", 0, 0, 0, 0),
  22701. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  22702. "VoiceMMode2 Capture", 0, 0, 0, 0),
  22703. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  22704. 0, 0, 0, 0),
  22705. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  22706. 0, 0, 0, 0),
  22707. SND_SOC_DAPM_AIF_IN("CDC_DMA_DL_HL", "CDC_DMA_HOSTLESS Playback",
  22708. 0, 0, 0, 0),
  22709. SND_SOC_DAPM_AIF_OUT("CDC_DMA_UL_HL", "CDC_DMA_HOSTLESS Capture",
  22710. 0, 0, 0, 0),
  22711. SND_SOC_DAPM_AIF_OUT("TX3_CDC_DMA_UL_HL",
  22712. "TX3_CDC_DMA_HOSTLESS Capture", 0, 0, 0, 0),
  22713. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  22714. 0, 0, 0, 0),
  22715. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  22716. 0, 0, 0, 0),
  22717. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  22718. 0, 0, 0, 0),
  22719. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  22720. 0, 0, 0, 0),
  22721. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  22722. 0, 0, 0, 0),
  22723. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  22724. 0, 0, 0, 0),
  22725. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  22726. 0, 0, 0, 0),
  22727. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  22728. 0, 0, 0, 0),
  22729. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  22730. 0, 0, 0, 0),
  22731. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  22732. 0, 0, 0, 0),
  22733. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  22734. 0, 0, 0, 0),
  22735. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  22736. 0, 0, 0, 0),
  22737. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  22738. 0, 0, 0, 0),
  22739. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  22740. 0, 0, 0, 0),
  22741. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  22742. 0, 0, 0, 0),
  22743. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  22744. 0, 0, 0, 0),
  22745. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  22746. 0, 0, 0, 0),
  22747. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  22748. 0, 0, 0, 0),
  22749. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  22750. 0, 0, 0, 0),
  22751. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  22752. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  22753. 0, 0, 0, 0),
  22754. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  22755. "INT0 MI2S_RX Hostless Playback",
  22756. 0, 0, 0, 0),
  22757. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  22758. "INT4 MI2S_RX Hostless Playback",
  22759. 0, 0, 0, 0),
  22760. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  22761. "Primary MI2S_RX Hostless Playback",
  22762. 0, 0, 0, 0),
  22763. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  22764. "Secondary MI2S_RX Hostless Playback",
  22765. 0, 0, 0, 0),
  22766. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  22767. "Tertiary MI2S_RX Hostless Playback",
  22768. 0, 0, 0, 0),
  22769. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  22770. "Quaternary MI2S_RX Hostless Playback",
  22771. 0, 0, 0, 0),
  22772. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_DL_HL",
  22773. "Quinary MI2S_RX Hostless Playback",
  22774. 0, 0, 0, 0),
  22775. SND_SOC_DAPM_AIF_IN("SEN_MI2S_DL_HL",
  22776. "Senary MI2S_RX Hostless Playback",
  22777. 0, 0, 0, 0),
  22778. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  22779. 0, 0, 0, 0),
  22780. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  22781. 0, 0, 0, 0),
  22782. SND_SOC_DAPM_AIF_IN("SEC_AUXPCM_DL_HL", "SEC_AUXPCM_HOSTLESS Playback",
  22783. 0, 0, 0, 0),
  22784. SND_SOC_DAPM_AIF_OUT("SEC_AUXPCM_UL_HL", "SEC_AUXPCM_HOSTLESS Capture",
  22785. 0, 0, 0, 0),
  22786. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  22787. 0, 0, 0, 0),
  22788. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  22789. "INT3 MI2S_TX Hostless Capture",
  22790. 0, 0, 0, 0),
  22791. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  22792. "Tertiary MI2S_TX Hostless Capture",
  22793. 0, 0, 0, 0),
  22794. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  22795. "Secondary MI2S_TX Hostless Capture",
  22796. 0, 0, 0, 0),
  22797. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  22798. "Primary MI2S_TX Hostless Capture",
  22799. 0, 0, 0, 0),
  22800. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  22801. 0, 0, 0, 0),
  22802. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  22803. 0, 0, 0, 0),
  22804. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  22805. "Quaternary MI2S_TX Hostless Capture",
  22806. 0, 0, 0, 0),
  22807. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_UL_HL",
  22808. "Quinary MI2S_TX Hostless Capture",
  22809. 0, 0, 0, 0),
  22810. SND_SOC_DAPM_AIF_OUT("SEN_MI2S_UL_HL",
  22811. "Senary MI2S_TX Hostless Capture",
  22812. 0, 0, 0, 0),
  22813. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  22814. "Primary TDM0 Hostless Playback",
  22815. 0, 0, 0, 0),
  22816. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  22817. "Primary TDM0 Hostless Capture",
  22818. 0, 0, 0, 0),
  22819. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  22820. "Primary TDM1 Hostless Playback",
  22821. 0, 0, 0, 0),
  22822. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  22823. "Primary TDM1 Hostless Capture",
  22824. 0, 0, 0, 0),
  22825. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  22826. "Primary TDM2 Hostless Playback",
  22827. 0, 0, 0, 0),
  22828. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  22829. "Primary TDM2 Hostless Capture",
  22830. 0, 0, 0, 0),
  22831. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  22832. "Primary TDM3 Hostless Playback",
  22833. 0, 0, 0, 0),
  22834. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  22835. "Primary TDM3 Hostless Capture",
  22836. 0, 0, 0, 0),
  22837. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  22838. "Primary TDM4 Hostless Playback",
  22839. 0, 0, 0, 0),
  22840. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  22841. "Primary TDM4 Hostless Capture",
  22842. 0, 0, 0, 0),
  22843. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  22844. "Primary TDM5 Hostless Playback",
  22845. 0, 0, 0, 0),
  22846. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  22847. "Primary TDM5 Hostless Capture",
  22848. 0, 0, 0, 0),
  22849. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  22850. "Primary TDM6 Hostless Playback",
  22851. 0, 0, 0, 0),
  22852. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  22853. "Primary TDM6 Hostless Capture",
  22854. 0, 0, 0, 0),
  22855. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  22856. "Primary TDM7 Hostless Playback",
  22857. 0, 0, 0, 0),
  22858. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  22859. "Primary TDM7 Hostless Capture",
  22860. 0, 0, 0, 0),
  22861. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  22862. "Secondary TDM0 Hostless Playback",
  22863. 0, 0, 0, 0),
  22864. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  22865. "Secondary TDM0 Hostless Capture",
  22866. 0, 0, 0, 0),
  22867. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  22868. "Secondary TDM1 Hostless Playback",
  22869. 0, 0, 0, 0),
  22870. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  22871. "Secondary TDM1 Hostless Capture",
  22872. 0, 0, 0, 0),
  22873. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  22874. "Secondary TDM2 Hostless Playback",
  22875. 0, 0, 0, 0),
  22876. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  22877. "Secondary TDM2 Hostless Capture",
  22878. 0, 0, 0, 0),
  22879. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  22880. "Secondary TDM3 Hostless Playback",
  22881. 0, 0, 0, 0),
  22882. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  22883. "Secondary TDM3 Hostless Capture",
  22884. 0, 0, 0, 0),
  22885. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  22886. "Secondary TDM4 Hostless Playback",
  22887. 0, 0, 0, 0),
  22888. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  22889. "Secondary TDM4 Hostless Capture",
  22890. 0, 0, 0, 0),
  22891. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  22892. "Secondary TDM5 Hostless Playback",
  22893. 0, 0, 0, 0),
  22894. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  22895. "Secondary TDM5 Hostless Capture",
  22896. 0, 0, 0, 0),
  22897. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  22898. "Secondary TDM6 Hostless Playback",
  22899. 0, 0, 0, 0),
  22900. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  22901. "Secondary TDM6 Hostless Capture",
  22902. 0, 0, 0, 0),
  22903. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  22904. "Secondary TDM7 Hostless Playback",
  22905. 0, 0, 0, 0),
  22906. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  22907. "Secondary TDM7 Hostless Capture",
  22908. 0, 0, 0, 0),
  22909. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  22910. "Tertiary TDM0 Hostless Playback",
  22911. 0, 0, 0, 0),
  22912. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  22913. "Tertiary TDM0 Hostless Capture",
  22914. 0, 0, 0, 0),
  22915. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  22916. "Tertiary TDM1 Hostless Playback",
  22917. 0, 0, 0, 0),
  22918. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  22919. "Tertiary TDM1 Hostless Capture",
  22920. 0, 0, 0, 0),
  22921. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  22922. "Tertiary TDM2 Hostless Playback",
  22923. 0, 0, 0, 0),
  22924. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  22925. "Tertiary TDM2 Hostless Capture",
  22926. 0, 0, 0, 0),
  22927. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  22928. "Tertiary TDM3 Hostless Playback",
  22929. 0, 0, 0, 0),
  22930. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  22931. "Tertiary TDM3 Hostless Capture",
  22932. 0, 0, 0, 0),
  22933. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  22934. "Tertiary TDM4 Hostless Playback",
  22935. 0, 0, 0, 0),
  22936. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  22937. "Tertiary TDM4 Hostless Capture",
  22938. 0, 0, 0, 0),
  22939. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  22940. "Tertiary TDM5 Hostless Playback",
  22941. 0, 0, 0, 0),
  22942. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  22943. "Tertiary TDM5 Hostless Capture",
  22944. 0, 0, 0, 0),
  22945. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  22946. "Tertiary TDM6 Hostless Playback",
  22947. 0, 0, 0, 0),
  22948. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  22949. "Tertiary TDM6 Hostless Capture",
  22950. 0, 0, 0, 0),
  22951. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  22952. "Tertiary TDM7 Hostless Playback",
  22953. 0, 0, 0, 0),
  22954. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  22955. "Tertiary TDM7 Hostless Capture",
  22956. 0, 0, 0, 0),
  22957. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  22958. "Quaternary TDM0 Hostless Playback",
  22959. 0, 0, 0, 0),
  22960. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  22961. "Quaternary TDM0 Hostless Capture",
  22962. 0, 0, 0, 0),
  22963. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  22964. "Quaternary TDM1 Hostless Playback",
  22965. 0, 0, 0, 0),
  22966. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  22967. "Quaternary TDM1 Hostless Capture",
  22968. 0, 0, 0, 0),
  22969. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  22970. "Quaternary TDM2 Hostless Playback",
  22971. 0, 0, 0, 0),
  22972. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  22973. "Quaternary TDM2 Hostless Capture",
  22974. 0, 0, 0, 0),
  22975. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  22976. "Quaternary TDM3 Hostless Playback",
  22977. 0, 0, 0, 0),
  22978. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  22979. "Quaternary TDM3 Hostless Capture",
  22980. 0, 0, 0, 0),
  22981. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  22982. "Quaternary TDM4 Hostless Playback",
  22983. 0, 0, 0, 0),
  22984. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  22985. "Quaternary TDM4 Hostless Capture",
  22986. 0, 0, 0, 0),
  22987. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  22988. "Quaternary TDM5 Hostless Playback",
  22989. 0, 0, 0, 0),
  22990. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  22991. "Quaternary TDM5 Hostless Capture",
  22992. 0, 0, 0, 0),
  22993. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  22994. "Quaternary TDM6 Hostless Playback",
  22995. 0, 0, 0, 0),
  22996. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  22997. "Quaternary TDM6 Hostless Capture",
  22998. 0, 0, 0, 0),
  22999. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  23000. "Quaternary TDM7 Hostless Playback",
  23001. 0, 0, 0, 0),
  23002. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  23003. "Quaternary TDM7 Hostless Capture",
  23004. 0, 0, 0, 0),
  23005. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_0_DL_HL",
  23006. "Quinary TDM0 Hostless Playback",
  23007. 0, 0, 0, 0),
  23008. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_0_UL_HL",
  23009. "Quinary TDM0 Hostless Capture",
  23010. 0, 0, 0, 0),
  23011. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_1_DL_HL",
  23012. "Quinary TDM1 Hostless Playback",
  23013. 0, 0, 0, 0),
  23014. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_1_UL_HL",
  23015. "Quinary TDM1 Hostless Capture",
  23016. 0, 0, 0, 0),
  23017. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_2_DL_HL",
  23018. "Quinary TDM2 Hostless Playback",
  23019. 0, 0, 0, 0),
  23020. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_2_UL_HL",
  23021. "Quinary TDM2 Hostless Capture",
  23022. 0, 0, 0, 0),
  23023. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_3_DL_HL",
  23024. "Quinary TDM3 Hostless Playback",
  23025. 0, 0, 0, 0),
  23026. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_3_UL_HL",
  23027. "Quinary TDM3 Hostless Capture",
  23028. 0, 0, 0, 0),
  23029. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_4_DL_HL",
  23030. "Quinary TDM4 Hostless Playback",
  23031. 0, 0, 0, 0),
  23032. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_4_UL_HL",
  23033. "Quinary TDM4 Hostless Capture",
  23034. 0, 0, 0, 0),
  23035. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_5_DL_HL",
  23036. "Quinary TDM5 Hostless Playback",
  23037. 0, 0, 0, 0),
  23038. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_5_UL_HL",
  23039. "Quinary TDM5 Hostless Capture",
  23040. 0, 0, 0, 0),
  23041. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_6_DL_HL",
  23042. "Quinary TDM6 Hostless Playback",
  23043. 0, 0, 0, 0),
  23044. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_6_UL_HL",
  23045. "Quinary TDM6 Hostless Capture",
  23046. 0, 0, 0, 0),
  23047. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_7_DL_HL",
  23048. "Quinary TDM7 Hostless Playback",
  23049. 0, 0, 0, 0),
  23050. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_7_UL_HL",
  23051. "Quinary TDM7 Hostless Capture",
  23052. 0, 0, 0, 0),
  23053. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_0_DL_HL",
  23054. "Senary TDM0 Hostless Playback",
  23055. 0, 0, 0, 0),
  23056. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_0_UL_HL",
  23057. "Senary TDM0 Hostless Capture",
  23058. 0, 0, 0, 0),
  23059. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_1_DL_HL",
  23060. "Senary TDM1 Hostless Playback",
  23061. 0, 0, 0, 0),
  23062. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_1_UL_HL",
  23063. "Senary TDM1 Hostless Capture",
  23064. 0, 0, 0, 0),
  23065. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_2_DL_HL",
  23066. "Senary TDM2 Hostless Playback",
  23067. 0, 0, 0, 0),
  23068. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_2_UL_HL",
  23069. "Senary TDM2 Hostless Capture",
  23070. 0, 0, 0, 0),
  23071. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_3_DL_HL",
  23072. "Senary TDM3 Hostless Playback",
  23073. 0, 0, 0, 0),
  23074. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_3_UL_HL",
  23075. "Senary TDM3 Hostless Capture",
  23076. 0, 0, 0, 0),
  23077. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_4_DL_HL",
  23078. "Senary TDM4 Hostless Playback",
  23079. 0, 0, 0, 0),
  23080. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_4_UL_HL",
  23081. "Senary TDM4 Hostless Capture",
  23082. 0, 0, 0, 0),
  23083. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_5_DL_HL",
  23084. "Senary TDM5 Hostless Playback",
  23085. 0, 0, 0, 0),
  23086. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_5_UL_HL",
  23087. "Senary TDM5 Hostless Capture",
  23088. 0, 0, 0, 0),
  23089. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_6_DL_HL",
  23090. "Senary TDM6 Hostless Playback",
  23091. 0, 0, 0, 0),
  23092. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_6_UL_HL",
  23093. "Senary TDM6 Hostless Capture",
  23094. 0, 0, 0, 0),
  23095. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_7_DL_HL",
  23096. "Senary TDM7 Hostless Playback",
  23097. 0, 0, 0, 0),
  23098. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_7_UL_HL",
  23099. "Senary TDM7 Hostless Capture",
  23100. 0, 0, 0, 0),
  23101. /* LSM */
  23102. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  23103. 0, 0, 0, 0),
  23104. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  23105. 0, 0, 0, 0),
  23106. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  23107. 0, 0, 0, 0),
  23108. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  23109. 0, 0, 0, 0),
  23110. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  23111. 0, 0, 0, 0),
  23112. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  23113. 0, 0, 0, 0),
  23114. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  23115. 0, 0, 0, 0),
  23116. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  23117. 0, 0, 0, 0),
  23118. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  23119. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  23120. /* Backend AIF */
  23121. /* Stream name equals to backend dai link stream name */
  23122. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  23123. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  23124. 0, 0, 0, 0),
  23125. SND_SOC_DAPM_AIF_OUT("PRI_SPDIF_RX", "Primary SPDIF Playback",
  23126. 0, 0, 0, 0),
  23127. SND_SOC_DAPM_AIF_IN("PRI_SPDIF_TX", "Primary SPDIF Capture",
  23128. 0, 0, 0, 0),
  23129. SND_SOC_DAPM_AIF_OUT("SEC_SPDIF_RX", "Secondary SPDIF Playback",
  23130. 0, 0, 0, 0),
  23131. SND_SOC_DAPM_AIF_IN("SEC_SPDIF_TX", "Secondary SPDIF Capture",
  23132. 0, 0, 0, 0),
  23133. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  23134. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  23135. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  23136. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  23137. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  23138. 0, 0, 0, 0),
  23139. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT1", "Display Port1 Playback",
  23140. 0, 0, 0, 0),
  23141. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  23142. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  23143. 0, 0, 0, 0),
  23144. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  23145. 0, 0, 0, 0),
  23146. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  23147. 0, 0, 0, 0),
  23148. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  23149. "Secondary MI2S Playback SD1",
  23150. 0, 0, 0, 0),
  23151. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  23152. 0, 0, 0, 0),
  23153. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  23154. 0, 0, 0, 0),
  23155. SND_SOC_DAPM_AIF_OUT("INT2_MI2S_RX", "INT2 MI2S Playback",
  23156. 0, 0, 0, 0),
  23157. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_RX", "INT3 MI2S Playback",
  23158. 0, 0, 0, 0),
  23159. SND_SOC_DAPM_AIF_OUT("INT5_MI2S_RX", "INT5 MI2S Playback",
  23160. 0, 0, 0, 0),
  23161. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  23162. 0, 0, 0, 0),
  23163. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_TX", "INT4 MI2S Capture",
  23164. 0, 0, 0, 0),
  23165. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  23166. 0, 0, 0, 0),
  23167. SND_SOC_DAPM_AIF_OUT("SEN_MI2S_RX", "Senary MI2S Playback",
  23168. 0, 0, 0, 0),
  23169. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  23170. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  23171. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  23172. 0, 0, 0, 0),
  23173. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  23174. 0, 0, 0, 0),
  23175. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  23176. 0, 0, 0, 0),
  23177. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_TX", "INT0 MI2S Capture",
  23178. 0, 0, 0, 0),
  23179. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  23180. 0, 0, 0, 0),
  23181. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  23182. 0, 0, 0, 0),
  23183. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  23184. 0, 0, 0, 0),
  23185. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  23186. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  23187. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  23188. 0, 0, 0, 0),
  23189. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  23190. 0, 0, 0, 0),
  23191. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  23192. 0, 0, 0, 0),
  23193. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  23194. 0, 0, 0, 0),
  23195. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  23196. 0, 0, 0, 0),
  23197. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  23198. 0, 0, 0, 0),
  23199. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  23200. 0, 0, 0, 0),
  23201. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  23202. 0, 0, 0, 0),
  23203. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  23204. 0, 0, 0, 0),
  23205. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  23206. 0, 0, 0, 0),
  23207. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  23208. 0, 0, 0, 0),
  23209. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  23210. 0, 0, 0, 0),
  23211. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  23212. 0, 0, 0, 0),
  23213. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  23214. 0, 0, 0, 0),
  23215. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  23216. 0, 0, 0, 0),
  23217. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  23218. 0, 0, 0, 0),
  23219. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  23220. 0, 0, 0, 0),
  23221. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  23222. 0, 0, 0, 0),
  23223. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  23224. 0, 0, 0, 0),
  23225. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  23226. 0, 0, 0, 0),
  23227. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  23228. 0, 0, 0, 0),
  23229. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  23230. 0, 0, 0, 0),
  23231. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  23232. 0, 0, 0, 0),
  23233. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  23234. 0, 0, 0, 0),
  23235. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  23236. 0, 0, 0, 0),
  23237. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  23238. 0, 0, 0, 0),
  23239. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  23240. 0, 0, 0, 0),
  23241. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  23242. 0, 0, 0, 0),
  23243. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  23244. 0, 0, 0, 0),
  23245. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  23246. 0, 0, 0, 0),
  23247. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  23248. 0, 0, 0, 0),
  23249. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  23250. 0, 0, 0, 0),
  23251. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  23252. 0, 0, 0, 0),
  23253. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  23254. 0, 0, 0, 0),
  23255. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  23256. 0, 0, 0, 0),
  23257. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  23258. 0, 0, 0, 0),
  23259. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  23260. 0, 0, 0, 0),
  23261. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  23262. 0, 0, 0, 0),
  23263. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  23264. 0, 0, 0, 0),
  23265. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  23266. 0, 0, 0, 0),
  23267. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  23268. 0, 0, 0, 0),
  23269. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  23270. 0, 0, 0, 0),
  23271. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  23272. 0, 0, 0, 0),
  23273. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  23274. 0, 0, 0, 0),
  23275. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  23276. 0, 0, 0, 0),
  23277. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  23278. 0, 0, 0, 0),
  23279. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  23280. 0, 0, 0, 0),
  23281. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  23282. 0, 0, 0, 0),
  23283. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  23284. 0, 0, 0, 0),
  23285. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  23286. 0, 0, 0, 0),
  23287. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  23288. 0, 0, 0, 0),
  23289. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  23290. 0, 0, 0, 0),
  23291. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  23292. 0, 0, 0, 0),
  23293. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  23294. 0, 0, 0, 0),
  23295. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  23296. 0, 0, 0, 0),
  23297. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  23298. 0, 0, 0, 0),
  23299. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  23300. 0, 0, 0, 0),
  23301. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  23302. 0, 0, 0, 0),
  23303. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  23304. 0, 0, 0, 0),
  23305. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  23306. 0, 0, 0, 0),
  23307. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  23308. 0, 0, 0, 0),
  23309. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  23310. 0, 0, 0, 0),
  23311. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  23312. 0, 0, 0, 0),
  23313. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  23314. 0, 0, 0, 0),
  23315. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  23316. 0, 0, 0, 0),
  23317. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  23318. 0, 0, 0, 0),
  23319. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  23320. 0, 0, 0, 0),
  23321. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  23322. 0, 0, 0, 0),
  23323. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  23324. 0, 0, 0, 0),
  23325. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  23326. 0, 0, 0, 0),
  23327. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  23328. 0, 0, 0, 0),
  23329. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  23330. 0, 0, 0, 0),
  23331. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  23332. 0, 0, 0, 0),
  23333. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_0", "Quinary TDM0 Playback",
  23334. 0, 0, 0, 0),
  23335. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_0", "Quinary TDM0 Capture",
  23336. 0, 0, 0, 0),
  23337. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_1", "Quinary TDM1 Playback",
  23338. 0, 0, 0, 0),
  23339. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_1", "Quinary TDM1 Capture",
  23340. 0, 0, 0, 0),
  23341. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_2", "Quinary TDM2 Playback",
  23342. 0, 0, 0, 0),
  23343. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_2", "Quinary TDM2 Capture",
  23344. 0, 0, 0, 0),
  23345. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_3", "Quinary TDM3 Playback",
  23346. 0, 0, 0, 0),
  23347. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_3", "Quinary TDM3 Capture",
  23348. 0, 0, 0, 0),
  23349. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_4", "Quinary TDM4 Playback",
  23350. 0, 0, 0, 0),
  23351. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_4", "Quinary TDM4 Capture",
  23352. 0, 0, 0, 0),
  23353. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_5", "Quinary TDM5 Playback",
  23354. 0, 0, 0, 0),
  23355. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_5", "Quinary TDM5 Capture",
  23356. 0, 0, 0, 0),
  23357. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_6", "Quinary TDM6 Playback",
  23358. 0, 0, 0, 0),
  23359. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_6", "Quinary TDM6 Capture",
  23360. 0, 0, 0, 0),
  23361. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_7", "Quinary TDM7 Playback",
  23362. 0, 0, 0, 0),
  23363. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_7", "Quinary TDM7 Capture",
  23364. 0, 0, 0, 0),
  23365. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_0", "Senary TDM0 Playback",
  23366. 0, 0, 0, 0),
  23367. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_0", "Senary TDM0 Capture",
  23368. 0, 0, 0, 0),
  23369. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_1", "Senary TDM1 Playback",
  23370. 0, 0, 0, 0),
  23371. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_1", "Senary TDM1 Capture",
  23372. 0, 0, 0, 0),
  23373. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_2", "Senary TDM2 Playback",
  23374. 0, 0, 0, 0),
  23375. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_2", "Senary TDM2 Capture",
  23376. 0, 0, 0, 0),
  23377. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_3", "Senary TDM3 Playback",
  23378. 0, 0, 0, 0),
  23379. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_3", "Senary TDM3 Capture",
  23380. 0, 0, 0, 0),
  23381. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_4", "Senary TDM4 Playback",
  23382. 0, 0, 0, 0),
  23383. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_4", "Senary TDM4 Capture",
  23384. 0, 0, 0, 0),
  23385. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_5", "Senary TDM5 Playback",
  23386. 0, 0, 0, 0),
  23387. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_5", "Senary TDM5 Capture",
  23388. 0, 0, 0, 0),
  23389. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_6", "Senary TDM6 Playback",
  23390. 0, 0, 0, 0),
  23391. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_6", "Senary TDM6 Capture",
  23392. 0, 0, 0, 0),
  23393. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_7", "Senary TDM7 Playback",
  23394. 0, 0, 0, 0),
  23395. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_7", "Senary TDM7 Capture",
  23396. 0, 0, 0, 0),
  23397. SND_SOC_DAPM_AIF_OUT("PRI_META_MI2S_RX", "Primary META MI2S Playback",
  23398. 0, 0, 0, 0),
  23399. SND_SOC_DAPM_AIF_OUT("SEC_META_MI2S_RX", "Secondary META MI2S Playback",
  23400. 0, 0, 0, 0),
  23401. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_0", "WSA CDC DMA0 Playback",
  23402. 0, 0, 0, 0),
  23403. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_0", "WSA CDC DMA0 Capture",
  23404. 0, 0, 0, 0),
  23405. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_1", "WSA CDC DMA1 Playback",
  23406. 0, 0, 0, 0),
  23407. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_1", "WSA CDC DMA1 Capture",
  23408. 0, 0, 0, 0),
  23409. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_2", "WSA CDC DMA2 Capture",
  23410. 0, 0, 0, 0),
  23411. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_0", "VA CDC DMA0 Capture",
  23412. 0, 0, 0, 0),
  23413. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_1", "VA CDC DMA1 Capture",
  23414. 0, 0, 0, 0),
  23415. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_2", "VA CDC DMA2 Capture",
  23416. 0, 0, 0, 0),
  23417. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_0", "RX CDC DMA0 Playback",
  23418. 0, 0, 0, 0),
  23419. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_0", "TX CDC DMA0 Capture",
  23420. 0, 0, 0, 0),
  23421. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_1", "RX CDC DMA1 Playback",
  23422. 0, 0, 0, 0),
  23423. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_1", "TX CDC DMA1 Capture",
  23424. 0, 0, 0, 0),
  23425. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_2", "RX CDC DMA2 Playback",
  23426. 0, 0, 0, 0),
  23427. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_2", "TX CDC DMA2 Capture",
  23428. 0, 0, 0, 0),
  23429. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_3", "RX CDC DMA3 Playback",
  23430. 0, 0, 0, 0),
  23431. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_3", "TX CDC DMA3 Capture",
  23432. 0, 0, 0, 0),
  23433. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_4", "RX CDC DMA4 Playback",
  23434. 0, 0, 0, 0),
  23435. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_4", "TX CDC DMA4 Capture",
  23436. 0, 0, 0, 0),
  23437. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_5", "RX CDC DMA5 Playback",
  23438. 0, 0, 0, 0),
  23439. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_5", "TX CDC DMA5 Capture",
  23440. 0, 0, 0, 0),
  23441. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_6", "RX CDC DMA6 Playback",
  23442. 0, 0, 0, 0),
  23443. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_7", "RX CDC DMA7 Playback",
  23444. 0, 0, 0, 0),
  23445. /* incall */
  23446. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  23447. 0, 0, 0, 0),
  23448. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  23449. 0, 0, 0, 0),
  23450. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  23451. 0, 0, 0, 0),
  23452. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  23453. 0, 0, 0, 0),
  23454. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  23455. 0, 0, 0, 0),
  23456. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  23457. 0, 0, 0, 0),
  23458. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  23459. 0, 0, 0, 0),
  23460. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  23461. 0, 0, 0, 0),
  23462. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  23463. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  23464. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  23465. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  23466. 0, 0, 0, 0),
  23467. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  23468. 0, 0, 0, 0),
  23469. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  23470. 0, 0, 0, 0),
  23471. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  23472. 0, 0, 0, 0),
  23473. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  23474. 0, 0, 0, 0),
  23475. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  23476. 0, 0, 0, 0),
  23477. SND_SOC_DAPM_AIF_OUT("QUIN_AUX_PCM_RX", "Quin AUX PCM Playback",
  23478. 0, 0, 0, 0),
  23479. SND_SOC_DAPM_AIF_IN("QUIN_AUX_PCM_TX", "Quin AUX PCM Capture",
  23480. 0, 0, 0, 0),
  23481. SND_SOC_DAPM_AIF_OUT("SEN_AUX_PCM_RX", "Sen AUX PCM Playback",
  23482. 0, 0, 0, 0),
  23483. SND_SOC_DAPM_AIF_IN("SEN_AUX_PCM_TX", "Sen AUX PCM Capture",
  23484. 0, 0, 0, 0),
  23485. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  23486. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  23487. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  23488. 0, 0, 0, 0),
  23489. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  23490. 0, 0, 0, 0),
  23491. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  23492. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  23493. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  23494. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  23495. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  23496. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  23497. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  23498. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  23499. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  23500. /* In- call recording */
  23501. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  23502. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  23503. SND_SOC_DAPM_AIF_IN("AFE_LOOPBACK_TX", "AFE Loopback Capture",
  23504. 0, 0, 0, 0),
  23505. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  23506. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  23507. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  23508. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  23509. SND_SOC_DAPM_AIF_OUT("SLIMBUS_9_RX", "Slimbus9 Playback", 0, 0, 0, 0),
  23510. SND_SOC_DAPM_AIF_IN("SLIMBUS_9_TX", "Slimbus9 Capture", 0, 0, 0, 0),
  23511. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  23512. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  23513. /* Switch Definitions */
  23514. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  23515. &slim_fm_switch_mixer_controls),
  23516. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  23517. &slim1_fm_switch_mixer_controls),
  23518. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  23519. &slim3_fm_switch_mixer_controls),
  23520. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  23521. &slim4_fm_switch_mixer_controls),
  23522. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  23523. &slim6_fm_switch_mixer_controls),
  23524. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23525. &pcm_rx_switch_mixer_controls),
  23526. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23527. &int0_mi2s_rx_switch_mixer_controls),
  23528. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23529. &int4_mi2s_rx_switch_mixer_controls),
  23530. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23531. &pri_mi2s_rx_switch_mixer_controls),
  23532. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23533. &sec_mi2s_rx_switch_mixer_controls),
  23534. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23535. &tert_mi2s_rx_switch_mixer_controls),
  23536. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23537. &quat_mi2s_rx_switch_mixer_controls),
  23538. SND_SOC_DAPM_SWITCH("QUIN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23539. &quin_mi2s_rx_switch_mixer_controls),
  23540. SND_SOC_DAPM_SWITCH("SCO_SLIM7_DL_HL", SND_SOC_NOPM, 0, 0,
  23541. &sco_slim7_switch_mixer_controls),
  23542. SND_SOC_DAPM_SWITCH("SEN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23543. &sen_mi2s_rx_switch_mixer_controls),
  23544. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  23545. &hfp_pri_aux_switch_mixer_controls),
  23546. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  23547. &hfp_aux_switch_mixer_controls),
  23548. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  23549. &hfp_int_switch_mixer_controls),
  23550. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  23551. &hfp_slim7_switch_mixer_controls),
  23552. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  23553. &usb_switch_mixer_controls),
  23554. SND_SOC_DAPM_SWITCH("A2DP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  23555. &a2dp_slim7_switch_mixer_controls),
  23556. SND_SOC_DAPM_SWITCH("WSA_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  23557. &cdc_dma_wsa_switch_mixer_controls),
  23558. SND_SOC_DAPM_SWITCH("RX_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  23559. &cdc_dma_rx_switch_mixer_controls),
  23560. SND_SOC_DAPM_SWITCH("RX_CDC_DMA_RX_1_DL_HL", SND_SOC_NOPM, 0, 0,
  23561. &cdc_dma_rx_1_switch_mixer_controls),
  23562. /* Mixer definitions */
  23563. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23564. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  23565. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23566. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  23567. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23568. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  23569. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23570. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  23571. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23572. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  23573. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23574. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  23575. SND_SOC_DAPM_MIXER("SLIMBUS_9_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23576. slimbus_9_rx_mixer_controls, ARRAY_SIZE(slimbus_9_rx_mixer_controls)),
  23577. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  23578. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  23579. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  23580. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  23581. SND_SOC_DAPM_MIXER("DISPLAY_PORT1 Mixer", SND_SOC_NOPM, 0, 0,
  23582. display_port1_mixer_controls, ARRAY_SIZE(display_port1_mixer_controls)),
  23583. SND_SOC_DAPM_MIXER("PRI_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23584. pri_spdif_rx_mixer_controls, ARRAY_SIZE(pri_spdif_rx_mixer_controls)),
  23585. SND_SOC_DAPM_MIXER("SEC_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23586. sec_spdif_rx_mixer_controls, ARRAY_SIZE(sec_spdif_rx_mixer_controls)),
  23587. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23588. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  23589. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23590. quaternary_mi2s_rx_mixer_controls,
  23591. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  23592. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23593. tertiary_mi2s_rx_mixer_controls,
  23594. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  23595. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23596. secondary_mi2s_rx_mixer_controls,
  23597. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  23598. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23599. secondary_mi2s_rx2_mixer_controls,
  23600. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  23601. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23602. primary_mi2s_rx_mixer_controls,
  23603. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  23604. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23605. int0_mi2s_rx_mixer_controls,
  23606. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  23607. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23608. int4_mi2s_rx_mixer_controls,
  23609. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  23610. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23611. quinary_mi2s_rx_mixer_controls,
  23612. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  23613. SND_SOC_DAPM_MIXER("SEN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23614. senary_mi2s_rx_mixer_controls,
  23615. ARRAY_SIZE(senary_mi2s_rx_mixer_controls)),
  23616. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23617. pri_tdm_rx_0_mixer_controls,
  23618. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  23619. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23620. pri_tdm_rx_1_mixer_controls,
  23621. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  23622. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23623. pri_tdm_rx_2_mixer_controls,
  23624. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  23625. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23626. pri_tdm_rx_3_mixer_controls,
  23627. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  23628. SND_SOC_DAPM_MIXER("PRI_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23629. pri_tdm_tx_0_mixer_controls,
  23630. ARRAY_SIZE(pri_tdm_tx_0_mixer_controls)),
  23631. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23632. sec_tdm_rx_0_mixer_controls,
  23633. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  23634. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23635. sec_tdm_rx_1_mixer_controls,
  23636. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  23637. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23638. sec_tdm_rx_2_mixer_controls,
  23639. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  23640. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23641. sec_tdm_rx_3_mixer_controls,
  23642. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  23643. SND_SOC_DAPM_MIXER("SEC_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23644. sec_tdm_tx_0_mixer_controls,
  23645. ARRAY_SIZE(sec_tdm_tx_0_mixer_controls)),
  23646. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23647. tert_tdm_rx_0_mixer_controls,
  23648. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  23649. SND_SOC_DAPM_MIXER("TERT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23650. tert_tdm_tx_0_mixer_controls,
  23651. ARRAY_SIZE(tert_tdm_tx_0_mixer_controls)),
  23652. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23653. tert_tdm_rx_1_mixer_controls,
  23654. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  23655. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23656. tert_tdm_rx_2_mixer_controls,
  23657. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  23658. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23659. tert_tdm_rx_3_mixer_controls,
  23660. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  23661. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23662. tert_tdm_rx_4_mixer_controls,
  23663. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  23664. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23665. quat_tdm_rx_0_mixer_controls,
  23666. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  23667. SND_SOC_DAPM_MIXER("QUAT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23668. quat_tdm_tx_0_mixer_controls,
  23669. ARRAY_SIZE(quat_tdm_tx_0_mixer_controls)),
  23670. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23671. quat_tdm_rx_1_mixer_controls,
  23672. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  23673. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23674. quat_tdm_rx_2_mixer_controls,
  23675. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  23676. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23677. quat_tdm_rx_3_mixer_controls,
  23678. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  23679. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23680. quin_tdm_rx_0_mixer_controls,
  23681. ARRAY_SIZE(quin_tdm_rx_0_mixer_controls)),
  23682. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23683. quin_tdm_tx_0_mixer_controls,
  23684. ARRAY_SIZE(quin_tdm_tx_0_mixer_controls)),
  23685. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23686. quin_tdm_rx_1_mixer_controls,
  23687. ARRAY_SIZE(quin_tdm_rx_1_mixer_controls)),
  23688. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23689. quin_tdm_tx_1_mixer_controls,
  23690. ARRAY_SIZE(quin_tdm_tx_1_mixer_controls)),
  23691. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23692. quin_tdm_rx_2_mixer_controls,
  23693. ARRAY_SIZE(quin_tdm_rx_2_mixer_controls)),
  23694. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23695. quin_tdm_tx_2_mixer_controls,
  23696. ARRAY_SIZE(quin_tdm_tx_2_mixer_controls)),
  23697. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23698. quin_tdm_rx_3_mixer_controls,
  23699. ARRAY_SIZE(quin_tdm_rx_3_mixer_controls)),
  23700. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23701. quin_tdm_tx_3_mixer_controls,
  23702. ARRAY_SIZE(quin_tdm_tx_3_mixer_controls)),
  23703. SND_SOC_DAPM_MIXER("SEN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23704. sen_tdm_tx_0_mixer_controls,
  23705. ARRAY_SIZE(sen_tdm_tx_0_mixer_controls)),
  23706. SND_SOC_DAPM_MIXER("SEN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23707. sen_tdm_rx_0_mixer_controls,
  23708. ARRAY_SIZE(sen_tdm_rx_0_mixer_controls)),
  23709. SND_SOC_DAPM_MIXER("SEN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23710. sen_tdm_rx_1_mixer_controls,
  23711. ARRAY_SIZE(sen_tdm_rx_1_mixer_controls)),
  23712. SND_SOC_DAPM_MIXER("SEN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23713. sen_tdm_rx_2_mixer_controls,
  23714. ARRAY_SIZE(sen_tdm_rx_2_mixer_controls)),
  23715. SND_SOC_DAPM_MIXER("SEN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23716. sen_tdm_rx_3_mixer_controls,
  23717. ARRAY_SIZE(sen_tdm_rx_3_mixer_controls)),
  23718. SND_SOC_DAPM_MIXER("PRI_META_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23719. pri_meta_mi2s_rx_mixer_controls,
  23720. ARRAY_SIZE(pri_meta_mi2s_rx_mixer_controls)),
  23721. SND_SOC_DAPM_MIXER("SEC_META_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23722. sec_meta_mi2s_rx_mixer_controls,
  23723. ARRAY_SIZE(sec_meta_mi2s_rx_mixer_controls)),
  23724. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23725. wsa_cdc_dma_rx_0_mixer_controls,
  23726. ARRAY_SIZE(wsa_cdc_dma_rx_0_mixer_controls)),
  23727. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23728. wsa_cdc_dma_rx_1_mixer_controls,
  23729. ARRAY_SIZE(wsa_cdc_dma_rx_1_mixer_controls)),
  23730. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23731. rx_cdc_dma_rx_0_mixer_controls,
  23732. ARRAY_SIZE(rx_cdc_dma_rx_0_mixer_controls)),
  23733. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23734. rx_cdc_dma_rx_1_mixer_controls,
  23735. ARRAY_SIZE(rx_cdc_dma_rx_1_mixer_controls)),
  23736. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23737. rx_cdc_dma_rx_2_mixer_controls,
  23738. ARRAY_SIZE(rx_cdc_dma_rx_2_mixer_controls)),
  23739. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23740. rx_cdc_dma_rx_3_mixer_controls,
  23741. ARRAY_SIZE(rx_cdc_dma_rx_3_mixer_controls)),
  23742. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23743. rx_cdc_dma_rx_4_mixer_controls,
  23744. ARRAY_SIZE(rx_cdc_dma_rx_4_mixer_controls)),
  23745. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_5 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23746. rx_cdc_dma_rx_5_mixer_controls,
  23747. ARRAY_SIZE(rx_cdc_dma_rx_5_mixer_controls)),
  23748. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_6 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23749. rx_cdc_dma_rx_6_mixer_controls,
  23750. ARRAY_SIZE(rx_cdc_dma_rx_6_mixer_controls)),
  23751. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_7 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23752. rx_cdc_dma_rx_7_mixer_controls,
  23753. ARRAY_SIZE(rx_cdc_dma_rx_7_mixer_controls)),
  23754. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  23755. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  23756. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  23757. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  23758. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  23759. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  23760. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  23761. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  23762. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  23763. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  23764. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  23765. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  23766. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  23767. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  23768. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  23769. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  23770. SND_SOC_DAPM_MIXER("MultiMedia10 Mixer", SND_SOC_NOPM, 0, 0,
  23771. mmul10_mixer_controls, ARRAY_SIZE(mmul10_mixer_controls)),
  23772. SND_SOC_DAPM_MIXER("MultiMedia16 Mixer", SND_SOC_NOPM, 0, 0,
  23773. mmul16_mixer_controls, ARRAY_SIZE(mmul16_mixer_controls)),
  23774. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  23775. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  23776. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  23777. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  23778. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  23779. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  23780. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  23781. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  23782. SND_SOC_DAPM_MIXER("MultiMedia21 Mixer", SND_SOC_NOPM, 0, 0,
  23783. mmul21_mixer_controls, ARRAY_SIZE(mmul21_mixer_controls)),
  23784. SND_SOC_DAPM_MIXER("MultiMedia22 Mixer", SND_SOC_NOPM, 0, 0,
  23785. mmul22_mixer_controls, ARRAY_SIZE(mmul22_mixer_controls)),
  23786. SND_SOC_DAPM_MIXER("MultiMedia23 Mixer", SND_SOC_NOPM, 0, 0,
  23787. mmul23_mixer_controls, ARRAY_SIZE(mmul23_mixer_controls)),
  23788. SND_SOC_DAPM_MIXER("MultiMedia24 Mixer", SND_SOC_NOPM, 0, 0,
  23789. mmul24_mixer_controls, ARRAY_SIZE(mmul24_mixer_controls)),
  23790. SND_SOC_DAPM_MIXER("MultiMedia25 Mixer", SND_SOC_NOPM, 0, 0,
  23791. mmul25_mixer_controls, ARRAY_SIZE(mmul25_mixer_controls)),
  23792. SND_SOC_DAPM_MIXER("MultiMedia27 Mixer", SND_SOC_NOPM, 0, 0,
  23793. mmul27_mixer_controls, ARRAY_SIZE(mmul27_mixer_controls)),
  23794. SND_SOC_DAPM_MIXER("MultiMedia28 Mixer", SND_SOC_NOPM, 0, 0,
  23795. mmul28_mixer_controls, ARRAY_SIZE(mmul28_mixer_controls)),
  23796. SND_SOC_DAPM_MIXER("MultiMedia29 Mixer", SND_SOC_NOPM, 0, 0,
  23797. mmul29_mixer_controls, ARRAY_SIZE(mmul29_mixer_controls)),
  23798. SND_SOC_DAPM_MIXER("MultiMedia30 Mixer", SND_SOC_NOPM, 0, 0,
  23799. mmul30_mixer_controls, ARRAY_SIZE(mmul30_mixer_controls)),
  23800. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23801. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  23802. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23803. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  23804. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23805. tert_auxpcm_rx_mixer_controls,
  23806. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  23807. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23808. quat_auxpcm_rx_mixer_controls,
  23809. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  23810. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23811. quin_auxpcm_rx_mixer_controls,
  23812. ARRAY_SIZE(quin_auxpcm_rx_mixer_controls)),
  23813. SND_SOC_DAPM_MIXER("SEN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23814. sen_auxpcm_rx_mixer_controls,
  23815. ARRAY_SIZE(sen_auxpcm_rx_mixer_controls)),
  23816. /* incall */
  23817. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  23818. incall_music_delivery_mixer_controls,
  23819. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  23820. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23821. incall_music2_delivery_mixer_controls,
  23822. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  23823. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23824. slimbus_4_rx_mixer_controls,
  23825. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  23826. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23827. slimbus_6_rx_mixer_controls,
  23828. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  23829. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23830. usb_audio_rx_mixer_controls,
  23831. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  23832. /* Voice Mixer */
  23833. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  23834. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  23835. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  23836. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  23837. SND_SOC_NOPM, 0, 0,
  23838. sec_i2s_rx_voice_mixer_controls,
  23839. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  23840. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  23841. SND_SOC_NOPM, 0, 0,
  23842. sec_mi2s_rx_voice_mixer_controls,
  23843. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  23844. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  23845. SND_SOC_NOPM, 0, 0,
  23846. slimbus_rx_voice_mixer_controls,
  23847. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  23848. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  23849. SND_SOC_NOPM, 0, 0,
  23850. bt_sco_rx_voice_mixer_controls,
  23851. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  23852. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  23853. SND_SOC_NOPM, 0, 0,
  23854. afe_pcm_rx_voice_mixer_controls,
  23855. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  23856. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  23857. SND_SOC_NOPM, 0, 0,
  23858. aux_pcm_rx_voice_mixer_controls,
  23859. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  23860. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  23861. SND_SOC_NOPM, 0, 0,
  23862. sec_aux_pcm_rx_voice_mixer_controls,
  23863. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  23864. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  23865. SND_SOC_NOPM, 0, 0,
  23866. tert_aux_pcm_rx_voice_mixer_controls,
  23867. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  23868. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  23869. SND_SOC_NOPM, 0, 0,
  23870. quat_aux_pcm_rx_voice_mixer_controls,
  23871. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  23872. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX_Voice Mixer",
  23873. SND_SOC_NOPM, 0, 0,
  23874. quin_aux_pcm_rx_voice_mixer_controls,
  23875. ARRAY_SIZE(quin_aux_pcm_rx_voice_mixer_controls)),
  23876. SND_SOC_DAPM_MIXER("SEN_AUX_PCM_RX_Voice Mixer",
  23877. SND_SOC_NOPM, 0, 0,
  23878. sen_aux_pcm_rx_voice_mixer_controls,
  23879. ARRAY_SIZE(sen_aux_pcm_rx_voice_mixer_controls)),
  23880. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  23881. SND_SOC_NOPM, 0, 0,
  23882. hdmi_rx_voice_mixer_controls,
  23883. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  23884. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  23885. SND_SOC_NOPM, 0, 0,
  23886. mi2s_rx_voice_mixer_controls,
  23887. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  23888. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  23889. SND_SOC_NOPM, 0, 0,
  23890. pri_mi2s_rx_voice_mixer_controls,
  23891. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  23892. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  23893. SND_SOC_NOPM, 0, 0,
  23894. int0_mi2s_rx_voice_mixer_controls,
  23895. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  23896. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  23897. SND_SOC_NOPM, 0, 0,
  23898. int4_mi2s_rx_voice_mixer_controls,
  23899. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  23900. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  23901. SND_SOC_NOPM, 0, 0,
  23902. tert_mi2s_rx_voice_mixer_controls,
  23903. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  23904. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  23905. SND_SOC_NOPM, 0, 0,
  23906. quat_mi2s_rx_voice_mixer_controls,
  23907. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  23908. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  23909. SND_SOC_NOPM, 0, 0,
  23910. quin_mi2s_rx_voice_mixer_controls,
  23911. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  23912. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0_Voice Mixer",
  23913. SND_SOC_NOPM, 0, 0,
  23914. pri_tdm_rx_0_voice_mixer_controls,
  23915. ARRAY_SIZE(pri_tdm_rx_0_voice_mixer_controls)),
  23916. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1_Voice Mixer",
  23917. SND_SOC_NOPM, 0, 0,
  23918. pri_tdm_rx_1_voice_mixer_controls,
  23919. ARRAY_SIZE(pri_tdm_rx_1_voice_mixer_controls)),
  23920. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2_Voice Mixer",
  23921. SND_SOC_NOPM, 0, 0,
  23922. pri_tdm_rx_2_voice_mixer_controls,
  23923. ARRAY_SIZE(pri_tdm_rx_2_voice_mixer_controls)),
  23924. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3_Voice Mixer",
  23925. SND_SOC_NOPM, 0, 0,
  23926. pri_tdm_rx_3_voice_mixer_controls,
  23927. ARRAY_SIZE(pri_tdm_rx_3_voice_mixer_controls)),
  23928. SND_SOC_DAPM_MIXER("SEN_MI2S_RX_Voice Mixer",
  23929. SND_SOC_NOPM, 0, 0,
  23930. sen_mi2s_rx_voice_mixer_controls,
  23931. ARRAY_SIZE(sen_mi2s_rx_voice_mixer_controls)),
  23932. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  23933. SND_SOC_NOPM, 0, 0,
  23934. quat_tdm_rx_2_voice_mixer_controls,
  23935. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  23936. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2_Voice Mixer",
  23937. SND_SOC_NOPM, 0, 0,
  23938. quin_tdm_rx_2_voice_mixer_controls,
  23939. ARRAY_SIZE(quin_tdm_rx_2_voice_mixer_controls)),
  23940. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0_Voice Mixer",
  23941. SND_SOC_NOPM, 0, 0,
  23942. wsa_cdc_dma_rx_0_voice_mixer_controls,
  23943. ARRAY_SIZE(wsa_cdc_dma_rx_0_voice_mixer_controls)),
  23944. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0_Voice Mixer",
  23945. SND_SOC_NOPM, 0, 0,
  23946. rx_cdc_dma_rx_0_voice_mixer_controls,
  23947. ARRAY_SIZE(rx_cdc_dma_rx_0_voice_mixer_controls)),
  23948. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1_Voice Mixer",
  23949. SND_SOC_NOPM, 0, 0,
  23950. rx_cdc_dma_rx_1_voice_mixer_controls,
  23951. ARRAY_SIZE(rx_cdc_dma_rx_1_voice_mixer_controls)),
  23952. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  23953. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  23954. ARRAY_SIZE(tx_voip_mixer_controls)),
  23955. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  23956. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  23957. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  23958. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  23959. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  23960. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  23961. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23962. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  23963. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23964. int_bt_a2dp_rx_mixer_controls,
  23965. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  23966. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23967. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  23968. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23969. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  23970. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  23971. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  23972. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  23973. tx_voice2_stub_mixer_controls,
  23974. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  23975. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  23976. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  23977. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  23978. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  23979. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  23980. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  23981. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  23982. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  23983. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  23984. SND_SOC_NOPM, 0, 0,
  23985. slimbus_6_rx_voice_mixer_controls,
  23986. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  23987. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  23988. slimbus_7_rx_voice_mixer_controls,
  23989. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  23990. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  23991. slimbus_8_rx_voice_mixer_controls,
  23992. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  23993. /* port mixer */
  23994. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  23995. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  23996. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  23997. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  23998. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  23999. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  24000. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  24001. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  24002. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  24003. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  24004. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  24005. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  24006. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  24007. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  24008. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  24009. SND_SOC_DAPM_MIXER("QUIN_AUXPCM_RX Port Mixer",
  24010. SND_SOC_NOPM, 0, 0, quin_auxpcm_rx_port_mixer_controls,
  24011. ARRAY_SIZE(quin_auxpcm_rx_port_mixer_controls)),
  24012. SND_SOC_DAPM_MIXER("SEN_AUXPCM_RX Port Mixer",
  24013. SND_SOC_NOPM, 0, 0, sen_auxpcm_rx_port_mixer_controls,
  24014. ARRAY_SIZE(sen_auxpcm_rx_port_mixer_controls)),
  24015. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24016. sbus_1_rx_port_mixer_controls,
  24017. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  24018. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24019. bt_sco_rx_port_mixer_controls,
  24020. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  24021. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  24022. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  24023. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  24024. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  24025. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  24026. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  24027. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  24028. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  24029. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  24030. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1 Port Mixer",
  24031. SND_SOC_NOPM, 0, 0, display_port_rx1_port_mixer_controls,
  24032. ARRAY_SIZE(display_port_rx1_port_mixer_controls)),
  24033. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  24034. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  24035. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  24036. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  24037. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  24038. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  24039. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  24040. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  24041. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  24042. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24043. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  24044. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24045. primary_mi2s_rx_port_mixer_controls,
  24046. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  24047. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24048. sec_mi2s_rx_port_mixer_controls,
  24049. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  24050. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24051. tert_mi2s_rx_port_mixer_controls,
  24052. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  24053. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24054. quat_mi2s_rx_port_mixer_controls,
  24055. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  24056. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24057. quin_mi2s_rx_port_mixer_controls,
  24058. ARRAY_SIZE(quin_mi2s_rx_port_mixer_controls)),
  24059. SND_SOC_DAPM_MIXER("SEN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24060. sen_mi2s_rx_port_mixer_controls,
  24061. ARRAY_SIZE(sen_mi2s_rx_port_mixer_controls)),
  24062. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24063. pri_tdm_rx_0_port_mixer_controls,
  24064. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  24065. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24066. pri_tdm_rx_1_port_mixer_controls,
  24067. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  24068. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24069. pri_tdm_rx_2_port_mixer_controls,
  24070. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  24071. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24072. pri_tdm_rx_3_port_mixer_controls,
  24073. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  24074. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24075. sec_tdm_rx_0_port_mixer_controls,
  24076. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  24077. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24078. sec_tdm_rx_1_port_mixer_controls,
  24079. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  24080. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24081. sec_tdm_rx_2_port_mixer_controls,
  24082. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  24083. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24084. sec_tdm_rx_3_port_mixer_controls,
  24085. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  24086. SND_SOC_DAPM_MIXER("SEC_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  24087. sec_tdm_rx_7_port_mixer_controls,
  24088. ARRAY_SIZE(sec_tdm_rx_7_port_mixer_controls)),
  24089. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24090. tert_tdm_rx_0_port_mixer_controls,
  24091. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  24092. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24093. tert_tdm_rx_1_port_mixer_controls,
  24094. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  24095. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24096. tert_tdm_rx_2_port_mixer_controls,
  24097. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  24098. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24099. tert_tdm_rx_3_port_mixer_controls,
  24100. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  24101. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24102. quat_tdm_rx_0_port_mixer_controls,
  24103. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  24104. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24105. quat_tdm_rx_1_port_mixer_controls,
  24106. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  24107. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24108. quat_tdm_rx_2_port_mixer_controls,
  24109. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  24110. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24111. quat_tdm_rx_3_port_mixer_controls,
  24112. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  24113. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  24114. quat_tdm_rx_7_port_mixer_controls,
  24115. ARRAY_SIZE(quat_tdm_rx_7_port_mixer_controls)),
  24116. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24117. quin_tdm_rx_0_port_mixer_controls,
  24118. ARRAY_SIZE(quin_tdm_rx_0_port_mixer_controls)),
  24119. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24120. quin_tdm_rx_1_port_mixer_controls,
  24121. ARRAY_SIZE(quin_tdm_rx_1_port_mixer_controls)),
  24122. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24123. quin_tdm_rx_2_port_mixer_controls,
  24124. ARRAY_SIZE(quin_tdm_rx_2_port_mixer_controls)),
  24125. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24126. quin_tdm_rx_3_port_mixer_controls,
  24127. ARRAY_SIZE(quin_tdm_rx_3_port_mixer_controls)),
  24128. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  24129. quin_tdm_rx_7_port_mixer_controls,
  24130. ARRAY_SIZE(quin_tdm_rx_7_port_mixer_controls)),
  24131. SND_SOC_DAPM_MIXER("SEN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24132. sen_tdm_rx_0_port_mixer_controls,
  24133. ARRAY_SIZE(sen_tdm_rx_0_port_mixer_controls)),
  24134. SND_SOC_DAPM_MIXER("SEN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24135. sen_tdm_rx_1_port_mixer_controls,
  24136. ARRAY_SIZE(sen_tdm_rx_1_port_mixer_controls)),
  24137. SND_SOC_DAPM_MIXER("SEN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24138. sen_tdm_rx_2_port_mixer_controls,
  24139. ARRAY_SIZE(sen_tdm_rx_2_port_mixer_controls)),
  24140. SND_SOC_DAPM_MIXER("SEN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24141. sen_tdm_rx_3_port_mixer_controls,
  24142. ARRAY_SIZE(sen_tdm_rx_3_port_mixer_controls)),
  24143. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24144. int0_mi2s_rx_port_mixer_controls,
  24145. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  24146. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24147. int4_mi2s_rx_port_mixer_controls,
  24148. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  24149. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24150. wsa_cdc_dma_rx_0_port_mixer_controls,
  24151. ARRAY_SIZE(wsa_cdc_dma_rx_0_port_mixer_controls)),
  24152. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24153. rx_cdc_dma_rx_0_port_mixer_controls,
  24154. ARRAY_SIZE(rx_cdc_dma_rx_0_port_mixer_controls)),
  24155. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24156. rx_cdc_dma_rx_1_port_mixer_controls,
  24157. ARRAY_SIZE(rx_cdc_dma_rx_1_port_mixer_controls)),
  24158. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  24159. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  24160. ARRAY_SIZE(tx_qchat_mixer_controls)),
  24161. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  24162. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  24163. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  24164. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  24165. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  24166. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  24167. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX_Voice Mixer",
  24168. SND_SOC_NOPM, 0, 0, display_port_rx_voice_mixer_controls,
  24169. ARRAY_SIZE(display_port_rx_voice_mixer_controls)),
  24170. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1_Voice Mixer",
  24171. SND_SOC_NOPM, 0, 0, display_port_rx1_voice_mixer_controls,
  24172. ARRAY_SIZE(display_port_rx1_voice_mixer_controls)),
  24173. /* lsm mixer definitions */
  24174. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  24175. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  24176. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  24177. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  24178. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  24179. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  24180. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  24181. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  24182. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  24183. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  24184. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  24185. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  24186. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  24187. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  24188. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  24189. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  24190. /* Virtual Pins to force backends ON atm */
  24191. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  24192. SND_SOC_DAPM_INPUT("BE_IN"),
  24193. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  24194. &slim0_rx_vi_fb_lch_mux),
  24195. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  24196. &slim0_rx_vi_fb_rch_mux),
  24197. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  24198. &wsa_rx_0_vi_fb_lch_mux),
  24199. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  24200. &wsa_rx_0_vi_fb_rch_mux),
  24201. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  24202. &mi2s_rx_vi_fb_mux),
  24203. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  24204. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  24205. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  24206. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  24207. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  24208. &voc_ext_ec_mux),
  24209. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  24210. &ext_ec_ref_mux_ul1),
  24211. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  24212. &ext_ec_ref_mux_ul2),
  24213. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  24214. &ext_ec_ref_mux_ul3),
  24215. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  24216. &ext_ec_ref_mux_ul4),
  24217. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  24218. &ext_ec_ref_mux_ul5),
  24219. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  24220. &ext_ec_ref_mux_ul6),
  24221. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  24222. &ext_ec_ref_mux_ul8),
  24223. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  24224. &ext_ec_ref_mux_ul9),
  24225. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL10 MUX", SND_SOC_NOPM, 0, 0,
  24226. &ext_ec_ref_mux_ul10),
  24227. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL16 MUX", SND_SOC_NOPM, 0, 0,
  24228. &ext_ec_ref_mux_ul16),
  24229. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  24230. &ext_ec_ref_mux_ul17),
  24231. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  24232. &ext_ec_ref_mux_ul18),
  24233. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  24234. &ext_ec_ref_mux_ul19),
  24235. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL28 MUX", SND_SOC_NOPM, 0, 0,
  24236. &ext_ec_ref_mux_ul28),
  24237. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL29 MUX", SND_SOC_NOPM, 0, 0,
  24238. &ext_ec_ref_mux_ul29),
  24239. };
  24240. static const struct snd_soc_dapm_route intercon[] = {
  24241. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24242. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24243. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24244. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24245. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24246. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24247. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24248. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24249. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24250. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24251. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24252. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24253. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24254. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24255. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24256. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24257. {"PRI_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24258. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  24259. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24260. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24261. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24262. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24263. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24264. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24265. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24266. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24267. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24268. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24269. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24270. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24271. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24272. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24273. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24274. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24275. {"SEC_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24276. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  24277. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24278. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24279. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24280. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24281. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24282. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24283. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24284. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24285. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24286. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24287. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24288. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24289. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24290. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24291. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24292. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24293. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24294. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  24295. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24296. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24297. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24298. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24299. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24300. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24301. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24302. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24303. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24304. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24305. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24306. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24307. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24308. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24309. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24310. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24311. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24312. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  24313. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24314. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24315. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24316. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24317. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24318. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24319. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24320. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24321. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24322. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24323. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24324. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24325. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24326. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24327. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24328. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24329. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24330. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  24331. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24332. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24333. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24334. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24335. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24336. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24337. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24338. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24339. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24340. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24341. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24342. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24343. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24344. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24345. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24346. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24347. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24348. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Audio Mixer"},
  24349. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24350. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24351. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24352. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24353. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24354. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24355. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24356. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24357. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24358. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24359. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24360. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24361. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24362. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24363. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24364. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24365. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24366. {"WSA_CDC_DMA_RX_1", NULL, "WSA_CDC_DMA_RX_1 Audio Mixer"},
  24367. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24368. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24369. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24370. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24371. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24372. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24373. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24374. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24375. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24376. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24377. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24378. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24379. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24380. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24381. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24382. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24383. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24384. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Audio Mixer"},
  24385. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24386. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24387. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24388. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24389. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24390. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24391. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24392. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24393. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24394. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24395. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24396. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24397. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24398. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24399. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24400. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24401. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24402. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1 Audio Mixer"},
  24403. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24404. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24405. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24406. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24407. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24408. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24409. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24410. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24411. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24412. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24413. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24414. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24415. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24416. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24417. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24418. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24419. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24420. {"RX_CDC_DMA_RX_2", NULL, "RX_CDC_DMA_RX_2 Audio Mixer"},
  24421. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24422. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24423. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24424. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24425. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24426. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24427. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24428. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24429. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24430. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24431. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24432. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24433. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24434. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24435. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24436. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24437. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24438. {"RX_CDC_DMA_RX_3", NULL, "RX_CDC_DMA_RX_3 Audio Mixer"},
  24439. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24440. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24441. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24442. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24443. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24444. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24445. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24446. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24447. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24448. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24449. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24450. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24451. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24452. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24453. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24454. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24455. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24456. {"RX_CDC_DMA_RX_4", NULL, "RX_CDC_DMA_RX_4 Audio Mixer"},
  24457. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24458. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24459. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24460. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24461. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24462. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24463. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24464. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24465. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24466. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24467. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24468. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24469. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24470. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24471. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24472. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24473. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24474. {"RX_CDC_DMA_RX_5", NULL, "RX_CDC_DMA_RX_5 Audio Mixer"},
  24475. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24476. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24477. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24478. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24479. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24480. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24481. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24482. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24483. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24484. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24485. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24486. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24487. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24488. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24489. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24490. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24491. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24492. {"RX_CDC_DMA_RX_6", NULL, "RX_CDC_DMA_RX_6 Audio Mixer"},
  24493. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24494. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24495. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24496. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24497. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24498. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24499. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24500. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24501. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24502. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24503. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24504. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24505. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24506. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24507. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24508. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24509. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24510. {"RX_CDC_DMA_RX_7", NULL, "RX_CDC_DMA_RX_7 Audio Mixer"},
  24511. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  24512. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  24513. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  24514. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  24515. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  24516. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  24517. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  24518. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  24519. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  24520. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  24521. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  24522. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  24523. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  24524. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  24525. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  24526. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  24527. {"HDMI Mixer", "MultiMedia26", "MM_DL26"},
  24528. {"HDMI", NULL, "HDMI Mixer"},
  24529. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  24530. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  24531. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  24532. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  24533. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  24534. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  24535. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  24536. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  24537. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  24538. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  24539. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  24540. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  24541. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  24542. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  24543. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  24544. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  24545. {"DISPLAY_PORT Mixer", "MultiMedia26", "MM_DL26"},
  24546. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  24547. {"DISPLAY_PORT1 Mixer", "MultiMedia1", "MM_DL1"},
  24548. {"DISPLAY_PORT1 Mixer", "MultiMedia2", "MM_DL2"},
  24549. {"DISPLAY_PORT1 Mixer", "MultiMedia3", "MM_DL3"},
  24550. {"DISPLAY_PORT1 Mixer", "MultiMedia4", "MM_DL4"},
  24551. {"DISPLAY_PORT1 Mixer", "MultiMedia5", "MM_DL5"},
  24552. {"DISPLAY_PORT1 Mixer", "MultiMedia6", "MM_DL6"},
  24553. {"DISPLAY_PORT1 Mixer", "MultiMedia7", "MM_DL7"},
  24554. {"DISPLAY_PORT1 Mixer", "MultiMedia8", "MM_DL8"},
  24555. {"DISPLAY_PORT1 Mixer", "MultiMedia9", "MM_DL9"},
  24556. {"DISPLAY_PORT1 Mixer", "MultiMedia10", "MM_DL10"},
  24557. {"DISPLAY_PORT1 Mixer", "MultiMedia11", "MM_DL11"},
  24558. {"DISPLAY_PORT1 Mixer", "MultiMedia12", "MM_DL12"},
  24559. {"DISPLAY_PORT1 Mixer", "MultiMedia13", "MM_DL13"},
  24560. {"DISPLAY_PORT1 Mixer", "MultiMedia14", "MM_DL14"},
  24561. {"DISPLAY_PORT1 Mixer", "MultiMedia15", "MM_DL15"},
  24562. {"DISPLAY_PORT1 Mixer", "MultiMedia16", "MM_DL16"},
  24563. {"DISPLAY_PORT1 Mixer", "MultiMedia26", "MM_DL26"},
  24564. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT1 Mixer"},
  24565. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24566. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24567. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24568. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24569. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24570. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24571. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24572. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24573. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24574. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24575. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24576. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24577. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24578. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24579. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24580. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24581. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24582. {"PRI_SPDIF_RX", NULL, "PRI_SPDIF_RX Audio Mixer"},
  24583. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24584. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24585. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24586. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24587. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24588. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24589. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24590. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24591. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24592. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24593. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24594. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24595. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24596. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24597. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24598. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24599. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24600. {"SEC_SPDIF_RX", NULL, "SEC_SPDIF_RX Audio Mixer"},
  24601. /* incall */
  24602. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  24603. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  24604. {"Incall_Music Audio Mixer", "MultiMedia4", "MM_DL4"},
  24605. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  24606. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  24607. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  24608. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24609. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24610. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24611. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24612. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  24613. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24614. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24615. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24616. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24617. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  24618. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24619. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24620. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24621. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24622. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24623. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24624. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24625. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24626. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24627. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24628. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24629. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24630. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24631. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24632. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24633. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24634. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24635. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  24636. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24637. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24638. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24639. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24640. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24641. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24642. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24643. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24644. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24645. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24646. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24647. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24648. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24649. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24650. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24651. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24652. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24653. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  24654. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24655. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24656. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24657. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24658. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24659. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24660. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24661. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24662. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24663. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24664. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24665. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24666. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24667. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24668. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24669. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24670. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24671. {"SLIMBUS_9_RX", NULL, "SLIMBUS_9_RX Audio Mixer"},
  24672. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24673. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24674. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24675. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24676. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24677. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24678. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24679. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24680. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24681. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24682. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24683. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24684. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24685. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24686. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24687. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24688. {"USB_AUDIO_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24689. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  24690. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  24691. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  24692. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  24693. {"MultiMedia9 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  24694. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  24695. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  24696. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  24697. {"MultiMedia9 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  24698. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  24699. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  24700. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24701. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  24702. {"MultiMedia1 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  24703. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  24704. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24705. {"MultiMedia8 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  24706. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24707. {"MultiMedia4 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24708. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24709. {"MultiMedia17 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24710. {"MultiMedia17 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24711. {"MultiMedia17 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  24712. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24713. {"MultiMedia18 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24714. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24715. {"MultiMedia19 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24716. {"MultiMedia28 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24717. {"MultiMedia28 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24718. {"MultiMedia29 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24719. {"MultiMedia29 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24720. {"MultiMedia30 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24721. {"MultiMedia30 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24722. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24723. {"MultiMedia8 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24724. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24725. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24726. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24727. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24728. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24729. {"MultiMedia28 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24730. {"MultiMedia29 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24731. {"MultiMedia30 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24732. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24733. {"MultiMedia18 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24734. {"MultiMedia19 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24735. {"MultiMedia28 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24736. {"MultiMedia29 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24737. {"MultiMedia30 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24738. {"MultiMedia17 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24739. {"MultiMedia18 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24740. {"MultiMedia19 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24741. {"MultiMedia28 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24742. {"MultiMedia29 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24743. {"MultiMedia30 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24744. {"MultiMedia17 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24745. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24746. {"MultiMedia19 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24747. {"MultiMedia28 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24748. {"MultiMedia29 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24749. {"MultiMedia30 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24750. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24751. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24752. {"MultiMedia3 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24753. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24754. {"MultiMedia5 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24755. {"MultiMedia10 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24756. {"MultiMedia10 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24757. {"MultiMedia16 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24758. {"MultiMedia16 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24759. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24760. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  24761. {"MultiMedia5 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  24762. {"MultiMedia10 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24763. {"MultiMedia10 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  24764. {"MultiMedia18 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24765. {"MultiMedia19 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24766. {"MultiMedia28 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24767. {"MultiMedia29 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24768. {"MultiMedia30 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24769. {"MultiMedia18 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24770. {"MultiMedia19 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24771. {"MultiMedia28 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24772. {"MultiMedia29 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24773. {"MultiMedia30 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24774. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24775. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24776. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24777. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24778. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24779. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24780. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24781. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24782. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24783. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24784. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24785. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24786. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24787. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24788. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24789. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24790. {"MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24791. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  24792. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24793. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24794. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24795. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24796. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24797. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24798. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24799. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24800. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24801. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24802. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24803. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24804. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24805. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24806. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24807. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  24808. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24809. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  24810. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24811. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24812. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24813. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24814. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24815. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24816. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24817. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24818. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24819. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24820. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24821. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24822. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24823. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24824. {"TERT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24825. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  24826. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24827. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24828. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24829. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24830. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24831. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24832. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24833. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24834. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24835. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24836. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24837. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24838. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24839. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24840. {"SEC_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24841. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  24842. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24843. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  24844. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24845. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24846. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24847. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24848. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24849. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24850. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24851. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24852. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24853. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24854. {"PRI_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24855. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24856. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24857. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24858. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24859. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24860. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24861. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24862. {"PRI_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24863. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  24864. {"PRI_MI2S_RX Audio Mixer", "DTMF", "DTMF_DL_HL"},
  24865. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24866. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24867. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24868. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24869. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24870. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24871. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24872. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24873. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24874. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24875. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24876. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24877. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24878. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24879. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24880. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  24881. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24882. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24883. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24884. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24885. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24886. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24887. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24888. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24889. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24890. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24891. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24892. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24893. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24894. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24895. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24896. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  24897. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24898. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24899. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24900. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24901. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24902. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24903. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24904. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24905. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24906. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24907. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24908. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24909. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24910. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24911. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24912. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24913. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24914. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  24915. {"SEN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24916. {"SEN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24917. {"SEN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24918. {"SEN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24919. {"SEN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24920. {"SEN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24921. {"SEN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24922. {"SEN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24923. {"SEN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24924. {"SEN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24925. {"SEN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24926. {"SEN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24927. {"SEN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24928. {"SEN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24929. {"SEN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24930. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Audio Mixer"},
  24931. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24932. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24933. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24934. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24935. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24936. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24937. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24938. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24939. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24940. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24941. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24942. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24943. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24944. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24945. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24946. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24947. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24948. {"PRI_META_MI2S_RX", NULL, "PRI_META_MI2S_RX Audio Mixer"},
  24949. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24950. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24951. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24952. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24953. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24954. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24955. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24956. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24957. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24958. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24959. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24960. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24961. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24962. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24963. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24964. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24965. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24966. {"SEC_META_MI2S_RX", NULL, "SEC_META_MI2S_RX Audio Mixer"},
  24967. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24968. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24969. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24970. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24971. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24972. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24973. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24974. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24975. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24976. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24977. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24978. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24979. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24980. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24981. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24982. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24983. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24984. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24985. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24986. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  24987. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  24988. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  24989. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24990. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24991. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24992. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24993. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24994. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24995. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24996. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24997. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24998. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24999. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25000. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25001. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25002. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25003. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25004. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25005. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25006. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25007. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25008. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25009. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25010. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  25011. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25012. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25013. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25014. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25015. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25016. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25017. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25018. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25019. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25020. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25021. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25022. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25023. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25024. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25025. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25026. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25027. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25028. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25029. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25030. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25031. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25032. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  25033. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25034. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25035. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25036. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25037. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25038. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25039. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25040. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25041. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25042. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25043. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25044. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25045. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25046. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25047. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25048. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25049. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25050. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25051. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25052. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25053. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25054. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  25055. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25056. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25057. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25058. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25059. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25060. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25061. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25062. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25063. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25064. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25065. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25066. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25067. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25068. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25069. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25070. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25071. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25072. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25073. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25074. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  25075. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25076. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25077. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25078. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25079. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25080. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25081. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25082. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25083. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25084. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25085. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25086. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25087. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25088. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25089. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25090. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25091. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25092. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25093. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25094. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25095. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25096. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  25097. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25098. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25099. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25100. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25101. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25102. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25103. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25104. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25105. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25106. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25107. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25108. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25109. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25110. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25111. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25112. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25113. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25114. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25115. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25116. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25117. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25118. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  25119. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25120. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25121. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25122. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25123. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25124. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25125. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25126. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25127. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25128. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25129. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25130. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25131. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25132. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25133. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25134. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25135. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25136. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25137. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25138. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25139. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25140. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  25141. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25142. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25143. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25144. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25145. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25146. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25147. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25148. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25149. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25150. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25151. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25152. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25153. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25154. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25155. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25156. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25157. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25158. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25159. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25160. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25161. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25162. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  25163. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25164. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25165. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25166. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25167. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25168. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25169. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25170. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25171. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25172. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25173. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25174. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25175. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25176. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25177. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25178. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25179. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25180. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25181. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25182. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  25183. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25184. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25185. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25186. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25187. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25188. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25189. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25190. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25191. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25192. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25193. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25194. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25195. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25196. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25197. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25198. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25199. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25200. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25201. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25202. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25203. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25204. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  25205. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25206. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25207. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25208. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25209. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25210. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25211. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25212. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25213. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25214. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25215. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25216. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25217. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25218. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25219. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25220. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25221. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25222. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25223. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25224. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  25225. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25226. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25227. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25228. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25229. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25230. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25231. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25232. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25233. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25234. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25235. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25236. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25237. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25238. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25239. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25240. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25241. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25242. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25243. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25244. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25245. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25246. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  25247. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25248. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25249. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25250. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25251. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25252. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25253. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25254. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25255. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25256. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25257. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25258. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25259. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25260. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25261. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25262. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25263. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25264. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25265. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25266. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25267. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25268. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  25269. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25270. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25271. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25272. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25273. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25274. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25275. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25276. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25277. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25278. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25279. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25280. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25281. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25282. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25283. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25284. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25285. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25286. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25287. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25288. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25289. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25290. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  25291. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25292. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25293. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25294. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25295. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25296. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25297. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25298. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25299. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25300. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25301. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25302. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25303. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25304. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25305. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25306. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25307. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25308. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25309. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25310. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25311. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25312. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  25313. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25314. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25315. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25316. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25317. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25318. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25319. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25320. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25321. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25322. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25323. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25324. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25325. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25326. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25327. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25328. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25329. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25330. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25331. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25332. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25333. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25334. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25335. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  25336. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25337. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25338. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25339. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25340. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25341. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25342. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25343. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25344. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25345. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25346. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25347. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25348. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25349. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25350. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25351. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25352. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25353. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25354. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25355. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  25356. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25357. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25358. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25359. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25360. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25361. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25362. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25363. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25364. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25365. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25366. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25367. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25368. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25369. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25370. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25371. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25372. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25373. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25374. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25375. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25376. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25377. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25378. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  25379. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25380. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25381. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25382. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25383. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25384. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25385. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25386. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25387. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25388. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25389. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25390. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25391. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25392. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25393. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25394. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25395. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25396. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25397. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25398. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25399. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25400. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25401. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  25402. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25403. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25404. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25405. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25406. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25407. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25408. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25409. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25410. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25411. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25412. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25413. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25414. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25415. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25416. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25417. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25418. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25419. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25420. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25421. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25422. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25423. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25424. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  25425. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25426. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25427. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25428. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25429. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25430. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25431. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25432. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25433. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25434. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25435. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25436. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25437. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25438. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25439. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25440. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25441. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25442. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25443. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25444. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25445. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25446. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25447. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  25448. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25449. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25450. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25451. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25452. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25453. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25454. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25455. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25456. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25457. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25458. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25459. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25460. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25461. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25462. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25463. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25464. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25465. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25466. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25467. {"QUIN_TDM_TX_0", NULL, "QUIN_TDM_TX_0 Audio Mixer"},
  25468. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25469. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25470. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25471. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25472. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25473. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25474. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25475. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25476. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25477. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25478. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25479. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25480. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25481. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25482. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25483. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25484. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25485. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25486. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25487. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25488. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25489. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25490. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  25491. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25492. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25493. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25494. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25495. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25496. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25497. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25498. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25499. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25500. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25501. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25502. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25503. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25504. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25505. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25506. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25507. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25508. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25509. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25510. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25511. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25512. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25513. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  25514. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25515. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25516. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25517. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25518. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25519. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25520. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25521. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25522. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25523. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25524. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25525. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25526. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25527. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25528. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25529. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25530. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25531. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25532. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25533. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25534. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25535. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25536. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  25537. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25538. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25539. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25540. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25541. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25542. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25543. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25544. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25545. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25546. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25547. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25548. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25549. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25550. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25551. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25552. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25553. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25554. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25555. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Audio Mixer"},
  25556. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25557. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25558. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25559. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25560. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25561. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25562. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25563. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25564. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25565. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25566. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25567. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25568. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25569. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25570. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25571. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25572. {"SEN_TDM_TX_0", NULL, "SEN_TDM_TX_0 Audio Mixer"},
  25573. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25574. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25575. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25576. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25577. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25578. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25579. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25580. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25581. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25582. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25583. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25584. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25585. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25586. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25587. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25588. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25589. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25590. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25591. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Audio Mixer"},
  25592. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25593. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25594. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25595. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25596. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25597. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25598. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25599. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25600. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25601. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25602. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25603. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25604. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25605. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25606. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25607. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25608. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25609. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25610. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Audio Mixer"},
  25611. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25612. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25613. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25614. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25615. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25616. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25617. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25618. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25619. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25620. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25621. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25622. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25623. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25624. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25625. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25626. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25627. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25628. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25629. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Audio Mixer"},
  25630. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  25631. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  25632. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  25633. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  25634. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  25635. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  25636. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  25637. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25638. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25639. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25640. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25641. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25642. {"MultiMedia1 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25643. {"MultiMedia2 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25644. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25645. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25646. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25647. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25648. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25649. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25650. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25651. {"MultiMedia1 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25652. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25653. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  25654. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25655. {"MultiMedia10 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  25656. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25657. {"MultiMedia2 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  25658. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  25659. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  25660. {"MultiMedia10 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  25661. {"MultiMedia16 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  25662. {"MultiMedia16 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  25663. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  25664. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  25665. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  25666. {"MultiMedia10 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  25667. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  25668. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  25669. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  25670. {"MultiMedia10 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  25671. {"MultiMedia16 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  25672. {"MultiMedia1 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  25673. {"MultiMedia3 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  25674. {"MultiMedia5 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  25675. {"MultiMedia1 Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  25676. {"MultiMedia3 Mixer", "SEN_AUX_PCM_TX", "SEN_AUX_PCM_TX"},
  25677. {"MultiMedia5 Mixer", "SEN_AUX_PCM_TX", "SEN_AUX_PCM_TX"},
  25678. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25679. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  25680. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25681. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25682. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25683. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25684. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25685. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25686. {"MultiMedia6 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25687. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25688. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25689. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25690. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25691. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25692. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25693. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25694. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25695. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25696. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25697. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25698. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25699. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25700. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25701. {"MultiMedia17 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25702. {"MultiMedia18 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25703. {"MultiMedia19 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25704. {"MultiMedia28 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25705. {"MultiMedia29 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25706. {"MultiMedia30 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25707. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25708. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25709. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25710. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25711. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25712. {"MultiMedia6 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25713. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25714. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25715. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25716. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25717. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25718. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25719. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25720. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25721. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25722. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25723. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25724. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25725. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25726. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25727. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25728. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25729. {"MultiMedia1 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25730. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25731. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25732. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25733. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25734. {"MultiMedia1 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25735. {"MultiMedia1 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25736. {"MultiMedia1 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25737. {"MultiMedia1 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25738. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25739. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25740. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25741. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25742. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25743. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25744. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25745. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25746. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25747. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25748. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25749. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25750. {"MultiMedia1 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25751. {"MultiMedia1 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25752. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25753. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25754. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25755. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25756. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25757. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25758. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25759. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25760. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25761. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25762. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25763. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25764. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25765. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25766. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25767. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25768. {"MultiMedia2 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25769. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25770. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25771. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25772. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25773. {"MultiMedia2 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25774. {"MultiMedia2 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25775. {"MultiMedia2 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25776. {"MultiMedia2 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25777. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25778. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25779. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25780. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25781. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25782. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25783. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25784. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25785. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25786. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25787. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25788. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25789. {"MultiMedia2 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25790. {"MultiMedia2 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25791. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25792. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25793. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25794. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25795. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25796. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25797. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25798. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25799. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25800. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25801. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25802. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25803. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25804. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25805. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25806. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25807. {"MultiMedia3 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25808. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25809. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25810. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25811. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25812. {"MultiMedia3 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25813. {"MultiMedia3 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25814. {"MultiMedia3 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25815. {"MultiMedia3 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25816. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25817. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25818. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25819. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25820. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25821. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25822. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25823. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25824. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25825. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25826. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25827. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25828. {"MultiMedia3 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25829. {"MultiMedia3 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25830. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25831. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25832. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25833. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25834. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25835. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25836. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25837. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25838. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25839. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25840. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25841. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25842. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25843. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25844. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25845. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25846. {"MultiMedia4 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25847. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25848. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25849. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25850. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25851. {"MultiMedia4 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25852. {"MultiMedia4 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25853. {"MultiMedia4 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25854. {"MultiMedia4 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25855. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25856. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25857. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25858. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25859. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25860. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25861. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25862. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25863. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25864. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25865. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25866. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25867. {"MultiMedia4 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25868. {"MultiMedia4 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25869. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25870. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25871. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25872. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25873. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25874. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25875. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25876. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25877. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25878. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25879. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25880. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25881. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25882. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25883. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25884. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25885. {"MultiMedia5 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25886. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25887. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25888. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25889. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25890. {"MultiMedia5 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25891. {"MultiMedia5 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25892. {"MultiMedia5 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25893. {"MultiMedia5 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25894. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25895. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25896. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25897. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25898. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25899. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25900. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25901. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25902. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25903. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25904. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25905. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25906. {"MultiMedia5 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25907. {"MultiMedia5 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25908. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25909. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25910. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25911. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25912. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25913. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25914. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25915. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25916. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25917. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25918. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25919. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25920. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25921. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25922. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25923. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25924. {"MultiMedia6 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25925. {"MultiMedia6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25926. {"MultiMedia6 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25927. {"MultiMedia6 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25928. {"MultiMedia6 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25929. {"MultiMedia6 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25930. {"MultiMedia6 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25931. {"MultiMedia6 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25932. {"MultiMedia6 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25933. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25934. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25935. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25936. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25937. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25938. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25939. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25940. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25941. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25942. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25943. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25944. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25945. {"MultiMedia6 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25946. {"MultiMedia6 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25947. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25948. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25949. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25950. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25951. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25952. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25953. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25954. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25955. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25956. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25957. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25958. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25959. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25960. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25961. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25962. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25963. {"MultiMedia8 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25964. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25965. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25966. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25967. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25968. {"MultiMedia8 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25969. {"MultiMedia8 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25970. {"MultiMedia8 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25971. {"MultiMedia8 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25972. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25973. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25974. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25975. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25976. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25977. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25978. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25979. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25980. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25981. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25982. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25983. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25984. {"MultiMedia8 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25985. {"MultiMedia8 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25986. {"MultiMedia9 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25987. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25988. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25989. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25990. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25991. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25992. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25993. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25994. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25995. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25996. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25997. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25998. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25999. {"MultiMedia9 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26000. {"MultiMedia9 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26001. {"MultiMedia9 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26002. {"MultiMedia9 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26003. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26004. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26005. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26006. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26007. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26008. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26009. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26010. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26011. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26012. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26013. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26014. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26015. {"MultiMedia9 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26016. {"MultiMedia9 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26017. {"MultiMedia9 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26018. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26019. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26020. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26021. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26022. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26023. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26024. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26025. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26026. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26027. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26028. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26029. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26030. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26031. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26032. {"MultiMedia10 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26033. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26034. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26035. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26036. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26037. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26038. {"MultiMedia20 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26039. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26040. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26041. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26042. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26043. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26044. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26045. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26046. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26047. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26048. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26049. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26050. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26051. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26052. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26053. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26054. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26055. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26056. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26057. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26058. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26059. {"MultiMedia20 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26060. {"MultiMedia20 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26061. {"MultiMedia20 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26062. {"MultiMedia20 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26063. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26064. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26065. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26066. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26067. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26068. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26069. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26070. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26071. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26072. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26073. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26074. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26075. {"MultiMedia20 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26076. {"MultiMedia20 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26077. {"MultiMedia20 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26078. {"MultiMedia21 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26079. {"MultiMedia21 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26080. {"MultiMedia21 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26081. {"MultiMedia21 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26082. {"MultiMedia21 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26083. {"MultiMedia21 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26084. {"MultiMedia21 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26085. {"MultiMedia21 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26086. {"MultiMedia21 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26087. {"MultiMedia21 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26088. {"MultiMedia21 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26089. {"MultiMedia21 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26090. {"MultiMedia21 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26091. {"MultiMedia21 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26092. {"MultiMedia21 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26093. {"MultiMedia21 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26094. {"MultiMedia21 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26095. {"MultiMedia21 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26096. {"MultiMedia21 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26097. {"MultiMedia21 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26098. {"MultiMedia21 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26099. {"MultiMedia21 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26100. {"MultiMedia21 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26101. {"MultiMedia21 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26102. {"MultiMedia21 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26103. {"MultiMedia21 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26104. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26105. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26106. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26107. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26108. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26109. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26110. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26111. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26112. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26113. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26114. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26115. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26116. {"MultiMedia21 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26117. {"MultiMedia21 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26118. {"MultiMedia21 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26119. {"MultiMedia22 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26120. {"MultiMedia22 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26121. {"MultiMedia22 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26122. {"MultiMedia22 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26123. {"MultiMedia22 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26124. {"MultiMedia22 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26125. {"MultiMedia22 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26126. {"MultiMedia22 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26127. {"MultiMedia22 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26128. {"MultiMedia22 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26129. {"MultiMedia22 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26130. {"MultiMedia22 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26131. {"MultiMedia22 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26132. {"MultiMedia22 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26133. {"MultiMedia22 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26134. {"MultiMedia22 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26135. {"MultiMedia22 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26136. {"MultiMedia22 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26137. {"MultiMedia22 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26138. {"MultiMedia22 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26139. {"MultiMedia23 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26140. {"MultiMedia23 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26141. {"MultiMedia23 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26142. {"MultiMedia23 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26143. {"MultiMedia23 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26144. {"MultiMedia23 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26145. {"MultiMedia23 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26146. {"MultiMedia23 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26147. {"MultiMedia23 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26148. {"MultiMedia23 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26149. {"MultiMedia23 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26150. {"MultiMedia23 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26151. {"MultiMedia23 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26152. {"MultiMedia23 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26153. {"MultiMedia23 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26154. {"MultiMedia23 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26155. {"MultiMedia23 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26156. {"MultiMedia23 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26157. {"MultiMedia23 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26158. {"MultiMedia23 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26159. {"MultiMedia24 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26160. {"MultiMedia24 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26161. {"MultiMedia24 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26162. {"MultiMedia24 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26163. {"MultiMedia24 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26164. {"MultiMedia24 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26165. {"MultiMedia24 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26166. {"MultiMedia24 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26167. {"MultiMedia24 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26168. {"MultiMedia24 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26169. {"MultiMedia24 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26170. {"MultiMedia24 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26171. {"MultiMedia24 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26172. {"MultiMedia24 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26173. {"MultiMedia24 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26174. {"MultiMedia24 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26175. {"MultiMedia24 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26176. {"MultiMedia24 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26177. {"MultiMedia24 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26178. {"MultiMedia24 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26179. {"MultiMedia25 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26180. {"MultiMedia25 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26181. {"MultiMedia25 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26182. {"MultiMedia25 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26183. {"MultiMedia25 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26184. {"MultiMedia25 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26185. {"MultiMedia25 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26186. {"MultiMedia25 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26187. {"MultiMedia25 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26188. {"MultiMedia25 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26189. {"MultiMedia25 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26190. {"MultiMedia25 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26191. {"MultiMedia25 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26192. {"MultiMedia25 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26193. {"MultiMedia25 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26194. {"MultiMedia25 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26195. {"MultiMedia25 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26196. {"MultiMedia25 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26197. {"MultiMedia25 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26198. {"MultiMedia25 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26199. {"MultiMedia27 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26200. {"MultiMedia27 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26201. {"MultiMedia27 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  26202. {"MultiMedia27 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26203. {"MultiMedia27 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  26204. {"MultiMedia27 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26205. {"MultiMedia27 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26206. {"MultiMedia27 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26207. {"MultiMedia27 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26208. {"MultiMedia27 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26209. {"MultiMedia27 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26210. {"MultiMedia27 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26211. {"MultiMedia27 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26212. {"MultiMedia27 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26213. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26214. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26215. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26216. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26217. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26218. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26219. {"MultiMedia10 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26220. {"MultiMedia16 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26221. {"MultiMedia16 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26222. {"MultiMedia16 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26223. {"MultiMedia16 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26224. {"MultiMedia16 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26225. {"MultiMedia16 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26226. {"MultiMedia16 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26227. {"MultiMedia16 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26228. {"MultiMedia16 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26229. {"MultiMedia16 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26230. {"MultiMedia16 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26231. {"MultiMedia16 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26232. {"MultiMedia16 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26233. {"MultiMedia16 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26234. {"MultiMedia16 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26235. {"MultiMedia16 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26236. {"MultiMedia16 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26237. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26238. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26239. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26240. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26241. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26242. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26243. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26244. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26245. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26246. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26247. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26248. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26249. {"MultiMedia16 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26250. {"MultiMedia16 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26251. {"MultiMedia16 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26252. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26253. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26254. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26255. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26256. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26257. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26258. {"MultiMedia17 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26259. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26260. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26261. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26262. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26263. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26264. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26265. {"MultiMedia18 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26266. {"MultiMedia18 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26267. {"MultiMedia18 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26268. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26269. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26270. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26271. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26272. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26273. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26274. {"MultiMedia19 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26275. {"MultiMedia19 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26276. {"MultiMedia19 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26277. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26278. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26279. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26280. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26281. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26282. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26283. {"MultiMedia28 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26284. {"MultiMedia28 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26285. {"MultiMedia28 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26286. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26287. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26288. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26289. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26290. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26291. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26292. {"MultiMedia29 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26293. {"MultiMedia29 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26294. {"MultiMedia29 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26295. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26296. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26297. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26298. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26299. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26300. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26301. {"MultiMedia30 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26302. {"MultiMedia30 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26303. {"MultiMedia30 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26304. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26305. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26306. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26307. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26308. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26309. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26310. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26311. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26312. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26313. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26314. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26315. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26316. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26317. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26318. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26319. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26320. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  26321. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  26322. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26323. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26324. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26325. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26326. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26327. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26328. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26329. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26330. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26331. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26332. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26333. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26334. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26335. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26336. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26337. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26338. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  26339. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  26340. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26341. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26342. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26343. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26344. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26345. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26346. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26347. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26348. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26349. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26350. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26351. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26352. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26353. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26354. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26355. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26356. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  26357. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26358. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26359. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26360. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26361. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26362. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26363. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26364. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26365. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26366. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26367. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26368. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26369. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26370. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26371. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26372. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26373. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  26374. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26375. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26376. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26377. {"MultiMedia10 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26378. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26379. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26380. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26381. {"MultiMedia28 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26382. {"MultiMedia29 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26383. {"MultiMedia30 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26384. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26385. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26386. {"MultiMedia16 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26387. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26388. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26389. {"MultiMedia16 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26390. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26391. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26392. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26393. {"MultiMedia28 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26394. {"MultiMedia29 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26395. {"MultiMedia30 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26396. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26397. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26398. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26399. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26400. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26401. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26402. {"MultiMedia10 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26403. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26404. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26405. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26406. {"MultiMedia28 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26407. {"MultiMedia29 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26408. {"MultiMedia30 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26409. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26410. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26411. {"MultiMedia16 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26412. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  26413. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26414. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  26415. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  26416. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  26417. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  26418. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  26419. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  26420. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  26421. {"MM_UL10", NULL, "MultiMedia10 Mixer"},
  26422. {"MM_UL16", NULL, "MultiMedia16 Mixer"},
  26423. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  26424. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  26425. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  26426. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  26427. {"MM_UL21", NULL, "MultiMedia21 Mixer"},
  26428. {"MM_UL22", NULL, "MultiMedia22 Mixer"},
  26429. {"MM_UL23", NULL, "MultiMedia23 Mixer"},
  26430. {"MM_UL24", NULL, "MultiMedia24 Mixer"},
  26431. {"MM_UL25", NULL, "MultiMedia25 Mixer"},
  26432. {"MM_UL27", NULL, "MultiMedia27 Mixer"},
  26433. {"MM_UL28", NULL, "MultiMedia28 Mixer"},
  26434. {"MM_UL29", NULL, "MultiMedia29 Mixer"},
  26435. {"MM_UL30", NULL, "MultiMedia30 Mixer"},
  26436. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26437. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26438. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26439. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26440. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26441. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26442. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26443. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26444. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26445. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26446. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26447. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26448. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26449. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26450. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26451. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26452. {"AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  26453. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  26454. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26455. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26456. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26457. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26458. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26459. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26460. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26461. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26462. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26463. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26464. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26465. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26466. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26467. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26468. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26469. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26470. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  26471. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  26472. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26473. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26474. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26475. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26476. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26477. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26478. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26479. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26480. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26481. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26482. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26483. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26484. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26485. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26486. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26487. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26488. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  26489. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26490. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26491. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26492. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26493. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26494. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26495. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26496. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26497. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26498. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26499. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26500. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26501. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26502. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26503. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26504. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26505. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  26506. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26507. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26508. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26509. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26510. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26511. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26512. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26513. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26514. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26515. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26516. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26517. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26518. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26519. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26520. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26521. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26522. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX Audio Mixer"},
  26523. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26524. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26525. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26526. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26527. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26528. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26529. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26530. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26531. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26532. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26533. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26534. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26535. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26536. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26537. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26538. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26539. {"SEN_AUX_PCM_RX", NULL, "SEN_AUX_PCM_RX Audio Mixer"},
  26540. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26541. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26542. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26543. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26544. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26545. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  26546. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26547. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26548. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26549. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  26550. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26551. {"SEC_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26552. {"SEC_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26553. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26554. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26555. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26556. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26557. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  26558. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26559. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26560. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26561. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26562. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26563. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  26564. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26565. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26566. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26567. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26568. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26569. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  26570. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26571. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26572. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26573. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26574. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26575. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  26576. {"DISPLAY_PORT_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26577. {"DISPLAY_PORT_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26578. {"DISPLAY_PORT_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26579. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26580. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26581. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX_Voice Mixer"},
  26582. {"DISPLAY_PORT_RX1_Voice Mixer", "Voip", "VOIP_DL"},
  26583. {"DISPLAY_PORT_RX1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26584. {"DISPLAY_PORT_RX1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26585. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26586. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26587. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1_Voice Mixer"},
  26588. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26589. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26590. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26591. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26592. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26593. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  26594. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26595. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26596. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26597. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26598. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26599. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  26600. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26601. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26602. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26603. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26604. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26605. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  26606. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26607. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26608. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26609. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26610. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26611. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  26612. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26613. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26614. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26615. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26616. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26617. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  26618. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26619. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26620. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26621. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26622. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26623. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  26624. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26625. {"QUIN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26626. {"QUIN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26627. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26628. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26629. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX_Voice Mixer"},
  26630. {"SEN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26631. {"SEN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26632. {"SEN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26633. {"SEN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26634. {"SEN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26635. {"SEN_AUX_PCM_RX", NULL, "SEN_AUX_PCM_RX_Voice Mixer"},
  26636. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26637. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26638. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26639. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26640. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26641. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  26642. {"HDMI", NULL, "HDMI_DL_HL"},
  26643. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26644. {"MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26645. {"MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26646. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26647. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26648. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26649. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26650. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  26651. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26652. {"PRI_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26653. {"PRI_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26654. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26655. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26656. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26657. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26658. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  26659. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26660. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26661. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26662. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26663. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26664. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  26665. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26666. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26667. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26668. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26669. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26670. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  26671. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26672. {"TERT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26673. {"TERT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26674. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26675. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26676. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26677. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26678. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  26679. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26680. {"QUAT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26681. {"QUAT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26682. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26683. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26684. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26685. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  26686. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26687. {"QUIN_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26688. {"QUIN_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26689. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26690. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26691. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26692. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  26693. {"PRI_TDM_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  26694. {"PRI_TDM_RX_0_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  26695. {"PRI_TDM_RX_0_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26696. {"PRI_TDM_RX_0_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26697. {"PRI_TDM_RX_0_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26698. {"PRI_TDM_RX_0_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26699. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26700. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26701. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_Voice Mixer"},
  26702. {"PRI_TDM_RX_1_Voice Mixer", "Voip", "VOIP_DL"},
  26703. {"PRI_TDM_RX_1_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  26704. {"PRI_TDM_RX_1_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26705. {"PRI_TDM_RX_1_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26706. {"PRI_TDM_RX_1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26707. {"PRI_TDM_RX_1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26708. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26709. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26710. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_Voice Mixer"},
  26711. {"PRI_TDM_RX_2_Voice Mixer", "Voip", "VOIP_DL"},
  26712. {"PRI_TDM_RX_2_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  26713. {"PRI_TDM_RX_2_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26714. {"PRI_TDM_RX_2_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26715. {"PRI_TDM_RX_2_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26716. {"PRI_TDM_RX_2_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26717. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26718. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26719. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_Voice Mixer"},
  26720. {"PRI_TDM_RX_3_Voice Mixer", "Voip", "VOIP_DL"},
  26721. {"PRI_TDM_RX_3_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  26722. {"PRI_TDM_RX_3_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26723. {"PRI_TDM_RX_3_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26724. {"PRI_TDM_RX_3_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26725. {"PRI_TDM_RX_3_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26726. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26727. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26728. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_Voice Mixer"},
  26729. {"SEN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26730. {"SEN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26731. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26732. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26733. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_Voice Mixer"},
  26734. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26735. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  26736. {"QUIN_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26737. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_Voice Mixer"},
  26738. {"WSA_CDC_DMA_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  26739. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26740. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26741. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_Voice Mixer"},
  26742. {"RX_CDC_DMA_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  26743. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26744. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26745. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_Voice Mixer"},
  26746. {"RX_CDC_DMA_RX_1_Voice Mixer", "Voip", "VOIP_DL"},
  26747. {"RX_CDC_DMA_RX_1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26748. {"RX_CDC_DMA_RX_1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26749. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1_Voice Mixer"},
  26750. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26751. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26752. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26753. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26754. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26755. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26756. {"VOC_EXT_EC MUX", "PRI_TDM_TX", "PRI_TDM_TX_0"},
  26757. {"VOC_EXT_EC MUX", "SEC_TDM_TX", "SEC_TDM_TX_0"},
  26758. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  26759. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  26760. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  26761. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26762. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26763. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26764. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26765. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26766. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26767. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  26768. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  26769. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  26770. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26771. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  26772. {"AUDIO_REF_EC_UL1 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26773. {"AUDIO_REF_EC_UL1 MUX", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26774. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26775. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26776. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26777. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26778. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26779. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26780. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26781. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26782. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26783. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26784. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26785. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26786. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26787. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26788. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26789. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26790. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26791. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26792. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26793. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26794. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26795. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26796. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26797. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26798. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26799. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26800. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26801. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26802. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26803. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26804. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26805. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26806. {"AUDIO_REF_EC_UL10 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26807. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26808. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  26809. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  26810. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  26811. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26812. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  26813. {"AUDIO_REF_EC_UL10 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26814. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26815. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26816. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26817. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26818. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26819. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26820. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26821. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26822. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26823. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26824. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26825. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26826. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26827. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26828. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26829. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26830. {"AUDIO_REF_EC_UL28 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26831. {"AUDIO_REF_EC_UL28 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26832. {"AUDIO_REF_EC_UL28 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26833. {"AUDIO_REF_EC_UL28 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26834. {"AUDIO_REF_EC_UL29 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26835. {"AUDIO_REF_EC_UL29 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26836. {"AUDIO_REF_EC_UL29 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26837. {"AUDIO_REF_EC_UL29 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26838. {"LSM1_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26839. {"LSM2_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26840. {"LSM3_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26841. {"LSM4_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26842. {"LSM5_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26843. {"LSM6_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26844. {"LSM7_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26845. {"LSM8_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26846. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26847. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  26848. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  26849. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  26850. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  26851. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  26852. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  26853. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  26854. {"MM_UL10", NULL, "AUDIO_REF_EC_UL10 MUX"},
  26855. {"MM_UL16", NULL, "AUDIO_REF_EC_UL16 MUX"},
  26856. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  26857. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  26858. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  26859. {"MM_UL28", NULL, "AUDIO_REF_EC_UL28 MUX"},
  26860. {"MM_UL29", NULL, "AUDIO_REF_EC_UL29 MUX"},
  26861. {"MM_UL30", NULL, "AUDIO_REF_EC_UL30 MUX"},
  26862. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  26863. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  26864. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  26865. {"VoiceMMode1_Tx Mixer", "SEC_MI2S_TX_MMode1", "SEC_MI2S_TX"},
  26866. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  26867. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  26868. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  26869. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  26870. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  26871. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  26872. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  26873. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  26874. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  26875. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  26876. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  26877. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  26878. {"VoiceMMode1_Tx Mixer", "QUIN_AUX_PCM_TX_MMode1", "QUIN_AUX_PCM_TX"},
  26879. {"VoiceMMode1_Tx Mixer", "SEN_AUX_PCM_TX_MMode1", "SEN_AUX_PCM_TX"},
  26880. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  26881. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_0_MMode1", "TX_CDC_DMA_TX_0"},
  26882. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_1_MMode1", "TX_CDC_DMA_TX_1"},
  26883. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_2_MMode1", "TX_CDC_DMA_TX_2"},
  26884. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_3_MMode1", "TX_CDC_DMA_TX_3"},
  26885. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_4_MMode1", "TX_CDC_DMA_TX_4"},
  26886. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_5_MMode1", "TX_CDC_DMA_TX_5"},
  26887. {"VoiceMMode1_Tx Mixer", "QUAT_MI2S_TX_MMode1", "QUAT_MI2S_TX"},
  26888. {"VoiceMMode1_Tx Mixer", "QUIN_MI2S_TX_MMode1", "QUIN_MI2S_TX"},
  26889. {"VoiceMMode1_Tx Mixer", "PRI_TDM_TX_3_MMode1", "PRI_TDM_TX_3"},
  26890. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  26891. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  26892. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  26893. {"VoiceMMode2_Tx Mixer", "SEC_MI2S_TX_MMode2", "SEC_MI2S_TX"},
  26894. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  26895. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  26896. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  26897. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  26898. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  26899. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  26900. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  26901. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  26902. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  26903. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  26904. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  26905. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  26906. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  26907. {"VoiceMMode2_Tx Mixer", "QUIN_AUX_PCM_TX_MMode2", "QUIN_AUX_PCM_TX"},
  26908. {"VoiceMMode2_Tx Mixer", "SEN_AUX_PCM_TX_MMode2", "SEN_AUX_PCM_TX"},
  26909. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_0_MMode2", "TX_CDC_DMA_TX_0"},
  26910. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_1_MMode2", "TX_CDC_DMA_TX_1"},
  26911. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_2_MMode2", "TX_CDC_DMA_TX_2"},
  26912. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_3_MMode2", "TX_CDC_DMA_TX_3"},
  26913. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_4_MMode2", "TX_CDC_DMA_TX_4"},
  26914. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_5_MMode2", "TX_CDC_DMA_TX_5"},
  26915. {"VoiceMMode2_Tx Mixer", "QUAT_MI2S_TX_MMode2", "QUAT_MI2S_TX"},
  26916. {"VoiceMMode2_Tx Mixer", "QUIN_MI2S_TX_MMode2", "QUIN_MI2S_TX"},
  26917. {"VoiceMMode2_Tx Mixer", "PRI_TDM_TX_3_MMode2", "PRI_TDM_TX_3"},
  26918. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  26919. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  26920. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  26921. {"Voip_Tx Mixer", "SEC_MI2S_TX_Voip", "SEC_MI2S_TX"},
  26922. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  26923. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  26924. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  26925. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  26926. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  26927. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  26928. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  26929. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  26930. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  26931. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  26932. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  26933. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  26934. {"Voip_Tx Mixer", "QUIN_AUX_PCM_TX_Voip", "QUIN_AUX_PCM_TX"},
  26935. {"Voip_Tx Mixer", "SEN_AUX_PCM_TX_Voip", "SEN_AUX_PCM_TX"},
  26936. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  26937. {"Voip_Tx Mixer", "PRI_TDM_TX_3_Voip", "PRI_TDM_TX_3"},
  26938. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_0_Voip", "TX_CDC_DMA_TX_0"},
  26939. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_1_Voip", "TX_CDC_DMA_TX_1"},
  26940. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_2_Voip", "TX_CDC_DMA_TX_2"},
  26941. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_3_Voip", "TX_CDC_DMA_TX_3"},
  26942. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_4_Voip", "TX_CDC_DMA_TX_4"},
  26943. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_5_Voip", "TX_CDC_DMA_TX_5"},
  26944. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  26945. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  26946. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  26947. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  26948. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  26949. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  26950. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  26951. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  26952. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  26953. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  26954. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  26955. {"SCO_SLIM7_DL_HL", "Switch", "SLIM7_DL_HL"},
  26956. {"SLIMBUS_7_RX", NULL, "SCO_SLIM7_DL_HL"},
  26957. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  26958. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  26959. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  26960. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  26961. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  26962. {"WSA_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  26963. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_DL_HL"},
  26964. {"CDC_DMA_UL_HL", NULL, "VA_CDC_DMA_TX_0"},
  26965. {"RX_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  26966. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_DL_HL"},
  26967. {"RX_CDC_DMA_RX_1_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  26968. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1_DL_HL"},
  26969. {"TX3_CDC_DMA_UL_HL", NULL, "TX_CDC_DMA_TX_3"},
  26970. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  26971. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  26972. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  26973. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  26974. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  26975. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26976. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26977. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26978. {"LSM1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26979. {"LSM1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26980. {"LSM1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26981. {"LSM1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26982. {"LSM1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26983. {"LSM1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26984. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  26985. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  26986. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  26987. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  26988. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  26989. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  26990. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26991. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26992. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26993. {"LSM2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26994. {"LSM2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26995. {"LSM2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26996. {"LSM2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26997. {"LSM2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26998. {"LSM2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26999. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  27000. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27001. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27002. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27003. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27004. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27005. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27006. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27007. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27008. {"LSM3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27009. {"LSM3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27010. {"LSM3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27011. {"LSM3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27012. {"LSM3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27013. {"LSM3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27014. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  27015. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27016. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27017. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27018. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27019. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27020. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27021. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27022. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27023. {"LSM4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27024. {"LSM4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27025. {"LSM4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27026. {"LSM4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27027. {"LSM4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27028. {"LSM4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27029. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  27030. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27031. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27032. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27033. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27034. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27035. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27036. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27037. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27038. {"LSM5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27039. {"LSM5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27040. {"LSM5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27041. {"LSM5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27042. {"LSM5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27043. {"LSM5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27044. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  27045. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27046. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27047. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27048. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27049. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27050. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27051. {"LSM6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27052. {"LSM6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27053. {"LSM6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27054. {"LSM6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27055. {"LSM6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27056. {"LSM6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27057. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  27058. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27059. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27060. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27061. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27062. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27063. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27064. {"LSM7 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27065. {"LSM7 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27066. {"LSM7 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27067. {"LSM7 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27068. {"LSM7 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27069. {"LSM7 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27070. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  27071. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27072. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27073. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27074. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27075. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27076. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27077. {"LSM8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27078. {"LSM8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27079. {"LSM8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27080. {"LSM8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27081. {"LSM8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27082. {"LSM8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27083. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  27084. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  27085. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  27086. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  27087. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  27088. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  27089. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  27090. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  27091. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  27092. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  27093. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  27094. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  27095. {"QCHAT_Tx Mixer", "QUIN_AUX_PCM_TX_QCHAT", "QUIN_AUX_PCM_TX"},
  27096. {"QCHAT_Tx Mixer", "SEN_AUX_PCM_TX_QCHAT", "SEN_AUX_PCM_TX"},
  27097. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  27098. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  27099. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  27100. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  27101. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  27102. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  27103. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  27104. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  27105. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  27106. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  27107. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  27108. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  27109. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  27110. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  27111. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  27112. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  27113. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  27114. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  27115. {"SLIM7_UL_HL", NULL, "A2DP_SLIM7_UL_HL"},
  27116. {"A2DP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  27117. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_DL_HL"},
  27118. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  27119. {"SEC_AUXPCM_UL_HL", NULL, "SEC_AUX_PCM_TX"},
  27120. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  27121. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  27122. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  27123. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  27124. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  27125. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  27126. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  27127. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  27128. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  27129. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  27130. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  27131. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  27132. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  27133. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  27134. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  27135. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  27136. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  27137. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  27138. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  27139. {"SEN_MI2S_RX_DL_HL", "Switch", "SEN_MI2S_DL_HL"},
  27140. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_DL_HL"},
  27141. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  27142. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  27143. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  27144. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  27145. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  27146. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  27147. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  27148. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  27149. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  27150. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  27151. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  27152. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  27153. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  27154. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  27155. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  27156. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  27157. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  27158. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  27159. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  27160. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  27161. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  27162. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  27163. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  27164. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  27165. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  27166. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  27167. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7_DL_HL"},
  27168. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  27169. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  27170. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  27171. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  27172. {"TERT_TDM_TX_7_UL_HL", NULL, "TERT_TDM_TX_7"},
  27173. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  27174. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  27175. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  27176. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  27177. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  27178. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  27179. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  27180. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  27181. {"QUAT_TDM_TX_7_UL_HL", NULL, "QUAT_TDM_TX_7"},
  27182. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  27183. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  27184. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  27185. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  27186. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7_DL_HL"},
  27187. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  27188. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  27189. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  27190. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  27191. {"QUIN_TDM_TX_7_UL_HL", NULL, "QUIN_TDM_TX_7"},
  27192. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  27193. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  27194. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  27195. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  27196. {"QUIN_TDM_RX_7", NULL, "QUIN_TDM_RX_7_DL_HL"},
  27197. {"SEN_TDM_TX_0_UL_HL", NULL, "SEN_TDM_TX_0"},
  27198. {"SEN_TDM_TX_1_UL_HL", NULL, "SEN_TDM_TX_1"},
  27199. {"SEN_TDM_TX_2_UL_HL", NULL, "SEN_TDM_TX_2"},
  27200. {"SEN_TDM_TX_3_UL_HL", NULL, "SEN_TDM_TX_3"},
  27201. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0_DL_HL"},
  27202. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1_DL_HL"},
  27203. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2_DL_HL"},
  27204. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3_DL_HL"},
  27205. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27206. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27207. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27208. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27209. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27210. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27211. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27212. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27213. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27214. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27215. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27216. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27217. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27218. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27219. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27220. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27221. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27222. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27223. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27224. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27225. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27226. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27227. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27228. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27229. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  27230. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27231. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27232. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27233. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27234. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27235. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27236. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27237. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27238. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27239. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27240. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27241. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27242. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27243. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27244. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27245. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27246. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27247. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27248. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27249. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27250. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27251. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27252. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27253. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27254. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  27255. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27256. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27257. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27258. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27259. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27260. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27261. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27262. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27263. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27264. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27265. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27266. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27267. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27268. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27269. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27270. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27271. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27272. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27273. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27274. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27275. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27276. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27277. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27278. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27279. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  27280. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27281. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27282. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27283. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27284. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27285. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27286. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27287. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27288. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27289. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27290. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27291. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27292. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27293. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27294. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27295. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27296. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27297. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27298. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27299. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27300. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27301. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27302. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27303. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27304. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  27305. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27306. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27307. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27308. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27309. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27310. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27311. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27312. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27313. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27314. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27315. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27316. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27317. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27318. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27319. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27320. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27321. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27322. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27323. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27324. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27325. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27326. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27327. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27328. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27329. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  27330. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27331. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27332. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27333. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27334. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27335. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27336. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27337. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27338. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27339. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27340. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27341. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27342. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27343. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27344. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27345. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27346. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27347. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27348. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27349. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27350. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27351. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27352. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27353. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27354. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  27355. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27356. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27357. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27358. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27359. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27360. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27361. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27362. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27363. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27364. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27365. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27366. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27367. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27368. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27369. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27370. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27371. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27372. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27373. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27374. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27375. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27376. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27377. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27378. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27379. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  27380. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27381. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27382. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27383. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27384. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27385. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27386. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27387. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27388. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27389. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27390. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27391. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27392. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27393. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27394. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27395. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27396. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27397. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27398. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27399. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27400. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27401. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27402. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27403. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27404. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  27405. {"SEC_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  27406. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7 Port Mixer"},
  27407. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27408. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27409. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27410. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27411. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27412. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27413. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27414. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27415. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27416. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27417. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27418. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27419. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27420. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27421. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27422. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27423. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27424. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27425. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27426. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27427. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27428. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27429. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27430. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27431. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  27432. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27433. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27434. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27435. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27436. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27437. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27438. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27439. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27440. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27441. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27442. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27443. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27444. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27445. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27446. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27447. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27448. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27449. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27450. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27451. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27452. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27453. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27454. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27455. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27456. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  27457. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27458. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27459. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27460. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27461. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27462. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27463. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27464. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27465. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27466. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27467. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27468. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27469. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27470. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27471. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27472. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27473. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27474. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27475. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27476. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27477. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27478. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27479. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27480. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27481. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  27482. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27483. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27484. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27485. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27486. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27487. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27488. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27489. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27490. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27491. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27492. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27493. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27494. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27495. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27496. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27497. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27498. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27499. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27500. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27501. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27502. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27503. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27504. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27505. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27506. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  27507. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27508. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27509. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27510. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27511. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27512. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27513. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27514. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27515. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27516. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27517. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27518. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27519. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27520. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27521. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27522. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27523. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27524. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27525. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27526. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27527. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27528. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27529. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27530. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27531. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  27532. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27533. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27534. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27535. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27536. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27537. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27538. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27539. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27540. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27541. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27542. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27543. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27544. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27545. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27546. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27547. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27548. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27549. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27550. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27551. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27552. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27553. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27554. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27555. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27556. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  27557. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27558. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27559. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27560. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27561. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27562. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27563. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27564. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27565. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27566. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27567. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27568. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27569. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27570. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27571. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27572. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27573. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27574. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27575. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27576. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27577. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27578. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27579. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27580. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27581. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  27582. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27583. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27584. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27585. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27586. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27587. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27588. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27589. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27590. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27591. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27592. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27593. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27594. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27595. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27596. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27597. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27598. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27599. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27600. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27601. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27602. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27603. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27604. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27605. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27606. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  27607. {"QUAT_TDM_RX_7 Port Mixer", "QUAT_TDM_TX_7", "QUAT_TDM_TX_7"},
  27608. {"QUAT_TDM_RX_7 Port Mixer", "QUIN_TDM_TX_7", "QUIN_TDM_TX_7"},
  27609. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7 Port Mixer"},
  27610. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27611. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27612. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27613. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27614. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27615. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27616. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27617. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27618. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27619. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27620. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27621. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27622. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27623. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27624. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27625. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27626. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27627. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27628. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27629. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27630. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27631. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27632. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27633. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27634. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  27635. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27636. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27637. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27638. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27639. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27640. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27641. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27642. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27643. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27644. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27645. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27646. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27647. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27648. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27649. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27650. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27651. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27652. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27653. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27654. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27655. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27656. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27657. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27658. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27659. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  27660. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27661. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27662. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27663. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27664. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27665. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27666. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27667. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27668. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27669. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27670. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27671. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27672. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27673. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27674. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27675. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27676. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27677. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27678. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27679. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27680. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27681. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27682. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27683. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27684. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  27685. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27686. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27687. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27688. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27689. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27690. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27691. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27692. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27693. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27694. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27695. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27696. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27697. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27698. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27699. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27700. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27701. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27702. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27703. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27704. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27705. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27706. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27707. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27708. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27709. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  27710. {"QUIN_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  27711. {"QUIN_TDM_RX_7 Port Mixer", "QUAT_TDM_TX_7", "QUAT_TDM_TX_7"},
  27712. {"QUIN_TDM_RX_7 Port Mixer", "QUIN_TDM_TX_7", "QUIN_TDM_TX_7"},
  27713. {"QUIN_TDM_RX_7", NULL, "QUIN_TDM_RX_7 Port Mixer"},
  27714. {"SEN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27715. {"SEN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27716. {"SEN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27717. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27718. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27719. {"SEN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27720. {"SEN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27721. {"SEN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27722. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27723. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27724. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27725. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27726. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27727. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27728. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27729. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27730. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27731. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27732. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27733. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27734. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Port Mixer"},
  27735. {"SEN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27736. {"SEN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27737. {"SEN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27738. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27739. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27740. {"SEN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27741. {"SEN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27742. {"SEN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27743. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27744. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27745. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27746. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27747. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27748. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27749. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27750. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27751. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27752. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27753. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27754. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27755. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Port Mixer"},
  27756. {"SEN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27757. {"SEN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27758. {"SEN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27759. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27760. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27761. {"SEN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27762. {"SEN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27763. {"SEN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27764. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27765. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27766. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27767. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27768. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27769. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27770. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27771. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27772. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27773. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27774. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27775. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27776. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Port Mixer"},
  27777. {"SEN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27778. {"SEN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27779. {"SEN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27780. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27781. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27782. {"SEN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27783. {"SEN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27784. {"SEN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27785. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27786. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27787. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27788. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27789. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27790. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27791. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27792. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27793. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27794. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27795. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27796. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27797. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Port Mixer"},
  27798. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27799. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27800. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27801. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27802. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27803. {"INT0_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  27804. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27805. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  27806. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27807. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27808. {"INT0_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  27809. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27810. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  27811. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27812. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27813. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27814. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27815. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27816. {"INT4_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  27817. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27818. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  27819. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27820. {"INT4_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  27821. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27822. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27823. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  27824. {"WSA_CDC_DMA_RX_0 Port Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27825. {"WSA_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27826. {"WSA_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27827. {"WSA_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27828. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Port Mixer"},
  27829. {"RX_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27830. {"RX_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27831. {"RX_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27832. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Port Mixer"},
  27833. {"RX_CDC_DMA_RX_1 Port Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27834. {"RX_CDC_DMA_RX_1 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27835. {"RX_CDC_DMA_RX_1 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27836. {"RX_CDC_DMA_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27837. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1 Port Mixer"},
  27838. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27839. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27840. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27841. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  27842. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27843. {"SLIMBUS_0_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  27844. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27845. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27846. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  27847. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  27848. {"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  27849. {"SLIMBUS_0_RX Port Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  27850. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  27851. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27852. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27853. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27854. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27855. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27856. {"SLIMBUS_0_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  27857. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27858. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  27859. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27860. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27861. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  27862. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  27863. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  27864. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  27865. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  27866. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  27867. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27868. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27869. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27870. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27871. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27872. {"AUX_PCM_RX Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27873. {"AUX_PCM_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27874. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  27875. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27876. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27877. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27878. {"SEC_AUXPCM_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27879. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  27880. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27881. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  27882. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27883. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  27884. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27885. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  27886. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27887. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  27888. {"QUIN_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27889. {"QUIN_AUXPCM_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  27890. {"QUIN_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27891. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUXPCM_RX Port Mixer"},
  27892. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  27893. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27894. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27895. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  27896. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27897. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27898. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  27899. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  27900. {"Voice Stub Tx Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  27901. {"Voice Stub Tx Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  27902. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  27903. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27904. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27905. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27906. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27907. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27908. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  27909. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  27910. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27911. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  27912. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  27913. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  27914. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27915. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  27916. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27917. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27918. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  27919. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  27920. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27921. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  27922. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27923. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27924. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  27925. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  27926. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27927. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  27928. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27929. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27930. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  27931. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  27932. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27933. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  27934. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27935. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27936. {"Voice2 Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27937. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  27938. {"STUB_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27939. {"STUB_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27940. {"STUB_RX", NULL, "STUB_RX Mixer"},
  27941. {"SLIMBUS_1_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27942. {"SLIMBUS_1_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27943. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  27944. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27945. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27946. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  27947. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27948. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27949. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27950. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27951. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27952. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  27953. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27954. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27955. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27956. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27957. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27958. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  27959. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27960. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27961. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27962. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  27963. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27964. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27965. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  27966. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  27967. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  27968. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  27969. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  27970. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  27971. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  27972. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27973. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27974. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27975. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  27976. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27977. {"SLIMBUS_6_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  27978. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27979. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27980. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  27981. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27982. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27983. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27984. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27985. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  27986. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  27987. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  27988. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  27989. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  27990. {"DISPLAY_PORT_RX1 Port Mixer", "MI2S_TX", "MI2S_TX"},
  27991. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1 Port Mixer"},
  27992. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  27993. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  27994. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27995. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  27996. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  27997. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27998. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27999. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28000. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28001. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28002. {"PRI_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28003. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28004. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28005. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28006. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28007. {"PRI_MI2S_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28008. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  28009. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28010. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28011. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28012. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28013. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28014. {"SEC_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28015. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28016. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28017. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28018. {"SEC_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28019. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  28020. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28021. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28022. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28023. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28024. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28025. {"TERT_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28026. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28027. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28028. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  28029. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28030. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28031. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28032. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28033. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28034. {"SEN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28035. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28036. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28037. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28038. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28039. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  28040. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28041. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28042. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28043. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28044. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28045. {"QUIN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28046. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28047. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28048. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  28049. {"SEN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28050. {"SEN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28051. {"SEN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28052. {"SEN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28053. {"SEN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28054. {"SEN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28055. {"SEN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28056. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Port Mixer"},
  28057. /* Backend Enablement */
  28058. {"BE_OUT", NULL, "PRI_I2S_RX"},
  28059. {"BE_OUT", NULL, "SEC_I2S_RX"},
  28060. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  28061. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  28062. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  28063. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  28064. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  28065. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  28066. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  28067. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  28068. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  28069. {"BE_OUT", NULL, "SLIMBUS_9_RX"},
  28070. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  28071. {"BE_OUT", NULL, "HDMI"},
  28072. {"BE_OUT", NULL, "DISPLAY_PORT"},
  28073. {"BE_OUT", NULL, "DISPLAY_PORT1"},
  28074. {"BE_OUT", NULL, "PRI_SPDIF_RX"},
  28075. {"BE_OUT", NULL, "SEC_SPDIF_RX"},
  28076. {"BE_OUT", NULL, "MI2S_RX"},
  28077. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  28078. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  28079. {"BE_OUT", NULL, "SEN_MI2S_RX"},
  28080. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  28081. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  28082. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  28083. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  28084. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  28085. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  28086. {"BE_OUT", NULL, "INT2_MI2S_RX"},
  28087. {"BE_OUT", NULL, "INT3_MI2S_RX"},
  28088. {"BE_OUT", NULL, "INT5_MI2S_RX"},
  28089. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  28090. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  28091. {"BE_OUT", NULL, "INT_FM_RX"},
  28092. {"BE_OUT", NULL, "PCM_RX"},
  28093. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  28094. {"BE_OUT", NULL, "AUX_PCM_RX"},
  28095. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  28096. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  28097. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  28098. {"BE_OUT", NULL, "QUIN_AUX_PCM_RX"},
  28099. {"BE_OUT", NULL, "SEN_AUX_PCM_RX"},
  28100. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  28101. {"BE_OUT", NULL, "INT_FM_RX"},
  28102. {"BE_OUT", NULL, "PCM_RX"},
  28103. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  28104. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  28105. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  28106. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  28107. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  28108. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  28109. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  28110. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  28111. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  28112. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  28113. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  28114. {"BE_OUT", NULL, "SEC_TDM_RX_7"},
  28115. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  28116. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  28117. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  28118. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  28119. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  28120. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  28121. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  28122. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  28123. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  28124. {"BE_OUT", NULL, "QUAT_TDM_RX_7"},
  28125. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  28126. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  28127. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  28128. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  28129. {"BE_OUT", NULL, "QUIN_TDM_RX_7"},
  28130. {"BE_OUT", NULL, "SEN_TDM_RX_0"},
  28131. {"BE_OUT", NULL, "SEN_TDM_RX_1"},
  28132. {"BE_OUT", NULL, "SEN_TDM_RX_2"},
  28133. {"BE_OUT", NULL, "SEN_TDM_RX_3"},
  28134. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_0"},
  28135. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_1"},
  28136. {"BE_OUT", NULL, "RX_CDC_DMA_RX_0"},
  28137. {"BE_OUT", NULL, "RX_CDC_DMA_RX_1"},
  28138. {"BE_OUT", NULL, "RX_CDC_DMA_RX_2"},
  28139. {"BE_OUT", NULL, "RX_CDC_DMA_RX_3"},
  28140. {"BE_OUT", NULL, "RX_CDC_DMA_RX_4"},
  28141. {"BE_OUT", NULL, "RX_CDC_DMA_RX_5"},
  28142. {"BE_OUT", NULL, "RX_CDC_DMA_RX_6"},
  28143. {"BE_OUT", NULL, "RX_CDC_DMA_RX_7"},
  28144. {"PRI_I2S_TX", NULL, "BE_IN"},
  28145. {"MI2S_TX", NULL, "BE_IN"},
  28146. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  28147. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  28148. {"PRI_MI2S_TX", NULL, "BE_IN"},
  28149. {"TERT_MI2S_TX", NULL, "BE_IN"},
  28150. {"INT0_MI2S_TX", NULL, "BE_IN"},
  28151. {"INT2_MI2S_TX", NULL, "BE_IN"},
  28152. {"INT3_MI2S_TX", NULL, "BE_IN"},
  28153. {"INT4_MI2S_TX", NULL, "BE_IN"},
  28154. {"INT5_MI2S_TX", NULL, "BE_IN"},
  28155. {"SEC_MI2S_TX", NULL, "BE_IN"},
  28156. {"SENARY_MI2S_TX", NULL, "BE_IN"},
  28157. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  28158. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  28159. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  28160. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  28161. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  28162. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  28163. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  28164. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  28165. {"SLIMBUS_9_TX", NULL, "BE_IN" },
  28166. {"USB_AUDIO_TX", NULL, "BE_IN" },
  28167. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  28168. {"INT_FM_TX", NULL, "BE_IN"},
  28169. {"PCM_TX", NULL, "BE_IN"},
  28170. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  28171. {"BE_OUT", NULL, "STUB_RX"},
  28172. {"STUB_TX", NULL, "BE_IN"},
  28173. {"STUB_1_TX", NULL, "BE_IN"},
  28174. {"BE_OUT", NULL, "AUX_PCM_RX"},
  28175. {"AUX_PCM_TX", NULL, "BE_IN"},
  28176. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  28177. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  28178. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  28179. {"QUIN_AUX_PCM_TX", NULL, "BE_IN"},
  28180. {"SEN_AUX_PCM_TX", NULL, "BE_IN"},
  28181. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  28182. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  28183. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  28184. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  28185. {"WSA_RX_0_VI_FB_LCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  28186. {"WSA_RX_0_VI_FB_RCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  28187. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  28188. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  28189. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  28190. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  28191. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  28192. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_LCH_MUX"},
  28193. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_RCH_MUX"},
  28194. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  28195. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  28196. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  28197. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  28198. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  28199. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  28200. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  28201. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  28202. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  28203. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  28204. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  28205. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  28206. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  28207. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  28208. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  28209. {"TERT_TDM_TX_7", NULL, "BE_IN"},
  28210. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  28211. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  28212. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  28213. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  28214. {"QUAT_TDM_TX_7", NULL, "BE_IN"},
  28215. {"AFE_LOOPBACK_TX", NULL, "BE_IN"},
  28216. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  28217. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  28218. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  28219. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  28220. {"QUIN_TDM_TX_7", NULL, "BE_IN"},
  28221. {"SEN_TDM_TX_0", NULL, "BE_IN"},
  28222. {"SEN_TDM_TX_1", NULL, "BE_IN"},
  28223. {"SEN_TDM_TX_2", NULL, "BE_IN"},
  28224. {"SEN_TDM_TX_3", NULL, "BE_IN"},
  28225. {"WSA_CDC_DMA_TX_0", NULL, "BE_IN"},
  28226. {"WSA_CDC_DMA_TX_1", NULL, "BE_IN"},
  28227. {"WSA_CDC_DMA_TX_2", NULL, "BE_IN"},
  28228. {"VA_CDC_DMA_TX_0", NULL, "BE_IN"},
  28229. {"VA_CDC_DMA_TX_1", NULL, "BE_IN"},
  28230. {"VA_CDC_DMA_TX_2", NULL, "BE_IN"},
  28231. {"TX_CDC_DMA_TX_0", NULL, "BE_IN"},
  28232. {"TX_CDC_DMA_TX_1", NULL, "BE_IN"},
  28233. {"TX_CDC_DMA_TX_2", NULL, "BE_IN"},
  28234. {"TX_CDC_DMA_TX_3", NULL, "BE_IN"},
  28235. {"TX_CDC_DMA_TX_4", NULL, "BE_IN"},
  28236. {"TX_CDC_DMA_TX_5", NULL, "BE_IN"},
  28237. {"PRI_SPDIF_TX", NULL, "BE_IN"},
  28238. {"SEC_SPDIF_TX", NULL, "BE_IN"},
  28239. };
  28240. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  28241. struct snd_pcm_hw_params *params)
  28242. {
  28243. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  28244. unsigned int be_id = rtd->dai_link->id;
  28245. if (be_id >= MSM_BACKEND_DAI_MAX) {
  28246. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  28247. return -EINVAL;
  28248. }
  28249. mutex_lock(&routing_lock);
  28250. msm_bedais[be_id].sample_rate = params_rate(params);
  28251. msm_bedais[be_id].channel = params_channels(params);
  28252. msm_bedais[be_id].format = params_format(params);
  28253. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  28254. __func__, msm_bedais[be_id].sample_rate,
  28255. msm_bedais[be_id].format, be_id);
  28256. mutex_unlock(&routing_lock);
  28257. return 0;
  28258. }
  28259. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  28260. {
  28261. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  28262. unsigned int be_id = rtd->dai_link->id;
  28263. int i, session_type, path_type, topology;
  28264. struct msm_pcm_routing_bdai_data *bedai;
  28265. struct msm_pcm_routing_fdai_data *fdai;
  28266. pr_debug("%s: substream->pcm->id:%s\n",
  28267. __func__, substream->pcm->id);
  28268. if (be_id >= MSM_BACKEND_DAI_MAX) {
  28269. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  28270. return -EINVAL;
  28271. }
  28272. bedai = &msm_bedais[be_id];
  28273. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  28274. 0 : 1);
  28275. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  28276. path_type = ADM_PATH_PLAYBACK;
  28277. else
  28278. path_type = ADM_PATH_LIVE_REC;
  28279. mutex_lock(&routing_lock);
  28280. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  28281. if (!is_mm_lsm_fe_id(i))
  28282. continue;
  28283. fdai = &fe_dai_map[i][session_type];
  28284. if (fdai->strm_id != INVALID_SESSION) {
  28285. int idx;
  28286. int port_id;
  28287. unsigned long copp =
  28288. session_copp_map[i][session_type][be_id];
  28289. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  28290. if (test_bit(idx, &copp))
  28291. break;
  28292. if (idx >= MAX_COPPS_PER_PORT) {
  28293. pr_debug("%s: copp idx is invalid, exiting\n",
  28294. __func__);
  28295. continue;
  28296. }
  28297. fdai->be_srate = bedai->sample_rate;
  28298. port_id = get_port_id(bedai->port_id);
  28299. topology = adm_get_topology_for_port_copp_idx(port_id,
  28300. idx);
  28301. msm_routing_unload_topology(topology);
  28302. adm_close(port_id, fdai->perf_mode, idx);
  28303. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  28304. __func__, copp, i, session_type, be_id,
  28305. topology);
  28306. clear_bit(idx,
  28307. &session_copp_map[i][session_type][be_id]);
  28308. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  28309. (fdai->passthr_mode == LEGACY_PCM))
  28310. msm_pcm_routing_deinit_pp(port_id,
  28311. topology);
  28312. }
  28313. }
  28314. bedai->active = 0;
  28315. bedai->sample_rate = 0;
  28316. bedai->channel = 0;
  28317. mutex_unlock(&routing_lock);
  28318. return 0;
  28319. }
  28320. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  28321. {
  28322. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  28323. unsigned int be_id = rtd->dai_link->id;
  28324. int i, path_type, topology;
  28325. int session_type = INVALID_SESSION;
  28326. struct msm_pcm_routing_bdai_data *bedai;
  28327. u32 channels, sample_rate;
  28328. uint16_t bits_per_sample = 16, voc_path_type, be_bit_width;
  28329. struct msm_pcm_routing_fdai_data *fdai;
  28330. u32 session_id;
  28331. struct media_format_info voc_be_media_format;
  28332. bool is_lsm;
  28333. pr_debug("%s: substream->pcm->id:%s\n",
  28334. __func__, substream->pcm->id);
  28335. if (be_id >= MSM_BACKEND_DAI_MAX) {
  28336. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  28337. return -EINVAL;
  28338. }
  28339. bedai = &msm_bedais[be_id];
  28340. mutex_lock(&routing_lock);
  28341. if (bedai->active == 1)
  28342. goto done; /* Ignore prepare if back-end already active */
  28343. /* AFE port is not active at this point. However, still
  28344. * go ahead setting active flag under the notion that
  28345. * QDSP6 is able to handle ADM starting before AFE port
  28346. * is started.
  28347. */
  28348. bedai->active = 1;
  28349. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  28350. if (!(is_mm_lsm_fe_id(i) &&
  28351. route_check_fe_id_adm_support(i)))
  28352. continue;
  28353. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
  28354. SESSION_TYPE_RX : SESSION_TYPE_TX;
  28355. fdai = &fe_dai_map[i][session_type];
  28356. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  28357. if (fdai->passthr_mode != LEGACY_PCM)
  28358. path_type = ADM_PATH_COMPRESSED_RX;
  28359. else
  28360. path_type = ADM_PATH_PLAYBACK;
  28361. } else {
  28362. if ((fdai->passthr_mode != LEGACY_PCM) &&
  28363. (fdai->passthr_mode != LISTEN))
  28364. path_type = ADM_PATH_COMPRESSED_TX;
  28365. else
  28366. path_type = ADM_PATH_LIVE_REC;
  28367. }
  28368. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  28369. (i <= MSM_FRONTEND_DAI_LSM8);
  28370. if (fdai->strm_id != INVALID_SESSION) {
  28371. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  28372. int port_id = get_port_id(bedai->port_id);
  28373. if (session_type == SESSION_TYPE_TX &&
  28374. fdai->be_srate &&
  28375. (fdai->be_srate != bedai->sample_rate)) {
  28376. pr_debug("%s: flush strm %d diff BE rates\n",
  28377. __func__,
  28378. fdai->strm_id);
  28379. if (fdai->event_info.event_func)
  28380. fdai->event_info.event_func(
  28381. MSM_PCM_RT_EVT_BUF_RECFG,
  28382. fdai->event_info.priv_data);
  28383. fdai->be_srate = 0; /* might not need it */
  28384. }
  28385. bits_per_sample = msm_routing_get_bit_width(
  28386. bedai->format);
  28387. app_type =
  28388. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  28389. if (app_type && is_lsm) {
  28390. app_type_idx =
  28391. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  28392. sample_rate =
  28393. fe_dai_app_type_cfg[i][session_type][be_id]
  28394. .sample_rate;
  28395. bits_per_sample =
  28396. lsm_app_type_cfg[app_type_idx].bit_width;
  28397. } else if (app_type) {
  28398. app_type_idx =
  28399. msm_pcm_routing_get_app_type_idx(app_type);
  28400. sample_rate =
  28401. fe_dai_app_type_cfg[i][session_type]
  28402. [be_id].sample_rate;
  28403. bits_per_sample =
  28404. app_type_cfg[app_type_idx].bit_width;
  28405. } else
  28406. sample_rate = bedai->sample_rate;
  28407. /*
  28408. * check if ADM needs to be configured with different
  28409. * channel mapping than backend
  28410. */
  28411. if (!bedai->adm_override_ch)
  28412. channels = bedai->channel;
  28413. else
  28414. channels = bedai->adm_override_ch;
  28415. acdb_dev_id =
  28416. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  28417. topology = msm_routing_get_adm_topology(i, session_type,
  28418. be_id);
  28419. if ((fdai->passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  28420. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_GEN)
  28421. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_IEC61937))
  28422. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  28423. be_bit_width = msm_routing_get_bit_width(
  28424. bedai->format);
  28425. if (hifi_filter_enabled && (bedai->sample_rate == 384000
  28426. || bedai->sample_rate == 352800) &&
  28427. be_bit_width == 32)
  28428. bits_per_sample = msm_routing_get_bit_width(
  28429. SNDRV_PCM_FORMAT_S32_LE);
  28430. copp_idx = adm_open(port_id, path_type,
  28431. sample_rate, channels, topology,
  28432. fdai->perf_mode, bits_per_sample,
  28433. app_type, acdb_dev_id,
  28434. session_type);
  28435. if ((copp_idx < 0) ||
  28436. (copp_idx >= MAX_COPPS_PER_PORT)) {
  28437. pr_err("%s: adm open failed\n", __func__);
  28438. mutex_unlock(&routing_lock);
  28439. return -EINVAL;
  28440. }
  28441. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  28442. __func__, i, session_type, be_id);
  28443. set_bit(copp_idx,
  28444. &session_copp_map[i][session_type][be_id]);
  28445. if (msm_is_resample_needed(
  28446. sample_rate,
  28447. bedai->sample_rate))
  28448. adm_copp_mfc_cfg(port_id, copp_idx,
  28449. bedai->sample_rate);
  28450. msm_pcm_routing_build_matrix(i, session_type, path_type,
  28451. fdai->perf_mode, fdai->passthr_mode);
  28452. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  28453. (fdai->passthr_mode == LEGACY_PCM))
  28454. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  28455. topology, channels);
  28456. }
  28457. }
  28458. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  28459. session_id = msm_pcm_routing_get_voc_sessionid(i);
  28460. if (session_id) {
  28461. pr_debug("%s voice session_id: 0x%x\n", __func__,
  28462. session_id);
  28463. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  28464. voc_path_type = RX_PATH;
  28465. else
  28466. voc_path_type = TX_PATH;
  28467. voc_set_route_flag(session_id, voc_path_type, 1);
  28468. memset(&voc_be_media_format, 0,
  28469. sizeof(struct media_format_info));
  28470. voc_be_media_format.port_id = bedai->port_id;
  28471. voc_be_media_format.num_channels = bedai->channel;
  28472. voc_be_media_format.sample_rate = bedai->sample_rate;
  28473. voc_be_media_format.bits_per_sample = bedai->format;
  28474. /* Defaulting this to 1 for voice call usecases */
  28475. voc_be_media_format.channel_mapping[0] = 1;
  28476. voc_set_device_config(session_id, voc_path_type,
  28477. &voc_be_media_format);
  28478. if (voc_get_route_flag(session_id, RX_PATH) &&
  28479. voc_get_route_flag(session_id, TX_PATH))
  28480. voc_enable_device(session_id);
  28481. }
  28482. }
  28483. /* Check if backend is an external ec ref port and set as needed */
  28484. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  28485. memset(&voc_be_media_format, 0,
  28486. sizeof(struct media_format_info));
  28487. /* Get format info for ec ref port from msm_bedais[] */
  28488. voc_be_media_format.port_id = bedai->port_id;
  28489. voc_be_media_format.num_channels = bedai->channel;
  28490. voc_be_media_format.bits_per_sample = bedai->format;
  28491. voc_be_media_format.sample_rate = bedai->sample_rate;
  28492. /* Defaulting this to 1 for voice call usecases */
  28493. voc_be_media_format.channel_mapping[0] = 1;
  28494. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  28495. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  28496. __func__, voc_be_media_format.port_id,
  28497. voc_be_media_format.num_channels,
  28498. voc_be_media_format.bits_per_sample,
  28499. voc_be_media_format.sample_rate);
  28500. }
  28501. done:
  28502. mutex_unlock(&routing_lock);
  28503. return 0;
  28504. }
  28505. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  28506. int fe_id)
  28507. {
  28508. int index, topo_id, be_idx;
  28509. unsigned long pp_config = 0;
  28510. bool mute_on;
  28511. int latency, session_type;
  28512. bool compr_passthr_mode = true;
  28513. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  28514. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX) {
  28515. pr_err("%s: Device pp params on invalid port %d\n",
  28516. __func__, port_id);
  28517. return -EINVAL;
  28518. }
  28519. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  28520. if (port_id == msm_bedais[be_idx].port_id)
  28521. break;
  28522. }
  28523. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  28524. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  28525. return -EINVAL;
  28526. }
  28527. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  28528. if (msm_bedais_pp_params[index].port_id == port_id)
  28529. break;
  28530. }
  28531. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  28532. pr_err("%s: Invalid backend pp params index %d\n",
  28533. __func__, index);
  28534. return -EINVAL;
  28535. }
  28536. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  28537. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  28538. pr_err("%s: Invalid passthrough topology 0x%x\n",
  28539. __func__, topo_id);
  28540. return -EINVAL;
  28541. }
  28542. session_type =
  28543. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  28544. SESSION_TYPE_RX : SESSION_TYPE_TX;
  28545. if ((fe_dai_map[fe_id][session_type].passthr_mode == LEGACY_PCM) ||
  28546. (fe_dai_map[fe_id][session_type].passthr_mode == LISTEN))
  28547. compr_passthr_mode = false;
  28548. pp_config = msm_bedais_pp_params[index].pp_params_config;
  28549. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  28550. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  28551. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  28552. mute_on = msm_bedais_pp_params[index].mute_on;
  28553. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  28554. adm_send_compressed_device_mute(port_id,
  28555. copp_idx,
  28556. mute_on);
  28557. }
  28558. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  28559. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  28560. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  28561. &pp_config);
  28562. latency = msm_bedais_pp_params[index].latency;
  28563. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  28564. adm_send_compressed_device_latency(port_id,
  28565. copp_idx,
  28566. latency);
  28567. }
  28568. return 0;
  28569. }
  28570. static uint32_t msm_routing_get_topology(size_t data_size, void *data)
  28571. {
  28572. uint32_t topology = NULL_COPP_TOPOLOGY;
  28573. void *cal_info = NULL;
  28574. uint32_t size = 0;
  28575. /* Retrieve cal_info size from cal data*/
  28576. if (data_size < sizeof(struct audio_cal_type_basic) +
  28577. sizeof(struct audio_cal_info_adm_top)) {
  28578. pr_err("%s: Invalid data size: %zd\n", __func__, data_size);
  28579. goto done;
  28580. }
  28581. size = data_size - sizeof(struct audio_cal_type_basic);
  28582. cal_info = kzalloc(size, GFP_KERNEL);
  28583. if (!cal_info)
  28584. goto done;
  28585. memcpy(cal_info,
  28586. ((uint8_t *)data + sizeof(struct audio_cal_type_basic)), size);
  28587. topology = ((struct audio_cal_info_adm_top *)cal_info)->topology;
  28588. kfree(cal_info);
  28589. cal_info = NULL;
  28590. done:
  28591. pr_debug("%s: Using topology %d\n", __func__, topology);
  28592. return topology;
  28593. }
  28594. static void msm_routing_load_topology(size_t data_size, void *data)
  28595. {
  28596. uint32_t topology_id;
  28597. int ret = -EINVAL;
  28598. topology_id = msm_routing_get_topology(data_size, data);
  28599. if (topology_id != NULL_COPP_TOPOLOGY)
  28600. ret = q6core_load_unload_topo_modules(topology_id,
  28601. CORE_LOAD_TOPOLOGY);
  28602. if (ret < 0)
  28603. pr_debug("%s %d load topology failed\n",
  28604. __func__, topology_id);
  28605. }
  28606. static void msm_routing_unload_topology(uint32_t topology_id)
  28607. {
  28608. int ret = -EINVAL;
  28609. if (topology_id != NULL_COPP_TOPOLOGY)
  28610. ret = q6core_load_unload_topo_modules(topology_id,
  28611. CORE_UNLOAD_TOPOLOGY);
  28612. if (ret < 0)
  28613. pr_debug("%s %d unload topology failed\n",
  28614. __func__, topology_id);
  28615. }
  28616. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  28617. struct snd_ctl_elem_value *ucontrol)
  28618. {
  28619. int pp_id = ucontrol->value.integer.value[0];
  28620. int port_id = 0;
  28621. int index, be_idx, i, topo_id, idx;
  28622. bool mute;
  28623. int latency, session_type;
  28624. bool compr_passthr_mode = true;
  28625. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  28626. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  28627. port_id = msm_bedais[be_idx].port_id;
  28628. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX)
  28629. break;
  28630. }
  28631. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  28632. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  28633. return -EINVAL;
  28634. }
  28635. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  28636. if (msm_bedais_pp_params[index].port_id == port_id)
  28637. break;
  28638. }
  28639. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  28640. pr_err("%s: Invalid pp params backend index %d\n",
  28641. __func__, index);
  28642. return -EINVAL;
  28643. }
  28644. session_type =
  28645. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  28646. SESSION_TYPE_RX : SESSION_TYPE_TX;
  28647. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  28648. MSM_FRONTEND_DAI_MM_SIZE) {
  28649. if ((fe_dai_map[i][session_type].passthr_mode == LEGACY_PCM) ||
  28650. (fe_dai_map[i][session_type].passthr_mode == LISTEN))
  28651. compr_passthr_mode = false;
  28652. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  28653. unsigned long copp =
  28654. session_copp_map[i]
  28655. [SESSION_TYPE_RX][be_idx];
  28656. if (!test_bit(idx, &copp))
  28657. continue;
  28658. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  28659. idx);
  28660. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  28661. continue;
  28662. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  28663. __func__, port_id, copp, msm_bedais[be_idx].active,
  28664. fe_dai_map[i][session_type].passthr_mode);
  28665. switch (pp_id) {
  28666. case ADM_PP_PARAM_MUTE_ID:
  28667. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  28668. mute = ucontrol->value.integer.value[1] ? true : false;
  28669. msm_bedais_pp_params[index].mute_on = mute;
  28670. set_bit(ADM_PP_PARAM_MUTE_BIT,
  28671. &msm_bedais_pp_params[index].pp_params_config);
  28672. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  28673. adm_send_compressed_device_mute(port_id,
  28674. idx, mute);
  28675. break;
  28676. case ADM_PP_PARAM_LATENCY_ID:
  28677. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  28678. msm_bedais_pp_params[index].latency =
  28679. ucontrol->value.integer.value[1];
  28680. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  28681. &msm_bedais_pp_params[index].pp_params_config);
  28682. latency = msm_bedais_pp_params[index].latency =
  28683. ucontrol->value.integer.value[1];
  28684. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  28685. adm_send_compressed_device_latency(port_id,
  28686. idx, latency);
  28687. break;
  28688. default:
  28689. pr_info("%s, device pp param %d not supported\n",
  28690. __func__, pp_id);
  28691. break;
  28692. }
  28693. }
  28694. }
  28695. return 0;
  28696. }
  28697. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  28698. struct snd_ctl_elem_value *ucontrol)
  28699. {
  28700. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  28701. return 0;
  28702. }
  28703. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  28704. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  28705. 0, 3, msm_routing_get_device_pp_params_mixer,
  28706. msm_routing_put_device_pp_params_mixer),
  28707. };
  28708. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  28709. struct snd_ctl_elem_value *ucontrol)
  28710. {
  28711. ucontrol->value.integer.value[0] =
  28712. core_get_license_status(ASM_MEDIA_FMT_APTX);
  28713. pr_debug("%s: status %ld\n", __func__,
  28714. ucontrol->value.integer.value[0]);
  28715. return 0;
  28716. }
  28717. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  28718. struct snd_ctl_elem_value *ucontrol)
  28719. {
  28720. int32_t status = 0;
  28721. status = core_set_license(ucontrol->value.integer.value[0],
  28722. APTX_CLASSIC_DEC_LICENSE_ID);
  28723. pr_debug("%s: status %d\n", __func__, status);
  28724. return status;
  28725. }
  28726. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  28727. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  28728. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  28729. msm_aptx_dec_license_control_put),
  28730. };
  28731. static int msm_routing_put_port_chmap_mixer(struct snd_kcontrol *kcontrol,
  28732. struct snd_ctl_elem_value *ucontrol)
  28733. {
  28734. uint8_t channel_map[PCM_FORMAT_MAX_NUM_CHANNEL_V8];
  28735. uint32_t be_idx = ucontrol->value.integer.value[0];
  28736. int i;
  28737. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  28738. pr_err("%s: Invalid Backend index %d\n", __func__, be_idx);
  28739. return -EINVAL;
  28740. }
  28741. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; i++) {
  28742. channel_map[i] = (char)(ucontrol->value.integer.value[i + 1]);
  28743. if (channel_map[i] > PCM_MAX_CHMAP_ID) {
  28744. pr_err("%s: Invalid channel map %d\n",
  28745. __func__, channel_map[i]);
  28746. return -EINVAL;
  28747. }
  28748. }
  28749. adm_set_port_multi_ch_map(channel_map, msm_bedais[be_idx].port_id);
  28750. return 0;
  28751. }
  28752. static const struct snd_kcontrol_new port_multi_channel_map_mixer_controls[] = {
  28753. SOC_SINGLE_MULTI_EXT("Backend Device Channel Map", SND_SOC_NOPM, 0,
  28754. MSM_BACKEND_DAI_MAX, 0,
  28755. PCM_FORMAT_MAX_NUM_CHANNEL_V8 + 1, NULL,
  28756. msm_routing_put_port_chmap_mixer),
  28757. };
  28758. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  28759. struct snd_ctl_elem_info *uinfo)
  28760. {
  28761. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  28762. uinfo->count = sizeof(be_dai_name_table);
  28763. return 0;
  28764. }
  28765. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  28766. unsigned int __user *bytes,
  28767. unsigned int size)
  28768. {
  28769. int i;
  28770. int ret = 0;
  28771. if (size < sizeof(be_dai_name_table)) {
  28772. pr_err("%s: invalid size %d requested, returning\n",
  28773. __func__, size);
  28774. ret = -EINVAL;
  28775. goto done;
  28776. }
  28777. /*
  28778. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  28779. * needed when adding new backends
  28780. */
  28781. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  28782. be_dai_name_table[i].be_id = i;
  28783. strlcpy(be_dai_name_table[i].be_name,
  28784. msm_bedais[i].name,
  28785. LPASS_BE_NAME_MAX_LENGTH);
  28786. }
  28787. ret = copy_to_user(bytes, &be_dai_name_table,
  28788. sizeof(be_dai_name_table));
  28789. if (ret) {
  28790. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  28791. ret = -EFAULT;
  28792. }
  28793. done:
  28794. return ret;
  28795. }
  28796. static const struct snd_kcontrol_new
  28797. msm_routing_be_dai_name_table_mixer_controls[] = {
  28798. {
  28799. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  28800. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  28801. .info = msm_routing_be_dai_name_table_info,
  28802. .name = "Backend DAI Name Table",
  28803. .tlv.c = snd_soc_bytes_tlv_callback,
  28804. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  28805. .max = sizeof(be_dai_name_table),
  28806. .get = msm_routing_be_dai_name_table_tlv_get,
  28807. }
  28808. },
  28809. };
  28810. static int msm_routing_stereo_channel_reverse_control_get(
  28811. struct snd_kcontrol *kcontrol,
  28812. struct snd_ctl_elem_value *ucontrol)
  28813. {
  28814. ucontrol->value.integer.value[0] = swap_ch;
  28815. pr_debug("%s: Swap channel value: %ld\n", __func__,
  28816. ucontrol->value.integer.value[0]);
  28817. return 0;
  28818. }
  28819. static int msm_routing_stereo_channel_reverse_control_put(
  28820. struct snd_kcontrol *kcontrol,
  28821. struct snd_ctl_elem_value *ucontrol)
  28822. {
  28823. int i, idx, be_index, port_id;
  28824. int ret = 0;
  28825. unsigned long copp;
  28826. pr_debug("%s Swap channel value:%ld\n", __func__,
  28827. ucontrol->value.integer.value[0]);
  28828. swap_ch = ucontrol->value.integer.value[0];
  28829. mutex_lock(&routing_lock);
  28830. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  28831. port_id = msm_bedais[be_index].port_id;
  28832. if (!msm_bedais[be_index].active)
  28833. continue;
  28834. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  28835. MSM_FRONTEND_DAI_MM_SIZE) {
  28836. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  28837. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  28838. if (!test_bit(idx, &copp))
  28839. continue;
  28840. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  28841. __func__, port_id, idx);
  28842. ret = adm_swap_speaker_channels(
  28843. port_id, idx,
  28844. msm_bedais[be_index].sample_rate,
  28845. swap_ch);
  28846. if (ret) {
  28847. pr_err("%s:Swap_channel failed, err=%d\n",
  28848. __func__, ret);
  28849. goto done;
  28850. }
  28851. }
  28852. }
  28853. }
  28854. done:
  28855. mutex_unlock(&routing_lock);
  28856. return ret;
  28857. }
  28858. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  28859. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  28860. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  28861. msm_routing_stereo_channel_reverse_control_put),
  28862. };
  28863. static int msm_routing_instance_id_support_info(struct snd_kcontrol *kcontrol,
  28864. struct snd_ctl_elem_info *uinfo)
  28865. {
  28866. uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
  28867. uinfo->count = 1;
  28868. return 0;
  28869. }
  28870. static int msm_routing_instance_id_support_put(
  28871. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  28872. {
  28873. bool supported = ucontrol->value.integer.value[0] ? true : false;
  28874. q6common_update_instance_id_support(supported);
  28875. return 0;
  28876. }
  28877. static int msm_routing_instance_id_support_get(
  28878. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  28879. {
  28880. bool supported = false;
  28881. supported = q6common_is_instance_id_supported();
  28882. ucontrol->value.integer.value[0] = supported ? 1 : 0;
  28883. return 0;
  28884. }
  28885. static const struct snd_kcontrol_new
  28886. msm_routing_feature_support_mixer_controls[] = {
  28887. {
  28888. .access = SNDRV_CTL_ELEM_ACCESS_READ |
  28889. SNDRV_CTL_ELEM_ACCESS_WRITE,
  28890. .info = msm_routing_instance_id_support_info,
  28891. .name = "Instance ID Support",
  28892. .put = msm_routing_instance_id_support_put,
  28893. .get = msm_routing_instance_id_support_get,
  28894. },
  28895. };
  28896. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  28897. .hw_params = msm_pcm_routing_hw_params,
  28898. .close = msm_pcm_routing_close,
  28899. .prepare = msm_pcm_routing_prepare,
  28900. };
  28901. /* Not used but frame seems to require it */
  28902. static int msm_routing_probe(struct snd_soc_component *component)
  28903. {
  28904. snd_soc_dapm_new_controls(&component->dapm, msm_qdsp6_widgets,
  28905. ARRAY_SIZE(msm_qdsp6_widgets));
  28906. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_OUT");
  28907. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_IN");
  28908. snd_soc_dapm_add_routes(&component->dapm, intercon,
  28909. ARRAY_SIZE(intercon));
  28910. snd_soc_dapm_new_widgets(component->dapm.card);
  28911. snd_soc_add_component_controls(component, lsm_controls,
  28912. ARRAY_SIZE(lsm_controls));
  28913. snd_soc_add_component_controls(component, aanc_slim_0_rx_mux,
  28914. ARRAY_SIZE(aanc_slim_0_rx_mux));
  28915. snd_soc_add_component_controls(component, aanc_noise_level,
  28916. ARRAY_SIZE(aanc_noise_level));
  28917. snd_soc_add_component_controls(component, msm_voc_session_controls,
  28918. ARRAY_SIZE(msm_voc_session_controls));
  28919. snd_soc_add_component_controls(component, app_type_cfg_controls,
  28920. ARRAY_SIZE(app_type_cfg_controls));
  28921. snd_soc_add_component_controls(component, lsm_app_type_cfg_controls,
  28922. ARRAY_SIZE(lsm_app_type_cfg_controls));
  28923. snd_soc_add_component_controls(component, module_cfg_controls,
  28924. ARRAY_SIZE(module_cfg_controls));
  28925. snd_soc_add_component_controls(component,
  28926. stereo_to_custom_stereo_controls,
  28927. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  28928. snd_soc_add_component_controls(component, ec_ref_param_controls,
  28929. ARRAY_SIZE(ec_ref_param_controls));
  28930. snd_soc_add_component_controls(component, channel_mixer_controls,
  28931. ARRAY_SIZE(channel_mixer_controls));
  28932. msm_qti_pp_add_controls(component);
  28933. msm_dts_srs_tm_add_controls(component);
  28934. msm_dolby_dap_add_controls(component);
  28935. snd_soc_add_component_controls(component,
  28936. use_ds1_or_ds2_controls,
  28937. ARRAY_SIZE(use_ds1_or_ds2_controls));
  28938. snd_soc_add_component_controls(component,
  28939. hifi_filter_controls,
  28940. ARRAY_SIZE(hifi_filter_controls));
  28941. snd_soc_add_component_controls(component,
  28942. device_pp_params_mixer_controls,
  28943. ARRAY_SIZE(device_pp_params_mixer_controls));
  28944. snd_soc_add_component_controls(component,
  28945. msm_routing_be_dai_name_table_mixer_controls,
  28946. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  28947. snd_soc_add_component_controls(component, msm_source_tracking_controls,
  28948. ARRAY_SIZE(msm_source_tracking_controls));
  28949. snd_soc_add_component_controls(component, adm_channel_config_controls,
  28950. ARRAY_SIZE(adm_channel_config_controls));
  28951. snd_soc_add_component_controls(component, aptx_dec_license_controls,
  28952. ARRAY_SIZE(aptx_dec_license_controls));
  28953. snd_soc_add_component_controls(component,
  28954. stereo_channel_reverse_control,
  28955. ARRAY_SIZE(stereo_channel_reverse_control));
  28956. snd_soc_add_component_controls(
  28957. component, msm_routing_feature_support_mixer_controls,
  28958. ARRAY_SIZE(msm_routing_feature_support_mixer_controls));
  28959. snd_soc_add_component_controls(component,
  28960. port_multi_channel_map_mixer_controls,
  28961. ARRAY_SIZE(port_multi_channel_map_mixer_controls));
  28962. return 0;
  28963. }
  28964. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  28965. {
  28966. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  28967. }
  28968. void msm_routing_pcm_free(struct snd_pcm *pcm)
  28969. {
  28970. msm_pcm_routing_hwdep_free(pcm);
  28971. }
  28972. static struct snd_soc_component_driver msm_soc_routing_component = {
  28973. .name = DRV_NAME,
  28974. .ops = &msm_routing_pcm_ops,
  28975. .probe = msm_routing_probe,
  28976. .pcm_new = msm_routing_pcm_new,
  28977. .pcm_free = msm_routing_pcm_free,
  28978. };
  28979. static int msm_routing_pcm_probe(struct platform_device *pdev)
  28980. {
  28981. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  28982. return snd_soc_register_component(&pdev->dev,
  28983. &msm_soc_routing_component,
  28984. NULL, 0);
  28985. }
  28986. static int msm_routing_pcm_remove(struct platform_device *pdev)
  28987. {
  28988. snd_soc_unregister_component(&pdev->dev);
  28989. return 0;
  28990. }
  28991. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  28992. {.compatible = "qcom,msm-pcm-routing"},
  28993. {}
  28994. };
  28995. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  28996. static struct platform_driver msm_routing_pcm_driver = {
  28997. .driver = {
  28998. .name = "msm-pcm-routing",
  28999. .owner = THIS_MODULE,
  29000. .of_match_table = msm_pcm_routing_dt_match,
  29001. .suppress_bind_attrs = true,
  29002. },
  29003. .probe = msm_routing_pcm_probe,
  29004. .remove = msm_routing_pcm_remove,
  29005. };
  29006. int msm_routing_check_backend_enabled(int fedai_id)
  29007. {
  29008. int i;
  29009. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  29010. /* bad ID assigned in machine driver */
  29011. pr_err("%s: bad MM ID\n", __func__);
  29012. return 0;
  29013. }
  29014. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  29015. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  29016. return msm_bedais[i].active;
  29017. }
  29018. return 0;
  29019. }
  29020. static int get_cal_type_index(int32_t cal_type)
  29021. {
  29022. int ret = -EINVAL;
  29023. switch (cal_type) {
  29024. case ADM_TOPOLOGY_CAL_TYPE:
  29025. ret = ADM_TOPOLOGY_CAL_TYPE_IDX;
  29026. break;
  29027. case ADM_LSM_TOPOLOGY_CAL_TYPE:
  29028. ret = ADM_LSM_TOPOLOGY_CAL_TYPE_IDX;
  29029. break;
  29030. default:
  29031. pr_err("%s: Invalid cal type %d\n", __func__, cal_type);
  29032. }
  29033. return ret;
  29034. }
  29035. static int msm_routing_set_cal(int32_t cal_type,
  29036. size_t data_size, void *data)
  29037. {
  29038. int ret = 0;
  29039. int cal_index;
  29040. pr_debug("%s\n", __func__);
  29041. cal_index = get_cal_type_index(cal_type);
  29042. if (cal_index < 0) {
  29043. pr_err("%s: Could not get cal index %d\n",
  29044. __func__, cal_index);
  29045. ret = -EINVAL;
  29046. goto done;
  29047. }
  29048. ret = cal_utils_set_cal(data_size, data, cal_data[cal_index], 0, NULL);
  29049. if (ret < 0) {
  29050. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  29051. __func__, ret, cal_type);
  29052. ret = -EINVAL;
  29053. goto done;
  29054. }
  29055. /* Pre-load if it is ADM topology */
  29056. if ((cal_index == ADM_TOPOLOGY_CAL_TYPE_IDX) ||
  29057. (cal_index == ADM_LSM_TOPOLOGY_CAL_TYPE_IDX)) {
  29058. msm_routing_load_topology(data_size, data);
  29059. }
  29060. done:
  29061. return ret;
  29062. }
  29063. static void msm_routing_delete_cal_data(void)
  29064. {
  29065. pr_debug("%s\n", __func__);
  29066. cal_utils_destroy_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0]);
  29067. }
  29068. static int msm_routing_init_cal_data(void)
  29069. {
  29070. int ret = 0;
  29071. struct cal_type_info cal_type_info[] = {
  29072. {{ADM_TOPOLOGY_CAL_TYPE,
  29073. {NULL, NULL, NULL,
  29074. msm_routing_set_cal, NULL, NULL} },
  29075. {NULL, NULL, cal_utils_match_buf_num} },
  29076. {{ADM_LSM_TOPOLOGY_CAL_TYPE,
  29077. {NULL, NULL, NULL,
  29078. msm_routing_set_cal, NULL, NULL} },
  29079. {NULL, NULL, cal_utils_match_buf_num} },
  29080. };
  29081. pr_debug("%s\n", __func__);
  29082. ret = cal_utils_create_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0],
  29083. &cal_type_info[0]);
  29084. if (ret < 0) {
  29085. pr_err("%s: could not create cal type!\n",
  29086. __func__);
  29087. ret = -EINVAL;
  29088. goto err;
  29089. }
  29090. return ret;
  29091. err:
  29092. msm_routing_delete_cal_data();
  29093. return ret;
  29094. }
  29095. int __init msm_soc_routing_platform_init(void)
  29096. {
  29097. mutex_init(&routing_lock);
  29098. if (msm_routing_init_cal_data())
  29099. pr_err("%s: could not init cal data!\n", __func__);
  29100. afe_set_routing_callback(
  29101. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  29102. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  29103. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  29104. return platform_driver_register(&msm_routing_pcm_driver);
  29105. }
  29106. void msm_soc_routing_platform_exit(void)
  29107. {
  29108. msm_routing_delete_cal_data();
  29109. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  29110. mutex_destroy(&routing_lock);
  29111. platform_driver_unregister(&msm_routing_pcm_driver);
  29112. }
  29113. MODULE_DESCRIPTION("MSM routing platform driver");
  29114. MODULE_LICENSE("GPL v2");