msm-pcm-routing-v2.c 943 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778
  1. /* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
  2. *
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License version 2 and
  5. * only version 2 as published by the Free Software Foundation.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. */
  12. #include <linux/init.h>
  13. #include <linux/err.h>
  14. #include <linux/module.h>
  15. #include <linux/moduleparam.h>
  16. #include <linux/platform_device.h>
  17. #include <linux/bitops.h>
  18. #include <linux/mutex.h>
  19. #include <linux/of_device.h>
  20. #include <linux/slab.h>
  21. #include <sound/core.h>
  22. #include <sound/soc.h>
  23. #include <sound/soc-dapm.h>
  24. #include <sound/pcm.h>
  25. #include <sound/initval.h>
  26. #include <sound/control.h>
  27. #include <sound/tlv.h>
  28. #include <sound/asound.h>
  29. #include <sound/pcm_params.h>
  30. #include <sound/hwdep.h>
  31. #include <sound/audio_effects.h>
  32. #include <dsp/msm-dts-srs-tm-config.h>
  33. #include <dsp/q6voice.h>
  34. #include <dsp/q6adm-v2.h>
  35. #include <dsp/q6asm-v2.h>
  36. #include <dsp/q6afe-v2.h>
  37. #include <dsp/q6lsm.h>
  38. #include <dsp/q6core.h>
  39. #include <dsp/q6common.h>
  40. #include <dsp/audio_cal_utils.h>
  41. #include "msm-pcm-routing-v2.h"
  42. #include "msm-pcm-routing-devdep.h"
  43. #include "msm-qti-pp-config.h"
  44. #include "msm-dolby-dap-config.h"
  45. #include "msm-ds2-dap-config.h"
  46. #ifndef CONFIG_DOLBY_DAP
  47. #undef DOLBY_ADM_COPP_TOPOLOGY_ID
  48. #define DOLBY_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFE
  49. #endif
  50. #ifndef CONFIG_DOLBY_DS2
  51. #undef DS2_ADM_COPP_TOPOLOGY_ID
  52. #define DS2_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFF
  53. #endif
  54. static struct mutex routing_lock;
  55. static struct cal_type_data *cal_data[MAX_ROUTING_CAL_TYPES];
  56. static int fm_switch_enable;
  57. static int hfp_switch_enable;
  58. static int a2dp_switch_enable;
  59. static int int0_mi2s_switch_enable;
  60. static int int4_mi2s_switch_enable;
  61. static int pri_mi2s_switch_enable;
  62. static int sec_mi2s_switch_enable;
  63. static int tert_mi2s_switch_enable;
  64. static int quat_mi2s_switch_enable;
  65. static int quin_mi2s_switch_enable;
  66. static int fm_pcmrx_switch_enable;
  67. static int usb_switch_enable;
  68. static int lsm_port_index;
  69. static int slim0_rx_aanc_fb_port;
  70. static int msm_route_ec_ref_rx;
  71. static int msm_ec_ref_ch = 4;
  72. static int msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  73. static int msm_ec_ref_sampling_rate = 48000;
  74. static uint32_t voc_session_id = ALL_SESSION_VSID;
  75. static int msm_route_ext_ec_ref;
  76. static bool is_custom_stereo_on;
  77. static bool is_ds2_on;
  78. static bool swap_ch;
  79. static int aanc_level;
  80. #define WEIGHT_0_DB 0x4000
  81. /* all the FEs which can support channel mixer */
  82. static struct msm_pcm_channel_mixer channel_mixer[MSM_FRONTEND_DAI_MM_SIZE];
  83. /* input BE for each FE */
  84. static int channel_input[MSM_FRONTEND_DAI_MM_SIZE][ADM_MAX_CHANNELS];
  85. enum {
  86. MADNONE,
  87. MADAUDIO,
  88. MADBEACON,
  89. MADULTRASOUND,
  90. MADSWAUDIO,
  91. };
  92. #define ADM_LSM_PORT_INDEX 9
  93. #define SLIMBUS_0_TX_TEXT "SLIMBUS_0_TX"
  94. #define SLIMBUS_1_TX_TEXT "SLIMBUS_1_TX"
  95. #define SLIMBUS_2_TX_TEXT "SLIMBUS_2_TX"
  96. #define SLIMBUS_3_TX_TEXT "SLIMBUS_3_TX"
  97. #define SLIMBUS_4_TX_TEXT "SLIMBUS_4_TX"
  98. #define SLIMBUS_5_TX_TEXT "SLIMBUS_5_TX"
  99. #define TERT_MI2S_TX_TEXT "TERT_MI2S_TX"
  100. #define QUAT_MI2S_TX_TEXT "QUAT_MI2S_TX"
  101. #define ADM_LSM_TX_TEXT "ADM_LSM_TX"
  102. #define INT3_MI2S_TX_TEXT "INT3_MI2S_TX"
  103. #define VA_CDC_DMA_TX_0_TEXT "VA_CDC_DMA_TX_0"
  104. #define VA_CDC_DMA_TX_1_TEXT "VA_CDC_DMA_TX_1"
  105. #define TX_CDC_DMA_TX_3_TEXT "TX_CDC_DMA_TX_3"
  106. #define QUIN_TDM_TX_TEXT "QUIN_TDM_TX_0"
  107. #define LSM_FUNCTION_TEXT "LSM Function"
  108. static const char * const lsm_port_text[] = {
  109. "None",
  110. SLIMBUS_0_TX_TEXT, SLIMBUS_1_TX_TEXT, SLIMBUS_2_TX_TEXT,
  111. SLIMBUS_3_TX_TEXT, SLIMBUS_4_TX_TEXT, SLIMBUS_5_TX_TEXT,
  112. TERT_MI2S_TX_TEXT, QUAT_MI2S_TX_TEXT, ADM_LSM_TX_TEXT,
  113. INT3_MI2S_TX_TEXT, VA_CDC_DMA_TX_0_TEXT, VA_CDC_DMA_TX_1_TEXT,
  114. TX_CDC_DMA_TX_3_TEXT, QUIN_TDM_TX_TEXT
  115. };
  116. struct msm_pcm_route_bdai_pp_params {
  117. u16 port_id; /* AFE port ID */
  118. unsigned long pp_params_config;
  119. bool mute_on;
  120. int latency;
  121. };
  122. static struct msm_pcm_route_bdai_pp_params
  123. msm_bedais_pp_params[MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX] = {
  124. {HDMI_RX, 0, 0, 0},
  125. {DISPLAY_PORT_RX, 0, 0, 0},
  126. };
  127. /*
  128. * The be_dai_name_table is passed to HAL so that it can specify the
  129. * BE ID for the BE it wants to enable based on the name. Thus there
  130. * is a matching table and structure in HAL that need to be updated
  131. * if any changes to these are made.
  132. */
  133. struct msm_pcm_route_bdai_name {
  134. unsigned int be_id;
  135. char be_name[LPASS_BE_NAME_MAX_LENGTH];
  136. };
  137. static struct msm_pcm_route_bdai_name be_dai_name_table[MSM_BACKEND_DAI_MAX];
  138. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  139. int fe_id);
  140. static void msm_routing_load_topology(size_t data_size, void *data);
  141. static void msm_routing_unload_topology(uint32_t topology_id);
  142. static int msm_routing_get_bit_width(unsigned int format)
  143. {
  144. int bit_width;
  145. switch (format) {
  146. case SNDRV_PCM_FORMAT_S32_LE:
  147. bit_width = 32;
  148. break;
  149. case SNDRV_PCM_FORMAT_S24_LE:
  150. case SNDRV_PCM_FORMAT_S24_3LE:
  151. bit_width = 24;
  152. break;
  153. case SNDRV_PCM_FORMAT_S16_LE:
  154. default:
  155. bit_width = 16;
  156. }
  157. return bit_width;
  158. }
  159. static bool msm_is_resample_needed(int input_sr, int output_sr)
  160. {
  161. bool rc = false;
  162. if (input_sr != output_sr)
  163. rc = true;
  164. pr_debug("perform resampling (%s) for copp rate (%d)afe rate (%d)",
  165. (rc ? "oh yes" : "not really"),
  166. input_sr, output_sr);
  167. return rc;
  168. }
  169. static void msm_pcm_routing_cfg_pp(int port_id, int copp_idx, int topology,
  170. int channels)
  171. {
  172. int rc = 0;
  173. switch (topology) {
  174. case SRS_TRUMEDIA_TOPOLOGY_ID:
  175. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  176. msm_dts_srs_tm_init(port_id, copp_idx);
  177. break;
  178. case DS2_ADM_COPP_TOPOLOGY_ID:
  179. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY %d\n",
  180. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  181. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  182. is_custom_stereo_on);
  183. if (rc < 0)
  184. pr_err("%s: DS2 topo_id 0x%x, port %d, CS %d rc %d\n",
  185. __func__, topology, port_id,
  186. is_custom_stereo_on, rc);
  187. break;
  188. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  189. if (is_ds2_on) {
  190. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY\n", __func__);
  191. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  192. is_custom_stereo_on);
  193. if (rc < 0)
  194. pr_err("%s:DS2 topo_id 0x%x, port %d, rc %d\n",
  195. __func__, topology, port_id, rc);
  196. } else {
  197. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  198. rc = msm_dolby_dap_init(port_id, copp_idx, channels,
  199. is_custom_stereo_on);
  200. if (rc < 0)
  201. pr_err("%s: DS1 topo_id 0x%x, port %d, rc %d\n",
  202. __func__, topology, port_id, rc);
  203. }
  204. break;
  205. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  206. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  207. rc = msm_qti_pp_asphere_init(port_id, copp_idx);
  208. if (rc < 0)
  209. pr_err("%s: topo_id 0x%x, port %d, copp %d, rc %d\n",
  210. __func__, topology, port_id, copp_idx, rc);
  211. break;
  212. default:
  213. /* custom topology specific feature param handlers */
  214. break;
  215. }
  216. }
  217. static void msm_pcm_routing_deinit_pp(int port_id, int topology)
  218. {
  219. switch (topology) {
  220. case SRS_TRUMEDIA_TOPOLOGY_ID:
  221. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  222. msm_dts_srs_tm_deinit(port_id);
  223. break;
  224. case DS2_ADM_COPP_TOPOLOGY_ID:
  225. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID %d\n",
  226. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  227. msm_ds2_dap_deinit(port_id);
  228. break;
  229. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  230. if (is_ds2_on) {
  231. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID\n", __func__);
  232. msm_ds2_dap_deinit(port_id);
  233. } else {
  234. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  235. msm_dolby_dap_deinit(port_id);
  236. }
  237. break;
  238. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  239. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  240. msm_qti_pp_asphere_deinit(port_id);
  241. break;
  242. default:
  243. /* custom topology specific feature deinit handlers */
  244. break;
  245. }
  246. }
  247. static void msm_pcm_routng_cfg_matrix_map_pp(struct route_payload payload,
  248. int path_type, int perf_mode)
  249. {
  250. int itr = 0, rc = 0;
  251. if ((path_type == ADM_PATH_PLAYBACK) &&
  252. (perf_mode == LEGACY_PCM_MODE) &&
  253. is_custom_stereo_on) {
  254. for (itr = 0; itr < payload.num_copps; itr++) {
  255. if ((payload.port_id[itr] != SLIMBUS_0_RX) &&
  256. (payload.port_id[itr] != RT_PROXY_PORT_001_RX)) {
  257. continue;
  258. }
  259. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd(
  260. payload.port_id[itr],
  261. payload.copp_idx[itr],
  262. payload.session_id,
  263. Q14_GAIN_ZERO_POINT_FIVE,
  264. Q14_GAIN_ZERO_POINT_FIVE,
  265. Q14_GAIN_ZERO_POINT_FIVE,
  266. Q14_GAIN_ZERO_POINT_FIVE);
  267. if (rc < 0)
  268. pr_err("%s: err setting custom stereo\n",
  269. __func__);
  270. }
  271. }
  272. }
  273. #define SLIMBUS_EXTPROC_RX AFE_PORT_INVALID
  274. struct msm_pcm_routing_bdai_data msm_bedais[MSM_BACKEND_DAI_MAX] = {
  275. { PRIMARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_RX},
  276. { PRIMARY_I2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_TX},
  277. { SLIMBUS_0_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_RX},
  278. { SLIMBUS_0_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_TX},
  279. { HDMI_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_HDMI},
  280. { INT_BT_SCO_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_RX},
  281. { INT_BT_SCO_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_TX},
  282. { INT_FM_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_RX},
  283. { INT_FM_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_TX},
  284. { RT_PROXY_PORT_001_RX, 0, {0}, {0}, 0, 0, 0, 0,
  285. LPASS_BE_AFE_PCM_RX},
  286. { RT_PROXY_PORT_001_TX, 0, {0}, {0}, 0, 0, 0, 0,
  287. LPASS_BE_AFE_PCM_TX},
  288. { AFE_PORT_ID_PRIMARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  289. LPASS_BE_AUXPCM_RX},
  290. { AFE_PORT_ID_PRIMARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  291. LPASS_BE_AUXPCM_TX},
  292. { VOICE_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  293. LPASS_BE_VOICE_PLAYBACK_TX},
  294. { VOICE2_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  295. LPASS_BE_VOICE2_PLAYBACK_TX},
  296. { VOICE_RECORD_RX, 0, {0}, {0}, 0, 0, 0, 0,
  297. LPASS_BE_INCALL_RECORD_RX},
  298. { VOICE_RECORD_TX, 0, {0}, {0}, 0, 0, 0, 0,
  299. LPASS_BE_INCALL_RECORD_TX},
  300. { MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_RX},
  301. { MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_TX},
  302. { SECONDARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SEC_I2S_RX},
  303. { SLIMBUS_1_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_RX},
  304. { SLIMBUS_1_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_TX},
  305. { SLIMBUS_2_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_RX},
  306. { SLIMBUS_2_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_TX},
  307. { SLIMBUS_3_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_RX},
  308. { SLIMBUS_3_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_TX},
  309. { SLIMBUS_4_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_RX},
  310. { SLIMBUS_4_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_TX},
  311. { SLIMBUS_5_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_RX},
  312. { SLIMBUS_5_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_TX},
  313. { SLIMBUS_6_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_RX},
  314. { SLIMBUS_6_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_TX},
  315. { SLIMBUS_7_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_RX},
  316. { SLIMBUS_7_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_TX},
  317. { SLIMBUS_8_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_RX},
  318. { SLIMBUS_8_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_TX},
  319. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_RX},
  320. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_TX},
  321. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_1_TX},
  322. { AFE_PORT_ID_QUATERNARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  323. LPASS_BE_QUAT_MI2S_RX},
  324. { AFE_PORT_ID_QUATERNARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  325. LPASS_BE_QUAT_MI2S_TX},
  326. { AFE_PORT_ID_SECONDARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  327. LPASS_BE_SEC_MI2S_RX},
  328. { AFE_PORT_ID_SECONDARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  329. LPASS_BE_SEC_MI2S_TX},
  330. { AFE_PORT_ID_PRIMARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  331. LPASS_BE_PRI_MI2S_RX},
  332. { AFE_PORT_ID_PRIMARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  333. LPASS_BE_PRI_MI2S_TX},
  334. { AFE_PORT_ID_TERTIARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  335. LPASS_BE_TERT_MI2S_RX},
  336. { AFE_PORT_ID_TERTIARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  337. LPASS_BE_TERT_MI2S_TX},
  338. { AUDIO_PORT_ID_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  339. LPASS_BE_AUDIO_I2S_RX},
  340. { AFE_PORT_ID_SECONDARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  341. LPASS_BE_SEC_AUXPCM_RX},
  342. { AFE_PORT_ID_SECONDARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  343. LPASS_BE_SEC_AUXPCM_TX},
  344. { AFE_PORT_ID_PRIMARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  345. LPASS_BE_PRI_SPDIF_RX},
  346. { AFE_PORT_ID_SECONDARY_MI2S_RX_SD1, 0, {0}, {0}, 0, 0, 0, 0,
  347. LPASS_BE_SEC_MI2S_RX_SD1},
  348. { AFE_PORT_ID_QUINARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  349. LPASS_BE_QUIN_MI2S_RX},
  350. { AFE_PORT_ID_QUINARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  351. LPASS_BE_QUIN_MI2S_TX},
  352. { AFE_PORT_ID_SENARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  353. LPASS_BE_SENARY_MI2S_TX},
  354. { AFE_PORT_ID_PRIMARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  355. LPASS_BE_PRI_TDM_RX_0},
  356. { AFE_PORT_ID_PRIMARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  357. LPASS_BE_PRI_TDM_TX_0},
  358. { AFE_PORT_ID_PRIMARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  359. LPASS_BE_PRI_TDM_RX_1},
  360. { AFE_PORT_ID_PRIMARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  361. LPASS_BE_PRI_TDM_TX_1},
  362. { AFE_PORT_ID_PRIMARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  363. LPASS_BE_PRI_TDM_RX_2},
  364. { AFE_PORT_ID_PRIMARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  365. LPASS_BE_PRI_TDM_TX_2},
  366. { AFE_PORT_ID_PRIMARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  367. LPASS_BE_PRI_TDM_RX_3},
  368. { AFE_PORT_ID_PRIMARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  369. LPASS_BE_PRI_TDM_TX_3},
  370. { AFE_PORT_ID_PRIMARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  371. LPASS_BE_PRI_TDM_RX_4},
  372. { AFE_PORT_ID_PRIMARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  373. LPASS_BE_PRI_TDM_TX_4},
  374. { AFE_PORT_ID_PRIMARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  375. LPASS_BE_PRI_TDM_RX_5},
  376. { AFE_PORT_ID_PRIMARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  377. LPASS_BE_PRI_TDM_TX_5},
  378. { AFE_PORT_ID_PRIMARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  379. LPASS_BE_PRI_TDM_RX_6},
  380. { AFE_PORT_ID_PRIMARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  381. LPASS_BE_PRI_TDM_TX_6},
  382. { AFE_PORT_ID_PRIMARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  383. LPASS_BE_PRI_TDM_RX_7},
  384. { AFE_PORT_ID_PRIMARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  385. LPASS_BE_PRI_TDM_TX_7},
  386. { AFE_PORT_ID_SECONDARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  387. LPASS_BE_SEC_TDM_RX_0},
  388. { AFE_PORT_ID_SECONDARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  389. LPASS_BE_SEC_TDM_TX_0},
  390. { AFE_PORT_ID_SECONDARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  391. LPASS_BE_SEC_TDM_RX_1},
  392. { AFE_PORT_ID_SECONDARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  393. LPASS_BE_SEC_TDM_TX_1},
  394. { AFE_PORT_ID_SECONDARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  395. LPASS_BE_SEC_TDM_RX_2},
  396. { AFE_PORT_ID_SECONDARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  397. LPASS_BE_SEC_TDM_TX_2},
  398. { AFE_PORT_ID_SECONDARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  399. LPASS_BE_SEC_TDM_RX_3},
  400. { AFE_PORT_ID_SECONDARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  401. LPASS_BE_SEC_TDM_TX_3},
  402. { AFE_PORT_ID_SECONDARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  403. LPASS_BE_SEC_TDM_RX_4},
  404. { AFE_PORT_ID_SECONDARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  405. LPASS_BE_SEC_TDM_TX_4},
  406. { AFE_PORT_ID_SECONDARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  407. LPASS_BE_SEC_TDM_RX_5},
  408. { AFE_PORT_ID_SECONDARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  409. LPASS_BE_SEC_TDM_TX_5},
  410. { AFE_PORT_ID_SECONDARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  411. LPASS_BE_SEC_TDM_RX_6},
  412. { AFE_PORT_ID_SECONDARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  413. LPASS_BE_SEC_TDM_TX_6},
  414. { AFE_PORT_ID_SECONDARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  415. LPASS_BE_SEC_TDM_RX_7},
  416. { AFE_PORT_ID_SECONDARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  417. LPASS_BE_SEC_TDM_TX_7},
  418. { AFE_PORT_ID_TERTIARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  419. LPASS_BE_TERT_TDM_RX_0},
  420. { AFE_PORT_ID_TERTIARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  421. LPASS_BE_TERT_TDM_TX_0},
  422. { AFE_PORT_ID_TERTIARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  423. LPASS_BE_TERT_TDM_RX_1},
  424. { AFE_PORT_ID_TERTIARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  425. LPASS_BE_TERT_TDM_TX_1},
  426. { AFE_PORT_ID_TERTIARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  427. LPASS_BE_TERT_TDM_RX_2},
  428. { AFE_PORT_ID_TERTIARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  429. LPASS_BE_TERT_TDM_TX_2},
  430. { AFE_PORT_ID_TERTIARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  431. LPASS_BE_TERT_TDM_RX_3},
  432. { AFE_PORT_ID_TERTIARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  433. LPASS_BE_TERT_TDM_TX_3},
  434. { AFE_PORT_ID_TERTIARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  435. LPASS_BE_TERT_TDM_RX_4},
  436. { AFE_PORT_ID_TERTIARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  437. LPASS_BE_TERT_TDM_TX_4},
  438. { AFE_PORT_ID_TERTIARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  439. LPASS_BE_TERT_TDM_RX_5},
  440. { AFE_PORT_ID_TERTIARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  441. LPASS_BE_TERT_TDM_TX_5},
  442. { AFE_PORT_ID_TERTIARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  443. LPASS_BE_TERT_TDM_RX_6},
  444. { AFE_PORT_ID_TERTIARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  445. LPASS_BE_TERT_TDM_TX_6},
  446. { AFE_PORT_ID_TERTIARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  447. LPASS_BE_TERT_TDM_RX_7},
  448. { AFE_PORT_ID_TERTIARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  449. LPASS_BE_TERT_TDM_TX_7},
  450. { AFE_PORT_ID_QUATERNARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  451. LPASS_BE_QUAT_TDM_RX_0},
  452. { AFE_PORT_ID_QUATERNARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  453. LPASS_BE_QUAT_TDM_TX_0},
  454. { AFE_PORT_ID_QUATERNARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  455. LPASS_BE_QUAT_TDM_RX_1},
  456. { AFE_PORT_ID_QUATERNARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  457. LPASS_BE_QUAT_TDM_TX_1},
  458. { AFE_PORT_ID_QUATERNARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  459. LPASS_BE_QUAT_TDM_RX_2},
  460. { AFE_PORT_ID_QUATERNARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  461. LPASS_BE_QUAT_TDM_TX_2},
  462. { AFE_PORT_ID_QUATERNARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  463. LPASS_BE_QUAT_TDM_RX_3},
  464. { AFE_PORT_ID_QUATERNARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  465. LPASS_BE_QUAT_TDM_TX_3},
  466. { AFE_PORT_ID_QUATERNARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  467. LPASS_BE_QUAT_TDM_RX_4},
  468. { AFE_PORT_ID_QUATERNARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  469. LPASS_BE_QUAT_TDM_TX_4},
  470. { AFE_PORT_ID_QUATERNARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  471. LPASS_BE_QUAT_TDM_RX_5},
  472. { AFE_PORT_ID_QUATERNARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  473. LPASS_BE_QUAT_TDM_TX_5},
  474. { AFE_PORT_ID_QUATERNARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  475. LPASS_BE_QUAT_TDM_RX_6},
  476. { AFE_PORT_ID_QUATERNARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  477. LPASS_BE_QUAT_TDM_TX_6},
  478. { AFE_PORT_ID_QUATERNARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  479. LPASS_BE_QUAT_TDM_RX_7},
  480. { AFE_PORT_ID_QUATERNARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  481. LPASS_BE_QUAT_TDM_TX_7},
  482. { AFE_PORT_ID_QUINARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  483. LPASS_BE_QUIN_TDM_RX_0},
  484. { AFE_PORT_ID_QUINARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  485. LPASS_BE_QUIN_TDM_TX_0},
  486. { AFE_PORT_ID_QUINARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  487. LPASS_BE_QUIN_TDM_RX_1},
  488. { AFE_PORT_ID_QUINARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  489. LPASS_BE_QUIN_TDM_TX_1},
  490. { AFE_PORT_ID_QUINARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  491. LPASS_BE_QUIN_TDM_RX_2},
  492. { AFE_PORT_ID_QUINARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  493. LPASS_BE_QUIN_TDM_TX_2},
  494. { AFE_PORT_ID_QUINARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  495. LPASS_BE_QUIN_TDM_RX_3},
  496. { AFE_PORT_ID_QUINARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  497. LPASS_BE_QUIN_TDM_TX_3},
  498. { AFE_PORT_ID_QUINARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  499. LPASS_BE_QUIN_TDM_RX_4},
  500. { AFE_PORT_ID_QUINARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  501. LPASS_BE_QUIN_TDM_TX_4},
  502. { AFE_PORT_ID_QUINARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  503. LPASS_BE_QUIN_TDM_RX_5},
  504. { AFE_PORT_ID_QUINARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  505. LPASS_BE_QUIN_TDM_TX_5},
  506. { AFE_PORT_ID_QUINARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  507. LPASS_BE_QUIN_TDM_RX_6},
  508. { AFE_PORT_ID_QUINARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  509. LPASS_BE_QUIN_TDM_TX_6},
  510. { AFE_PORT_ID_QUINARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  511. LPASS_BE_QUIN_TDM_RX_7},
  512. { AFE_PORT_ID_QUINARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  513. LPASS_BE_QUIN_TDM_TX_7},
  514. { INT_BT_A2DP_RX, 0, {0}, {0}, 0, 0, 0, 0,
  515. LPASS_BE_INT_BT_A2DP_RX},
  516. { AFE_PORT_ID_USB_RX, 0, {0}, {0}, 0, 0, 0, 0,
  517. LPASS_BE_USB_AUDIO_RX},
  518. { AFE_PORT_ID_USB_TX, 0, {0}, {0}, 0, 0, 0, 0,
  519. LPASS_BE_USB_AUDIO_TX},
  520. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  521. LPASS_BE_DISPLAY_PORT},
  522. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  523. LPASS_BE_DISPLAY_PORT1},
  524. { AFE_PORT_ID_TERTIARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  525. LPASS_BE_TERT_AUXPCM_RX},
  526. { AFE_PORT_ID_TERTIARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  527. LPASS_BE_TERT_AUXPCM_TX},
  528. { AFE_PORT_ID_QUATERNARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  529. LPASS_BE_QUAT_AUXPCM_RX},
  530. { AFE_PORT_ID_QUATERNARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  531. LPASS_BE_QUAT_AUXPCM_TX},
  532. { AFE_PORT_ID_QUINARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  533. LPASS_BE_QUIN_AUXPCM_RX},
  534. { AFE_PORT_ID_QUINARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  535. LPASS_BE_QUIN_AUXPCM_TX},
  536. { AFE_PORT_ID_INT0_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  537. LPASS_BE_INT0_MI2S_RX},
  538. { AFE_PORT_ID_INT0_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  539. LPASS_BE_INT0_MI2S_TX},
  540. { AFE_PORT_ID_INT1_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  541. LPASS_BE_INT1_MI2S_RX},
  542. { AFE_PORT_ID_INT1_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  543. LPASS_BE_INT1_MI2S_TX},
  544. { AFE_PORT_ID_INT2_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  545. LPASS_BE_INT2_MI2S_RX},
  546. { AFE_PORT_ID_INT2_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  547. LPASS_BE_INT2_MI2S_TX},
  548. { AFE_PORT_ID_INT3_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  549. LPASS_BE_INT3_MI2S_RX},
  550. { AFE_PORT_ID_INT3_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  551. LPASS_BE_INT3_MI2S_TX},
  552. { AFE_PORT_ID_INT4_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  553. LPASS_BE_INT4_MI2S_RX},
  554. { AFE_PORT_ID_INT4_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  555. LPASS_BE_INT4_MI2S_TX},
  556. { AFE_PORT_ID_INT5_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  557. LPASS_BE_INT5_MI2S_RX},
  558. { AFE_PORT_ID_INT5_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  559. LPASS_BE_INT5_MI2S_TX},
  560. { AFE_PORT_ID_INT6_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  561. LPASS_BE_INT6_MI2S_RX},
  562. { AFE_PORT_ID_INT6_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  563. LPASS_BE_INT6_MI2S_TX},
  564. { AFE_PORT_ID_WSA_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  565. LPASS_BE_WSA_CDC_DMA_RX_0},
  566. { AFE_PORT_ID_WSA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  567. LPASS_BE_WSA_CDC_DMA_TX_0},
  568. { AFE_PORT_ID_WSA_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  569. LPASS_BE_WSA_CDC_DMA_RX_1},
  570. { AFE_PORT_ID_WSA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  571. LPASS_BE_WSA_CDC_DMA_TX_1},
  572. { AFE_PORT_ID_WSA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  573. LPASS_BE_WSA_CDC_DMA_TX_2},
  574. { AFE_PORT_ID_VA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  575. LPASS_BE_VA_CDC_DMA_TX_0},
  576. { AFE_PORT_ID_VA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  577. LPASS_BE_VA_CDC_DMA_TX_1},
  578. { AFE_PORT_ID_RX_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  579. LPASS_BE_RX_CDC_DMA_RX_0},
  580. { AFE_PORT_ID_TX_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  581. LPASS_BE_TX_CDC_DMA_TX_0},
  582. { AFE_PORT_ID_RX_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  583. LPASS_BE_RX_CDC_DMA_RX_1},
  584. { AFE_PORT_ID_TX_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  585. LPASS_BE_TX_CDC_DMA_TX_1},
  586. { AFE_PORT_ID_RX_CODEC_DMA_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  587. LPASS_BE_RX_CDC_DMA_RX_2},
  588. { AFE_PORT_ID_TX_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  589. LPASS_BE_TX_CDC_DMA_TX_2},
  590. { AFE_PORT_ID_RX_CODEC_DMA_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  591. LPASS_BE_RX_CDC_DMA_RX_3},
  592. { AFE_PORT_ID_TX_CODEC_DMA_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  593. LPASS_BE_TX_CDC_DMA_TX_3},
  594. { AFE_PORT_ID_RX_CODEC_DMA_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  595. LPASS_BE_RX_CDC_DMA_RX_4},
  596. { AFE_PORT_ID_TX_CODEC_DMA_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  597. LPASS_BE_TX_CDC_DMA_TX_4},
  598. { AFE_PORT_ID_RX_CODEC_DMA_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  599. LPASS_BE_RX_CDC_DMA_RX_5},
  600. { AFE_PORT_ID_TX_CODEC_DMA_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  601. LPASS_BE_TX_CDC_DMA_TX_5},
  602. { AFE_PORT_ID_RX_CODEC_DMA_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  603. LPASS_BE_RX_CDC_DMA_RX_6},
  604. { AFE_PORT_ID_RX_CODEC_DMA_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  605. LPASS_BE_RX_CDC_DMA_RX_7},
  606. { AFE_PORT_ID_PRIMARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  607. LPASS_BE_PRI_SPDIF_TX},
  608. { AFE_PORT_ID_SECONDARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  609. LPASS_BE_SEC_SPDIF_RX},
  610. { AFE_PORT_ID_SECONDARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  611. LPASS_BE_SEC_SPDIF_TX},
  612. { SLIMBUS_9_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_RX},
  613. { SLIMBUS_9_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_TX},
  614. };
  615. /* Track ASM playback & capture sessions of DAI
  616. * Track LSM listen sessions
  617. */
  618. static struct msm_pcm_routing_fdai_data
  619. fe_dai_map[MSM_FRONTEND_DAI_MAX][2] = {
  620. /* MULTIMEDIA1 */
  621. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  622. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  623. /* MULTIMEDIA2 */
  624. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  625. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  626. /* MULTIMEDIA3 */
  627. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  628. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  629. /* MULTIMEDIA4 */
  630. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  631. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  632. /* MULTIMEDIA5 */
  633. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  634. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  635. /* MULTIMEDIA6 */
  636. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  637. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  638. /* MULTIMEDIA7*/
  639. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  640. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  641. /* MULTIMEDIA8 */
  642. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  643. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  644. /* MULTIMEDIA9 */
  645. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  646. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  647. /* MULTIMEDIA10 */
  648. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  649. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  650. /* MULTIMEDIA11 */
  651. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  652. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  653. /* MULTIMEDIA12 */
  654. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  655. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  656. /* MULTIMEDIA13 */
  657. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  658. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  659. /* MULTIMEDIA14 */
  660. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  661. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  662. /* MULTIMEDIA15 */
  663. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  664. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  665. /* MULTIMEDIA16 */
  666. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  667. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  668. /* MULTIMEDIA17 */
  669. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  670. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  671. /* MULTIMEDIA18 */
  672. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  673. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  674. /* MULTIMEDIA19 */
  675. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  676. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  677. /* MULTIMEDIA20 */
  678. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  679. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  680. /* MULTIMEDIA21 */
  681. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  682. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  683. /* MULTIMEDIA26 */
  684. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  685. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  686. /* MULTIMEDIA27 */
  687. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  688. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  689. /* MULTIMEDIA28 */
  690. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  691. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  692. /* MULTIMEDIA29 */
  693. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  694. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  695. /* VOIP */
  696. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  697. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  698. /* AFE_RX */
  699. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  700. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  701. /* AFE_TX */
  702. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  703. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  704. /* VOICE_STUB */
  705. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  706. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  707. /* DTMF_RX */
  708. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  709. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  710. /* QCHAT */
  711. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  712. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  713. /* VOLTE_STUB */
  714. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  715. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  716. /* LSM1 */
  717. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  718. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  719. /* LSM2 */
  720. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  721. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  722. /* LSM3 */
  723. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  724. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  725. /* LSM4 */
  726. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  727. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  728. /* LSM5 */
  729. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  730. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  731. /* LSM6 */
  732. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  733. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  734. /* LSM7 */
  735. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  736. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  737. /* LSM8 */
  738. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  739. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  740. /* VOICE2_STUB */
  741. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  742. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  743. /* VOICEMMODE1 */
  744. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  745. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  746. /* VOICEMMODE2 */
  747. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  748. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  749. };
  750. static unsigned long session_copp_map[MSM_FRONTEND_DAI_MAX][2]
  751. [MSM_BACKEND_DAI_MAX];
  752. static struct msm_pcm_routing_app_type_data app_type_cfg[MAX_APP_TYPES];
  753. static struct msm_pcm_routing_app_type_data lsm_app_type_cfg[MAX_APP_TYPES];
  754. static struct msm_pcm_stream_app_type_cfg
  755. fe_dai_app_type_cfg[MSM_FRONTEND_DAI_MAX][2][MSM_BACKEND_DAI_MAX];
  756. static int last_be_id_configured[MSM_FRONTEND_DAI_MAX][MAX_SESSION_TYPES];
  757. /* The caller of this should aqcuire routing lock */
  758. void msm_pcm_routing_get_bedai_info(int be_idx,
  759. struct msm_pcm_routing_bdai_data *be_dai)
  760. {
  761. if (be_idx >= 0 && be_idx < MSM_BACKEND_DAI_MAX)
  762. memcpy(be_dai, &msm_bedais[be_idx],
  763. sizeof(struct msm_pcm_routing_bdai_data));
  764. }
  765. /* The caller of this should aqcuire routing lock */
  766. void msm_pcm_routing_get_fedai_info(int fe_idx, int sess_type,
  767. struct msm_pcm_routing_fdai_data *fe_dai)
  768. {
  769. if ((sess_type == SESSION_TYPE_TX) || (sess_type == SESSION_TYPE_RX))
  770. memcpy(fe_dai, &fe_dai_map[fe_idx][sess_type],
  771. sizeof(struct msm_pcm_routing_fdai_data));
  772. }
  773. void msm_pcm_routing_acquire_lock(void)
  774. {
  775. mutex_lock(&routing_lock);
  776. }
  777. void msm_pcm_routing_release_lock(void)
  778. {
  779. mutex_unlock(&routing_lock);
  780. }
  781. static int msm_pcm_routing_get_app_type_idx(int app_type)
  782. {
  783. int idx;
  784. pr_debug("%s: app_type: %d\n", __func__, app_type);
  785. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  786. if (app_type_cfg[idx].app_type == app_type)
  787. return idx;
  788. }
  789. pr_info("%s: App type not available, fallback to default\n", __func__);
  790. return 0;
  791. }
  792. static int msm_pcm_routing_get_lsm_app_type_idx(int app_type)
  793. {
  794. int idx;
  795. pr_debug("%s: app_type: %d\n", __func__, app_type);
  796. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  797. if (lsm_app_type_cfg[idx].app_type == app_type)
  798. return idx;
  799. }
  800. pr_debug("%s: App type not available, fallback to default\n", __func__);
  801. return 0;
  802. }
  803. static bool is_mm_lsm_fe_id(int fe_id)
  804. {
  805. bool rc = true;
  806. if (fe_id > MSM_FRONTEND_DAI_MM_MAX_ID &&
  807. ((fe_id < MSM_FRONTEND_DAI_LSM1) ||
  808. (fe_id > MSM_FRONTEND_DAI_LSM8))) {
  809. rc = false;
  810. }
  811. return rc;
  812. }
  813. /*
  814. * msm_pcm_routing_send_chmix_cfg:
  815. * send the channel mixer command to mix the input channels
  816. * into output channels.
  817. *
  818. * @fe_id: front end id
  819. * @ip_channel_cnt: input channel count
  820. * @op_channel_cnt: output channel count
  821. * @ch_wght_coeff: channel weight co-efficients for channel mixing
  822. * @session_type: indicates session is of type TX or RX
  823. * @stream_type: indicates either Audio or Listen stream type
  824. */
  825. int msm_pcm_routing_send_chmix_cfg(int fe_id, int ip_channel_cnt,
  826. int op_channel_cnt, int *ch_wght_coeff,
  827. int session_type, int stream_type)
  828. {
  829. int rc = 0, idx = 0;
  830. int be_index = 0, port_id;
  831. unsigned int session_id = 0;
  832. pr_debug("%s:fe_id[%d] ip_ch[%d] op_ch[%d] sess_type [%d], stream_type[%d]",
  833. __func__, fe_id, ip_channel_cnt, op_channel_cnt, session_type,
  834. stream_type);
  835. if (!is_mm_lsm_fe_id(fe_id)) {
  836. /* bad ID assigned in machine driver */
  837. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  838. return -EINVAL;
  839. }
  840. if (ch_wght_coeff == NULL) {
  841. pr_err("%s: Null channel weightage coefficients passed\n",
  842. __func__);
  843. return -EINVAL;
  844. }
  845. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  846. port_id = msm_bedais[be_index].port_id;
  847. if (!msm_bedais[be_index].active ||
  848. !test_bit(fe_id, &msm_bedais[be_index].fe_sessions[0]))
  849. continue;
  850. session_id = fe_dai_map[fe_id][session_type].strm_id;
  851. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  852. unsigned long copp =
  853. session_copp_map[fe_id][session_type][be_index];
  854. if (!test_bit(idx, &copp))
  855. continue;
  856. msm_qti_pp_send_chmix_cfg_cmd(port_id, idx,
  857. session_id, ip_channel_cnt,
  858. op_channel_cnt, ch_wght_coeff,
  859. session_type, stream_type);
  860. if (rc < 0)
  861. pr_err("%s: err setting channel mix config\n",
  862. __func__);
  863. }
  864. }
  865. return 0;
  866. }
  867. EXPORT_SYMBOL(msm_pcm_routing_send_chmix_cfg);
  868. int msm_pcm_routing_reg_stream_app_type_cfg(
  869. int fedai_id, int session_type, int be_id,
  870. struct msm_pcm_stream_app_type_cfg *cfg_data)
  871. {
  872. int ret = 0;
  873. if (cfg_data == NULL) {
  874. pr_err("%s: Received NULL pointer for cfg_data\n", __func__);
  875. ret = -EINVAL;
  876. goto done;
  877. }
  878. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  879. __func__, fedai_id, session_type, be_id,
  880. cfg_data->app_type, cfg_data->acdb_dev_id,
  881. cfg_data->sample_rate);
  882. if (!is_mm_lsm_fe_id(fedai_id)) {
  883. pr_err("%s: Invalid machine driver ID %d\n",
  884. __func__, fedai_id);
  885. ret = -EINVAL;
  886. goto done;
  887. }
  888. if (session_type != SESSION_TYPE_RX &&
  889. session_type != SESSION_TYPE_TX) {
  890. pr_err("%s: Invalid session type %d\n",
  891. __func__, session_type);
  892. ret = -EINVAL;
  893. goto done;
  894. }
  895. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  896. pr_err("%s: Received out of bounds be_id %d\n",
  897. __func__, be_id);
  898. ret = -EINVAL;
  899. goto done;
  900. }
  901. fe_dai_app_type_cfg[fedai_id][session_type][be_id] = *cfg_data;
  902. /*
  903. * Store the BE ID of the configuration information set as the latest so
  904. * the get mixer control knows what to return.
  905. */
  906. last_be_id_configured[fedai_id][session_type] = be_id;
  907. done:
  908. return ret;
  909. }
  910. EXPORT_SYMBOL(msm_pcm_routing_reg_stream_app_type_cfg);
  911. /**
  912. * msm_pcm_routing_get_stream_app_type_cfg
  913. *
  914. * Receives fedai_id, session_type, be_id, and populates app_type,
  915. * acdb_dev_id, & sample rate. Returns 0 on success. On failure returns
  916. * -EINVAL and does not alter passed values.
  917. *
  918. * fedai_id - Passed value, front end ID for which app type config is wanted
  919. * session_type - Passed value, session type for which app type config
  920. * is wanted
  921. * be_id - Returned value, back end device id the app type config data is for
  922. * cfg_data - Returned value, configuration data used by app type config
  923. */
  924. int msm_pcm_routing_get_stream_app_type_cfg(
  925. int fedai_id, int session_type, int *bedai_id,
  926. struct msm_pcm_stream_app_type_cfg *cfg_data)
  927. {
  928. int be_id;
  929. int ret = 0;
  930. if (bedai_id == NULL) {
  931. pr_err("%s: Received NULL pointer for backend ID\n", __func__);
  932. ret = -EINVAL;
  933. goto done;
  934. } else if (cfg_data == NULL) {
  935. pr_err("%s: NULL pointer sent for cfg_data\n", __func__);
  936. ret = -EINVAL;
  937. goto done;
  938. } else if (!is_mm_lsm_fe_id(fedai_id)) {
  939. pr_err("%s: Invalid FE ID %d\n", __func__, fedai_id);
  940. ret = -EINVAL;
  941. goto done;
  942. } else if (session_type != SESSION_TYPE_RX &&
  943. session_type != SESSION_TYPE_TX) {
  944. pr_err("%s: Invalid session type %d\n", __func__, session_type);
  945. ret = -EINVAL;
  946. goto done;
  947. }
  948. be_id = last_be_id_configured[fedai_id][session_type];
  949. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  950. pr_err("%s: Invalid BE ID %d\n", __func__, be_id);
  951. ret = -EINVAL;
  952. goto done;
  953. }
  954. *bedai_id = be_id;
  955. *cfg_data = fe_dai_app_type_cfg[fedai_id][session_type][be_id];
  956. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  957. __func__, fedai_id, session_type, *bedai_id,
  958. cfg_data->app_type, cfg_data->acdb_dev_id,
  959. cfg_data->sample_rate);
  960. done:
  961. return ret;
  962. }
  963. EXPORT_SYMBOL(msm_pcm_routing_get_stream_app_type_cfg);
  964. static struct cal_block_data *msm_routing_find_topology_by_path(int path,
  965. int cal_index)
  966. {
  967. struct list_head *ptr, *next;
  968. struct cal_block_data *cal_block = NULL;
  969. pr_debug("%s\n", __func__);
  970. list_for_each_safe(ptr, next,
  971. &cal_data[cal_index]->cal_blocks) {
  972. cal_block = list_entry(ptr,
  973. struct cal_block_data, list);
  974. if (cal_utils_is_cal_stale(cal_block))
  975. continue;
  976. if (((struct audio_cal_info_adm_top *)cal_block
  977. ->cal_info)->path == path) {
  978. return cal_block;
  979. }
  980. }
  981. pr_debug("%s: Can't find topology for path %d\n", __func__, path);
  982. return NULL;
  983. }
  984. static struct cal_block_data *msm_routing_find_topology(int path,
  985. int app_type,
  986. int acdb_id,
  987. int cal_index)
  988. {
  989. struct list_head *ptr, *next;
  990. struct cal_block_data *cal_block = NULL;
  991. struct audio_cal_info_adm_top *cal_info;
  992. pr_debug("%s\n", __func__);
  993. list_for_each_safe(ptr, next,
  994. &cal_data[cal_index]->cal_blocks) {
  995. cal_block = list_entry(ptr,
  996. struct cal_block_data, list);
  997. if (cal_utils_is_cal_stale(cal_block))
  998. continue;
  999. cal_info = (struct audio_cal_info_adm_top *)
  1000. cal_block->cal_info;
  1001. if ((cal_info->path == path) &&
  1002. (cal_info->app_type == app_type) &&
  1003. (cal_info->acdb_id == acdb_id)) {
  1004. return cal_block;
  1005. }
  1006. }
  1007. pr_debug("%s: Can't find topology for path %d, app %d, acdb_id %d defaulting to search by path\n",
  1008. __func__, path, app_type, acdb_id);
  1009. return msm_routing_find_topology_by_path(path, cal_index);
  1010. }
  1011. /*
  1012. * Retrieving cal_block will mark cal_block as stale.
  1013. * Hence it cannot be reused or resent unless the flag
  1014. * is reset.
  1015. */
  1016. static int msm_routing_get_adm_topology(int fedai_id, int session_type,
  1017. int be_id)
  1018. {
  1019. int topology = NULL_COPP_TOPOLOGY;
  1020. struct cal_block_data *cal_block = NULL;
  1021. int app_type = 0, acdb_dev_id = 0;
  1022. pr_debug("%s: fedai_id %d, session_type %d, be_id %d\n",
  1023. __func__, fedai_id, session_type, be_id);
  1024. if (cal_data == NULL)
  1025. goto done;
  1026. app_type = fe_dai_app_type_cfg[fedai_id][session_type][be_id].app_type;
  1027. acdb_dev_id =
  1028. fe_dai_app_type_cfg[fedai_id][session_type][be_id].acdb_dev_id;
  1029. mutex_lock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1030. cal_block = msm_routing_find_topology(session_type, app_type,
  1031. acdb_dev_id,
  1032. ADM_TOPOLOGY_CAL_TYPE_IDX);
  1033. if (cal_block != NULL) {
  1034. topology = ((struct audio_cal_info_adm_top *)
  1035. cal_block->cal_info)->topology;
  1036. cal_utils_mark_cal_used(cal_block);
  1037. mutex_unlock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1038. } else {
  1039. mutex_unlock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1040. pr_debug("%s: Check for LSM topology\n", __func__);
  1041. mutex_lock(&cal_data[ADM_LSM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1042. cal_block = msm_routing_find_topology(session_type, app_type,
  1043. acdb_dev_id,
  1044. ADM_LSM_TOPOLOGY_CAL_TYPE_IDX);
  1045. if (cal_block != NULL) {
  1046. topology = ((struct audio_cal_info_adm_top *)
  1047. cal_block->cal_info)->topology;
  1048. cal_utils_mark_cal_used(cal_block);
  1049. }
  1050. mutex_unlock(&cal_data[ADM_LSM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1051. }
  1052. done:
  1053. pr_debug("%s: Using topology %d\n", __func__, topology);
  1054. return topology;
  1055. }
  1056. static uint8_t is_be_dai_extproc(int be_dai)
  1057. {
  1058. if (be_dai == MSM_BACKEND_DAI_EXTPROC_RX ||
  1059. be_dai == MSM_BACKEND_DAI_EXTPROC_TX ||
  1060. be_dai == MSM_BACKEND_DAI_EXTPROC_EC_TX)
  1061. return 1;
  1062. else
  1063. return 0;
  1064. }
  1065. static void msm_pcm_routing_build_matrix(int fedai_id, int sess_type,
  1066. int path_type, int perf_mode,
  1067. uint32_t passthr_mode)
  1068. {
  1069. int i, port_type, j, num_copps = 0;
  1070. struct route_payload payload;
  1071. port_type = ((path_type == ADM_PATH_PLAYBACK ||
  1072. path_type == ADM_PATH_COMPRESSED_RX) ?
  1073. MSM_AFE_PORT_TYPE_RX : MSM_AFE_PORT_TYPE_TX);
  1074. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1075. if (!is_be_dai_extproc(i) &&
  1076. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1077. (msm_bedais[i].active) &&
  1078. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1079. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1080. unsigned long copp =
  1081. session_copp_map[fedai_id][sess_type][i];
  1082. if (test_bit(j, &copp)) {
  1083. payload.port_id[num_copps] =
  1084. msm_bedais[i].port_id;
  1085. payload.copp_idx[num_copps] = j;
  1086. payload.app_type[num_copps] =
  1087. fe_dai_app_type_cfg
  1088. [fedai_id][sess_type][i]
  1089. .app_type;
  1090. payload.acdb_dev_id[num_copps] =
  1091. fe_dai_app_type_cfg
  1092. [fedai_id][sess_type][i]
  1093. .acdb_dev_id;
  1094. payload.sample_rate[num_copps] =
  1095. fe_dai_app_type_cfg
  1096. [fedai_id][sess_type][i]
  1097. .sample_rate;
  1098. num_copps++;
  1099. }
  1100. }
  1101. }
  1102. }
  1103. if (num_copps) {
  1104. payload.num_copps = num_copps;
  1105. payload.session_id = fe_dai_map[fedai_id][sess_type].strm_id;
  1106. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1107. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1108. }
  1109. }
  1110. void msm_pcm_routing_reg_psthr_stream(int fedai_id, int dspst_id,
  1111. int stream_type)
  1112. {
  1113. int i, session_type, path_type, port_type;
  1114. u32 mode = 0;
  1115. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1116. /* bad ID assigned in machine driver */
  1117. pr_err("%s: bad MM ID\n", __func__);
  1118. return;
  1119. }
  1120. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1121. session_type = SESSION_TYPE_RX;
  1122. path_type = ADM_PATH_PLAYBACK;
  1123. port_type = MSM_AFE_PORT_TYPE_RX;
  1124. } else {
  1125. session_type = SESSION_TYPE_TX;
  1126. path_type = ADM_PATH_LIVE_REC;
  1127. port_type = MSM_AFE_PORT_TYPE_TX;
  1128. }
  1129. mutex_lock(&routing_lock);
  1130. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1131. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1132. if (!is_be_dai_extproc(i) &&
  1133. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1134. (msm_bedais[i].active) &&
  1135. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1136. mode = afe_get_port_type(msm_bedais[i].port_id);
  1137. adm_connect_afe_port(mode, dspst_id,
  1138. msm_bedais[i].port_id);
  1139. break;
  1140. }
  1141. }
  1142. mutex_unlock(&routing_lock);
  1143. }
  1144. static bool route_check_fe_id_adm_support(int fe_id)
  1145. {
  1146. bool rc = true;
  1147. if ((fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1148. (fe_id <= MSM_FRONTEND_DAI_LSM8)) {
  1149. /* fe id is listen while port is set to afe */
  1150. if (lsm_port_index != ADM_LSM_PORT_INDEX) {
  1151. pr_debug("%s: fe_id %d, lsm mux slim port %d\n",
  1152. __func__, fe_id, lsm_port_index);
  1153. rc = false;
  1154. }
  1155. }
  1156. return rc;
  1157. }
  1158. /*
  1159. * msm_pcm_routing_get_pp_ch_cnt:
  1160. * Read the processed channel count
  1161. *
  1162. * @fe_id: Front end ID
  1163. * @session_type: Inidicates RX or TX session type
  1164. */
  1165. int msm_pcm_routing_get_pp_ch_cnt(int fe_id, int session_type)
  1166. {
  1167. struct msm_pcm_stream_app_type_cfg cfg_data;
  1168. int be_id = 0, app_type_idx = 0, app_type = 0;
  1169. int ret = -EINVAL;
  1170. memset(&cfg_data, 0, sizeof(cfg_data));
  1171. if (!is_mm_lsm_fe_id(fe_id)) {
  1172. pr_err("%s: bad MM ID\n", __func__);
  1173. return -EINVAL;
  1174. }
  1175. ret = msm_pcm_routing_get_stream_app_type_cfg(fe_id, session_type,
  1176. &be_id, &cfg_data);
  1177. if (ret) {
  1178. pr_err("%s: cannot get stream app type cfg\n", __func__);
  1179. return ret;
  1180. }
  1181. app_type = cfg_data.app_type;
  1182. app_type_idx = msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1183. return lsm_app_type_cfg[app_type_idx].num_out_channels;
  1184. }
  1185. EXPORT_SYMBOL(msm_pcm_routing_get_pp_ch_cnt);
  1186. int msm_pcm_routing_reg_phy_compr_stream(int fe_id, int perf_mode,
  1187. int dspst_id, int stream_type,
  1188. uint32_t passthr_mode)
  1189. {
  1190. int i, j, session_type, path_type, port_type, topology;
  1191. int num_copps = 0;
  1192. struct route_payload payload;
  1193. u32 channels, sample_rate;
  1194. u16 bit_width = 16;
  1195. bool is_lsm;
  1196. pr_debug("%s:fe_id[%d] perf_mode[%d] id[%d] stream_type[%d] passt[%d]",
  1197. __func__, fe_id, perf_mode, dspst_id,
  1198. stream_type, passthr_mode);
  1199. if (!is_mm_lsm_fe_id(fe_id)) {
  1200. /* bad ID assigned in machine driver */
  1201. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  1202. return -EINVAL;
  1203. }
  1204. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1205. session_type = SESSION_TYPE_RX;
  1206. if (passthr_mode != LEGACY_PCM)
  1207. path_type = ADM_PATH_COMPRESSED_RX;
  1208. else
  1209. path_type = ADM_PATH_PLAYBACK;
  1210. port_type = MSM_AFE_PORT_TYPE_RX;
  1211. } else if (stream_type == SNDRV_PCM_STREAM_CAPTURE) {
  1212. session_type = SESSION_TYPE_TX;
  1213. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1214. path_type = ADM_PATH_COMPRESSED_TX;
  1215. else
  1216. path_type = ADM_PATH_LIVE_REC;
  1217. port_type = MSM_AFE_PORT_TYPE_TX;
  1218. } else {
  1219. pr_err("%s: invalid stream type %d\n", __func__, stream_type);
  1220. return -EINVAL;
  1221. }
  1222. is_lsm = (fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1223. (fe_id <= MSM_FRONTEND_DAI_LSM8);
  1224. mutex_lock(&routing_lock);
  1225. fe_dai_map[fe_id][session_type].strm_id = dspst_id;
  1226. fe_dai_map[fe_id][session_type].perf_mode = perf_mode;
  1227. fe_dai_map[fe_id][session_type].passthr_mode = passthr_mode;
  1228. if (!route_check_fe_id_adm_support(fe_id)) {
  1229. /* ignore adm open if not supported for fe_id */
  1230. pr_debug("%s: No ADM support for fe id %d\n", __func__, fe_id);
  1231. mutex_unlock(&routing_lock);
  1232. return 0;
  1233. }
  1234. payload.num_copps = 0; /* only RX needs to use payload */
  1235. /* re-enable EQ if active */
  1236. msm_qti_pp_send_eq_values(fe_id);
  1237. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1238. if (!is_be_dai_extproc(i) &&
  1239. (afe_get_port_type(msm_bedais[i].port_id) ==
  1240. port_type) &&
  1241. (msm_bedais[i].active) &&
  1242. (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))) {
  1243. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1244. /*
  1245. * check if ADM needs to be configured with different
  1246. * channel mapping than backend
  1247. */
  1248. if (!msm_bedais[i].adm_override_ch)
  1249. channels = msm_bedais[i].channel;
  1250. else
  1251. channels = msm_bedais[i].adm_override_ch;
  1252. bit_width = msm_routing_get_bit_width(
  1253. msm_bedais[i].format);
  1254. app_type =
  1255. fe_dai_app_type_cfg[fe_id][session_type][i].app_type;
  1256. if (app_type && is_lsm) {
  1257. app_type_idx =
  1258. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1259. sample_rate =
  1260. fe_dai_app_type_cfg[fe_id][session_type][i]
  1261. .sample_rate;
  1262. bit_width =
  1263. lsm_app_type_cfg[app_type_idx].bit_width;
  1264. } else if (app_type) {
  1265. app_type_idx =
  1266. msm_pcm_routing_get_app_type_idx(
  1267. app_type);
  1268. sample_rate =
  1269. fe_dai_app_type_cfg[fe_id][session_type][i].sample_rate;
  1270. bit_width =
  1271. app_type_cfg[app_type_idx].bit_width;
  1272. } else {
  1273. sample_rate = msm_bedais[i].sample_rate;
  1274. }
  1275. acdb_dev_id =
  1276. fe_dai_app_type_cfg[fe_id][session_type][i].acdb_dev_id;
  1277. topology = msm_routing_get_adm_topology(fe_id,
  1278. session_type,
  1279. i);
  1280. if ((passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  1281. || (passthr_mode ==
  1282. COMPRESSED_PASSTHROUGH_GEN)
  1283. || (passthr_mode ==
  1284. COMPRESSED_PASSTHROUGH_IEC61937))
  1285. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  1286. pr_debug("%s: Before adm open topology %d\n", __func__,
  1287. topology);
  1288. copp_idx =
  1289. adm_open(msm_bedais[i].port_id,
  1290. path_type, sample_rate, channels,
  1291. topology, perf_mode, bit_width,
  1292. app_type, acdb_dev_id);
  1293. if ((copp_idx < 0) ||
  1294. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1295. pr_err("%s:adm open failed coppid:%d\n",
  1296. __func__, copp_idx);
  1297. mutex_unlock(&routing_lock);
  1298. return -EINVAL;
  1299. }
  1300. pr_debug("%s: set idx bit of fe:%d, type: %d, be:%d\n",
  1301. __func__, fe_id, session_type, i);
  1302. set_bit(copp_idx,
  1303. &session_copp_map[fe_id][session_type][i]);
  1304. if (msm_is_resample_needed(
  1305. sample_rate,
  1306. msm_bedais[i].sample_rate))
  1307. adm_copp_mfc_cfg(
  1308. msm_bedais[i].port_id, copp_idx,
  1309. msm_bedais[i].sample_rate);
  1310. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1311. unsigned long copp =
  1312. session_copp_map[fe_id][session_type][i];
  1313. if (test_bit(j, &copp)) {
  1314. payload.port_id[num_copps] =
  1315. msm_bedais[i].port_id;
  1316. payload.copp_idx[num_copps] = j;
  1317. payload.app_type[num_copps] =
  1318. fe_dai_app_type_cfg
  1319. [fe_id][session_type][i]
  1320. .app_type;
  1321. payload.acdb_dev_id[num_copps] =
  1322. fe_dai_app_type_cfg
  1323. [fe_id][session_type][i]
  1324. .acdb_dev_id;
  1325. payload.sample_rate[num_copps] =
  1326. fe_dai_app_type_cfg
  1327. [fe_id][session_type][i]
  1328. .sample_rate;
  1329. num_copps++;
  1330. }
  1331. }
  1332. if (passthr_mode != COMPRESSED_PASSTHROUGH_DSD
  1333. && passthr_mode != COMPRESSED_PASSTHROUGH_GEN
  1334. && passthr_mode != COMPRESSED_PASSTHROUGH_IEC61937)
  1335. msm_routing_send_device_pp_params(
  1336. msm_bedais[i].port_id,
  1337. copp_idx, fe_id);
  1338. }
  1339. }
  1340. if (num_copps) {
  1341. payload.num_copps = num_copps;
  1342. payload.session_id = fe_dai_map[fe_id][session_type].strm_id;
  1343. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1344. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1345. }
  1346. mutex_unlock(&routing_lock);
  1347. return 0;
  1348. }
  1349. static u32 msm_pcm_routing_get_voc_sessionid(u16 val)
  1350. {
  1351. u32 session_id;
  1352. switch (val) {
  1353. case MSM_FRONTEND_DAI_QCHAT:
  1354. session_id = voc_get_session_id(QCHAT_SESSION_NAME);
  1355. break;
  1356. case MSM_FRONTEND_DAI_VOIP:
  1357. session_id = voc_get_session_id(VOIP_SESSION_NAME);
  1358. break;
  1359. case MSM_FRONTEND_DAI_VOICEMMODE1:
  1360. session_id = voc_get_session_id(VOICEMMODE1_NAME);
  1361. break;
  1362. case MSM_FRONTEND_DAI_VOICEMMODE2:
  1363. session_id = voc_get_session_id(VOICEMMODE2_NAME);
  1364. break;
  1365. default:
  1366. session_id = 0;
  1367. }
  1368. pr_debug("%s session_id 0x%x", __func__, session_id);
  1369. return session_id;
  1370. }
  1371. static int msm_pcm_routing_channel_mixer(int fe_id, bool perf_mode,
  1372. int dspst_id, int stream_type)
  1373. {
  1374. int copp_idx = 0;
  1375. int sess_type = 0;
  1376. int i = 0, j = 0, be_id;
  1377. int ret = 0;
  1378. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1379. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1380. return 0;
  1381. }
  1382. if (!(channel_mixer[fe_id].enable)) {
  1383. pr_debug("%s: channel mixer not enabled for FE %d\n",
  1384. __func__, fe_id);
  1385. return 0;
  1386. }
  1387. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1388. sess_type = SESSION_TYPE_RX;
  1389. else
  1390. sess_type = SESSION_TYPE_TX;
  1391. for (i = 0; i < ADM_MAX_CHANNELS && channel_input[fe_id][i] > 0;
  1392. ++i) {
  1393. be_id = channel_input[fe_id][i] - 1;
  1394. channel_mixer[fe_id].input_channels[i] =
  1395. msm_bedais[be_id].channel;
  1396. if ((msm_bedais[be_id].active) &&
  1397. test_bit(fe_id,
  1398. &msm_bedais[be_id].fe_sessions[0])) {
  1399. unsigned long copp =
  1400. session_copp_map[fe_id][sess_type][be_id];
  1401. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1402. if (test_bit(j, &copp)) {
  1403. copp_idx = j;
  1404. break;
  1405. }
  1406. }
  1407. pr_debug("%s: fe %d, be %d, channel %d, copp %d\n",
  1408. __func__,
  1409. fe_id, be_id, msm_bedais[be_id].channel,
  1410. copp_idx);
  1411. ret = adm_programable_channel_mixer(
  1412. msm_bedais[be_id].port_id,
  1413. copp_idx, dspst_id, sess_type,
  1414. channel_mixer + fe_id, i);
  1415. }
  1416. }
  1417. return ret;
  1418. }
  1419. int msm_pcm_routing_reg_phy_stream(int fedai_id, int perf_mode,
  1420. int dspst_id, int stream_type)
  1421. {
  1422. int i, j, session_type, path_type, port_type, topology, num_copps = 0;
  1423. struct route_payload payload;
  1424. u32 channels, sample_rate;
  1425. uint16_t bits_per_sample = 16;
  1426. uint32_t passthr_mode = LEGACY_PCM;
  1427. int ret = 0;
  1428. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1429. /* bad ID assigned in machine driver */
  1430. pr_err("%s: bad MM ID %d\n", __func__, fedai_id);
  1431. return -EINVAL;
  1432. }
  1433. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1434. session_type = SESSION_TYPE_RX;
  1435. path_type = ADM_PATH_PLAYBACK;
  1436. port_type = MSM_AFE_PORT_TYPE_RX;
  1437. } else {
  1438. session_type = SESSION_TYPE_TX;
  1439. path_type = ADM_PATH_LIVE_REC;
  1440. port_type = MSM_AFE_PORT_TYPE_TX;
  1441. }
  1442. mutex_lock(&routing_lock);
  1443. payload.num_copps = 0; /* only RX needs to use payload */
  1444. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1445. fe_dai_map[fedai_id][session_type].perf_mode = perf_mode;
  1446. fe_dai_map[fedai_id][session_type].passthr_mode = LEGACY_PCM;
  1447. /* re-enable EQ if active */
  1448. msm_qti_pp_send_eq_values(fedai_id);
  1449. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1450. if (!is_be_dai_extproc(i) &&
  1451. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1452. (msm_bedais[i].active) &&
  1453. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1454. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1455. /*
  1456. * check if ADM needs to be configured with different
  1457. * channel mapping than backend
  1458. */
  1459. if (!msm_bedais[i].adm_override_ch)
  1460. channels = msm_bedais[i].channel;
  1461. else
  1462. channels = msm_bedais[i].adm_override_ch;
  1463. bits_per_sample = msm_routing_get_bit_width(
  1464. msm_bedais[i].format);
  1465. app_type =
  1466. fe_dai_app_type_cfg[fedai_id][session_type][i].app_type;
  1467. if (app_type) {
  1468. app_type_idx =
  1469. msm_pcm_routing_get_app_type_idx(app_type);
  1470. sample_rate =
  1471. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1472. .sample_rate;
  1473. bits_per_sample =
  1474. app_type_cfg[app_type_idx].bit_width;
  1475. } else
  1476. sample_rate = msm_bedais[i].sample_rate;
  1477. acdb_dev_id =
  1478. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1479. .acdb_dev_id;
  1480. topology = msm_routing_get_adm_topology(fedai_id,
  1481. session_type,
  1482. i);
  1483. copp_idx = adm_open(msm_bedais[i].port_id, path_type,
  1484. sample_rate, channels, topology,
  1485. perf_mode, bits_per_sample,
  1486. app_type, acdb_dev_id);
  1487. if ((copp_idx < 0) ||
  1488. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1489. pr_err("%s: adm open failed copp_idx:%d\n",
  1490. __func__, copp_idx);
  1491. mutex_unlock(&routing_lock);
  1492. return -EINVAL;
  1493. }
  1494. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1495. __func__, fedai_id, session_type, i);
  1496. set_bit(copp_idx,
  1497. &session_copp_map[fedai_id][session_type][i]);
  1498. if (msm_is_resample_needed(
  1499. sample_rate,
  1500. msm_bedais[i].sample_rate))
  1501. adm_copp_mfc_cfg(
  1502. msm_bedais[i].port_id, copp_idx,
  1503. msm_bedais[i].sample_rate);
  1504. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1505. unsigned long copp =
  1506. session_copp_map[fedai_id][session_type][i];
  1507. if (test_bit(j, &copp)) {
  1508. payload.port_id[num_copps] =
  1509. msm_bedais[i].port_id;
  1510. payload.copp_idx[num_copps] = j;
  1511. payload.app_type[num_copps] =
  1512. fe_dai_app_type_cfg
  1513. [fedai_id][session_type]
  1514. [i].app_type;
  1515. payload.acdb_dev_id[num_copps] =
  1516. fe_dai_app_type_cfg
  1517. [fedai_id][session_type]
  1518. [i].acdb_dev_id;
  1519. payload.sample_rate[num_copps] =
  1520. fe_dai_app_type_cfg
  1521. [fedai_id][session_type]
  1522. [i].sample_rate;
  1523. num_copps++;
  1524. }
  1525. }
  1526. if (perf_mode == LEGACY_PCM_MODE)
  1527. msm_pcm_routing_cfg_pp(msm_bedais[i].port_id,
  1528. copp_idx, topology, channels);
  1529. }
  1530. }
  1531. if (num_copps) {
  1532. payload.num_copps = num_copps;
  1533. payload.session_id = fe_dai_map[fedai_id][session_type].strm_id;
  1534. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1535. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1536. }
  1537. ret = msm_pcm_routing_channel_mixer(fedai_id, perf_mode,
  1538. dspst_id, stream_type);
  1539. mutex_unlock(&routing_lock);
  1540. return ret;
  1541. }
  1542. int msm_pcm_routing_reg_phy_stream_v2(int fedai_id, int perf_mode,
  1543. int dspst_id, int stream_type,
  1544. struct msm_pcm_routing_evt event_info)
  1545. {
  1546. if (msm_pcm_routing_reg_phy_stream(fedai_id, perf_mode, dspst_id,
  1547. stream_type)) {
  1548. pr_err("%s: failed to reg phy stream\n", __func__);
  1549. return -EINVAL;
  1550. }
  1551. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1552. fe_dai_map[fedai_id][SESSION_TYPE_RX].event_info = event_info;
  1553. else
  1554. fe_dai_map[fedai_id][SESSION_TYPE_TX].event_info = event_info;
  1555. return 0;
  1556. }
  1557. void msm_pcm_routing_dereg_phy_stream(int fedai_id, int stream_type)
  1558. {
  1559. int i, port_type, session_type, path_type, topology;
  1560. struct msm_pcm_routing_fdai_data *fdai;
  1561. if (!is_mm_lsm_fe_id(fedai_id)) {
  1562. /* bad ID assigned in machine driver */
  1563. pr_err("%s: bad MM ID\n", __func__);
  1564. return;
  1565. }
  1566. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1567. port_type = MSM_AFE_PORT_TYPE_RX;
  1568. session_type = SESSION_TYPE_RX;
  1569. path_type = ADM_PATH_PLAYBACK;
  1570. } else {
  1571. port_type = MSM_AFE_PORT_TYPE_TX;
  1572. session_type = SESSION_TYPE_TX;
  1573. path_type = ADM_PATH_LIVE_REC;
  1574. }
  1575. mutex_lock(&routing_lock);
  1576. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1577. if (!is_be_dai_extproc(i) &&
  1578. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1579. (msm_bedais[i].active) &&
  1580. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1581. int idx;
  1582. unsigned long copp =
  1583. session_copp_map[fedai_id][session_type][i];
  1584. fdai = &fe_dai_map[fedai_id][session_type];
  1585. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1586. if (test_bit(idx, &copp))
  1587. break;
  1588. if (idx >= MAX_COPPS_PER_PORT || idx < 0) {
  1589. pr_debug("%s: copp idx is invalid, exiting\n",
  1590. __func__);
  1591. continue;
  1592. }
  1593. topology = adm_get_topology_for_port_copp_idx(
  1594. msm_bedais[i].port_id, idx);
  1595. msm_routing_unload_topology(topology);
  1596. adm_close(msm_bedais[i].port_id, fdai->perf_mode, idx);
  1597. pr_debug("%s:copp:%ld,idx bit fe:%d,type:%d,be:%d\n",
  1598. __func__, copp, fedai_id, session_type, i);
  1599. clear_bit(idx,
  1600. &session_copp_map[fedai_id][session_type][i]);
  1601. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1602. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1603. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1604. (fdai->passthr_mode == LEGACY_PCM))
  1605. msm_pcm_routing_deinit_pp(msm_bedais[i].port_id,
  1606. topology);
  1607. }
  1608. }
  1609. fe_dai_map[fedai_id][session_type].strm_id = INVALID_SESSION;
  1610. fe_dai_map[fedai_id][session_type].be_srate = 0;
  1611. mutex_unlock(&routing_lock);
  1612. }
  1613. /* Check if FE/BE route is set */
  1614. static bool msm_pcm_routing_route_is_set(u16 be_id, u16 fe_id)
  1615. {
  1616. bool rc = false;
  1617. if (!is_mm_lsm_fe_id(fe_id)) {
  1618. /* recheck FE ID in the mixer control defined in this file */
  1619. pr_err("%s: bad MM ID\n", __func__);
  1620. return rc;
  1621. }
  1622. if (test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0]))
  1623. rc = true;
  1624. return rc;
  1625. }
  1626. static void msm_pcm_routing_process_audio(u16 reg, u16 val, int set)
  1627. {
  1628. int session_type, path_type, topology;
  1629. u32 channels, sample_rate;
  1630. uint16_t bits_per_sample = 16;
  1631. struct msm_pcm_routing_fdai_data *fdai;
  1632. uint32_t passthr_mode;
  1633. bool is_lsm;
  1634. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1635. if (!is_mm_lsm_fe_id(val)) {
  1636. /* recheck FE ID in the mixer control defined in this file */
  1637. pr_err("%s: bad MM ID\n", __func__);
  1638. return;
  1639. }
  1640. if (!route_check_fe_id_adm_support(val)) {
  1641. /* ignore adm open if not supported for fe_id */
  1642. pr_debug("%s: No ADM support for fe id %d\n", __func__, val);
  1643. return;
  1644. }
  1645. session_type =
  1646. (afe_get_port_type(msm_bedais[reg].port_id) == MSM_AFE_PORT_TYPE_RX) ?
  1647. SESSION_TYPE_RX : SESSION_TYPE_TX;
  1648. fdai = &fe_dai_map[val][session_type];
  1649. passthr_mode = fdai->passthr_mode;
  1650. if (session_type == SESSION_TYPE_RX) {
  1651. if (passthr_mode != LEGACY_PCM)
  1652. path_type = ADM_PATH_COMPRESSED_RX;
  1653. else
  1654. path_type = ADM_PATH_PLAYBACK;
  1655. } else {
  1656. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1657. path_type = ADM_PATH_COMPRESSED_TX;
  1658. else
  1659. path_type = ADM_PATH_LIVE_REC;
  1660. }
  1661. is_lsm = (val >= MSM_FRONTEND_DAI_LSM1) &&
  1662. (val <= MSM_FRONTEND_DAI_LSM8);
  1663. mutex_lock(&routing_lock);
  1664. if (set) {
  1665. if (!test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1666. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1667. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1668. voc_start_playback(set, msm_bedais[reg].port_id);
  1669. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1670. if (msm_bedais[reg].active && fdai->strm_id !=
  1671. INVALID_SESSION) {
  1672. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1673. /*
  1674. * check if ADM needs to be configured with different
  1675. * channel mapping than backend
  1676. */
  1677. if (!msm_bedais[reg].adm_override_ch)
  1678. channels = msm_bedais[reg].channel;
  1679. else
  1680. channels = msm_bedais[reg].adm_override_ch;
  1681. if (session_type == SESSION_TYPE_TX &&
  1682. fdai->be_srate &&
  1683. (fdai->be_srate != msm_bedais[reg].sample_rate)) {
  1684. pr_debug("%s: flush strm %d diff BE rates\n",
  1685. __func__, fdai->strm_id);
  1686. if (fdai->event_info.event_func)
  1687. fdai->event_info.event_func(
  1688. MSM_PCM_RT_EVT_BUF_RECFG,
  1689. fdai->event_info.priv_data);
  1690. fdai->be_srate = 0; /* might not need it */
  1691. }
  1692. bits_per_sample = msm_routing_get_bit_width(
  1693. msm_bedais[reg].format);
  1694. app_type =
  1695. fe_dai_app_type_cfg[val][session_type][reg].app_type;
  1696. if (app_type && is_lsm) {
  1697. app_type_idx =
  1698. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1699. sample_rate =
  1700. fe_dai_app_type_cfg[val][session_type][reg]
  1701. .sample_rate;
  1702. bits_per_sample =
  1703. lsm_app_type_cfg[app_type_idx].bit_width;
  1704. } else if (app_type) {
  1705. app_type_idx =
  1706. msm_pcm_routing_get_app_type_idx(app_type);
  1707. sample_rate =
  1708. fe_dai_app_type_cfg[val][session_type][reg]
  1709. .sample_rate;
  1710. bits_per_sample =
  1711. app_type_cfg[app_type_idx].bit_width;
  1712. } else
  1713. sample_rate = msm_bedais[reg].sample_rate;
  1714. topology = msm_routing_get_adm_topology(val,
  1715. session_type,
  1716. reg);
  1717. acdb_dev_id =
  1718. fe_dai_app_type_cfg[val][session_type][reg].acdb_dev_id;
  1719. copp_idx = adm_open(msm_bedais[reg].port_id, path_type,
  1720. sample_rate, channels, topology,
  1721. fdai->perf_mode, bits_per_sample,
  1722. app_type, acdb_dev_id);
  1723. if ((copp_idx < 0) ||
  1724. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1725. pr_err("%s: adm open failed\n", __func__);
  1726. mutex_unlock(&routing_lock);
  1727. return;
  1728. }
  1729. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1730. __func__, val, session_type, reg);
  1731. set_bit(copp_idx,
  1732. &session_copp_map[val][session_type][reg]);
  1733. if (msm_is_resample_needed(
  1734. sample_rate,
  1735. msm_bedais[reg].sample_rate))
  1736. adm_copp_mfc_cfg(
  1737. msm_bedais[reg].port_id, copp_idx,
  1738. msm_bedais[reg].sample_rate);
  1739. if (session_type == SESSION_TYPE_RX &&
  1740. fdai->event_info.event_func)
  1741. fdai->event_info.event_func(
  1742. MSM_PCM_RT_EVT_DEVSWITCH,
  1743. fdai->event_info.priv_data);
  1744. msm_pcm_routing_build_matrix(val, session_type,
  1745. path_type,
  1746. fdai->perf_mode,
  1747. passthr_mode);
  1748. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  1749. (passthr_mode == LEGACY_PCM))
  1750. msm_pcm_routing_cfg_pp(msm_bedais[reg].port_id,
  1751. copp_idx, topology,
  1752. channels);
  1753. }
  1754. } else {
  1755. if (test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1756. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1757. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1758. voc_start_playback(set, msm_bedais[reg].port_id);
  1759. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1760. if (msm_bedais[reg].active && fdai->strm_id !=
  1761. INVALID_SESSION) {
  1762. int idx;
  1763. int port_id;
  1764. unsigned long copp =
  1765. session_copp_map[val][session_type][reg];
  1766. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1767. if (test_bit(idx, &copp))
  1768. break;
  1769. port_id = msm_bedais[reg].port_id;
  1770. topology = adm_get_topology_for_port_copp_idx(port_id,
  1771. idx);
  1772. msm_routing_unload_topology(topology);
  1773. adm_close(msm_bedais[reg].port_id, fdai->perf_mode,
  1774. idx);
  1775. pr_debug("%s: copp: %ld, reset idx bit fe:%d, type: %d, be:%d topology=0x%x\n",
  1776. __func__, copp, val, session_type, reg,
  1777. topology);
  1778. clear_bit(idx,
  1779. &session_copp_map[val][session_type][reg]);
  1780. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1781. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1782. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1783. (passthr_mode == LEGACY_PCM))
  1784. msm_pcm_routing_deinit_pp(
  1785. msm_bedais[reg].port_id,
  1786. topology);
  1787. msm_pcm_routing_build_matrix(val, session_type,
  1788. path_type,
  1789. fdai->perf_mode,
  1790. passthr_mode);
  1791. }
  1792. }
  1793. if ((msm_bedais[reg].port_id == VOICE_RECORD_RX)
  1794. || (msm_bedais[reg].port_id == VOICE_RECORD_TX))
  1795. voc_start_record(msm_bedais[reg].port_id, set, voc_session_id);
  1796. mutex_unlock(&routing_lock);
  1797. }
  1798. static int msm_routing_get_audio_mixer(struct snd_kcontrol *kcontrol,
  1799. struct snd_ctl_elem_value *ucontrol)
  1800. {
  1801. struct soc_mixer_control *mc =
  1802. (struct soc_mixer_control *)kcontrol->private_value;
  1803. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1804. ucontrol->value.integer.value[0] = 1;
  1805. else
  1806. ucontrol->value.integer.value[0] = 0;
  1807. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1808. ucontrol->value.integer.value[0]);
  1809. return 0;
  1810. }
  1811. static int msm_routing_put_audio_mixer(struct snd_kcontrol *kcontrol,
  1812. struct snd_ctl_elem_value *ucontrol)
  1813. {
  1814. struct snd_soc_dapm_widget *widget =
  1815. snd_soc_dapm_kcontrol_widget(kcontrol);
  1816. struct soc_mixer_control *mc =
  1817. (struct soc_mixer_control *)kcontrol->private_value;
  1818. struct snd_soc_dapm_update *update = NULL;
  1819. if (ucontrol->value.integer.value[0] &&
  1820. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false) {
  1821. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  1822. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1823. update);
  1824. } else if (!ucontrol->value.integer.value[0] &&
  1825. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true) {
  1826. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  1827. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1828. update);
  1829. }
  1830. return 1;
  1831. }
  1832. static int msm_routing_get_listen_mixer(struct snd_kcontrol *kcontrol,
  1833. struct snd_ctl_elem_value *ucontrol)
  1834. {
  1835. struct soc_mixer_control *mc =
  1836. (struct soc_mixer_control *)kcontrol->private_value;
  1837. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1838. ucontrol->value.integer.value[0] = 1;
  1839. else
  1840. ucontrol->value.integer.value[0] = 0;
  1841. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1842. ucontrol->value.integer.value[0]);
  1843. return 0;
  1844. }
  1845. static int msm_routing_put_listen_mixer(struct snd_kcontrol *kcontrol,
  1846. struct snd_ctl_elem_value *ucontrol)
  1847. {
  1848. struct snd_soc_dapm_widget *widget =
  1849. snd_soc_dapm_kcontrol_widget(kcontrol);
  1850. struct soc_mixer_control *mc =
  1851. (struct soc_mixer_control *)kcontrol->private_value;
  1852. struct snd_soc_dapm_update *update = NULL;
  1853. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1854. ucontrol->value.integer.value[0]);
  1855. if (ucontrol->value.integer.value[0]) {
  1856. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false)
  1857. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  1858. snd_soc_dapm_mixer_update_power(widget->dapm,
  1859. kcontrol, 1, update);
  1860. } else if (!ucontrol->value.integer.value[0]) {
  1861. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true)
  1862. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  1863. snd_soc_dapm_mixer_update_power(widget->dapm,
  1864. kcontrol, 0, update);
  1865. }
  1866. return 1;
  1867. }
  1868. static void msm_pcm_routing_process_voice(u16 reg, u16 val, int set)
  1869. {
  1870. u32 session_id = 0;
  1871. u16 path_type;
  1872. struct media_format_info voc_be_media_format;
  1873. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1874. session_id = msm_pcm_routing_get_voc_sessionid(val);
  1875. pr_debug("%s: FE DAI 0x%x session_id 0x%x\n",
  1876. __func__, val, session_id);
  1877. mutex_lock(&routing_lock);
  1878. if (set)
  1879. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1880. else
  1881. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1882. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  1883. afe_get_port_type(msm_bedais[reg].port_id) ==
  1884. MSM_AFE_PORT_TYPE_RX) {
  1885. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  1886. __func__, set, msm_bedais[reg].port_id);
  1887. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  1888. }
  1889. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  1890. MSM_AFE_PORT_TYPE_RX)
  1891. path_type = RX_PATH;
  1892. else
  1893. path_type = TX_PATH;
  1894. if (set) {
  1895. if (msm_bedais[reg].active) {
  1896. voc_set_route_flag(session_id, path_type, 1);
  1897. memset(&voc_be_media_format, 0,
  1898. sizeof(struct media_format_info));
  1899. voc_be_media_format.port_id = msm_bedais[reg].port_id;
  1900. voc_be_media_format.num_channels =
  1901. msm_bedais[reg].channel;
  1902. voc_be_media_format.sample_rate =
  1903. msm_bedais[reg].sample_rate;
  1904. voc_be_media_format.bits_per_sample =
  1905. msm_bedais[reg].format;
  1906. /* Defaulting this to 1 for voice call usecases */
  1907. voc_be_media_format.channel_mapping[0] = 1;
  1908. voc_set_device_config(session_id, path_type,
  1909. &voc_be_media_format);
  1910. if (voc_get_route_flag(session_id, TX_PATH) &&
  1911. voc_get_route_flag(session_id, RX_PATH))
  1912. voc_enable_device(session_id);
  1913. } else {
  1914. pr_debug("%s BE is not active\n", __func__);
  1915. }
  1916. } else {
  1917. voc_set_route_flag(session_id, path_type, 0);
  1918. voc_disable_device(session_id);
  1919. }
  1920. mutex_unlock(&routing_lock);
  1921. }
  1922. static int msm_routing_get_voice_mixer(struct snd_kcontrol *kcontrol,
  1923. struct snd_ctl_elem_value *ucontrol)
  1924. {
  1925. struct soc_mixer_control *mc =
  1926. (struct soc_mixer_control *)kcontrol->private_value;
  1927. mutex_lock(&routing_lock);
  1928. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1929. ucontrol->value.integer.value[0] = 1;
  1930. else
  1931. ucontrol->value.integer.value[0] = 0;
  1932. mutex_unlock(&routing_lock);
  1933. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1934. ucontrol->value.integer.value[0]);
  1935. return 0;
  1936. }
  1937. static int msm_routing_put_voice_mixer(struct snd_kcontrol *kcontrol,
  1938. struct snd_ctl_elem_value *ucontrol)
  1939. {
  1940. struct snd_soc_dapm_widget *widget =
  1941. snd_soc_dapm_kcontrol_widget(kcontrol);
  1942. struct soc_mixer_control *mc =
  1943. (struct soc_mixer_control *)kcontrol->private_value;
  1944. struct snd_soc_dapm_update *update = NULL;
  1945. if (ucontrol->value.integer.value[0]) {
  1946. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 1);
  1947. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1948. update);
  1949. } else {
  1950. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 0);
  1951. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1952. update);
  1953. }
  1954. return 1;
  1955. }
  1956. static int msm_routing_get_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  1957. struct snd_ctl_elem_value *ucontrol)
  1958. {
  1959. struct soc_mixer_control *mc =
  1960. (struct soc_mixer_control *)kcontrol->private_value;
  1961. mutex_lock(&routing_lock);
  1962. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1963. ucontrol->value.integer.value[0] = 1;
  1964. else
  1965. ucontrol->value.integer.value[0] = 0;
  1966. mutex_unlock(&routing_lock);
  1967. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1968. ucontrol->value.integer.value[0]);
  1969. return 0;
  1970. }
  1971. static int msm_routing_put_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  1972. struct snd_ctl_elem_value *ucontrol)
  1973. {
  1974. struct snd_soc_dapm_widget *widget =
  1975. snd_soc_dapm_kcontrol_widget(kcontrol);
  1976. struct soc_mixer_control *mc =
  1977. (struct soc_mixer_control *)kcontrol->private_value;
  1978. struct snd_soc_dapm_update *update = NULL;
  1979. if (ucontrol->value.integer.value[0]) {
  1980. mutex_lock(&routing_lock);
  1981. set_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  1982. mutex_unlock(&routing_lock);
  1983. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1984. update);
  1985. } else {
  1986. mutex_lock(&routing_lock);
  1987. clear_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  1988. mutex_unlock(&routing_lock);
  1989. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1990. update);
  1991. }
  1992. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1993. ucontrol->value.integer.value[0]);
  1994. return 1;
  1995. }
  1996. /*
  1997. * Return the mapping between port ID and backend ID to enable the AFE callback
  1998. * to determine the acdb_dev_id from the port id
  1999. */
  2000. int msm_pcm_get_be_id_from_port_id(int port_id)
  2001. {
  2002. int i;
  2003. int be_id = -EINVAL;
  2004. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  2005. if (msm_bedais[i].port_id == port_id) {
  2006. be_id = i;
  2007. break;
  2008. }
  2009. }
  2010. return be_id;
  2011. }
  2012. /*
  2013. * Return the registered dev_acdb_id given a port ID to enable identifying the
  2014. * correct AFE calibration information by comparing the header information.
  2015. */
  2016. static int msm_pcm_get_dev_acdb_id_by_port_id(int port_id)
  2017. {
  2018. int acdb_id = -EINVAL;
  2019. int i = 0;
  2020. int session;
  2021. int port_type = afe_get_port_type(port_id);
  2022. int be_id = msm_pcm_get_be_id_from_port_id(port_id);
  2023. pr_debug("%s:port_id %d be_id %d, port_type 0x%x\n",
  2024. __func__, port_id, be_id, port_type);
  2025. if (port_type == MSM_AFE_PORT_TYPE_TX) {
  2026. session = SESSION_TYPE_TX;
  2027. } else if (port_type == MSM_AFE_PORT_TYPE_RX) {
  2028. session = SESSION_TYPE_RX;
  2029. } else {
  2030. pr_err("%s: Invalid port type %d\n", __func__, port_type);
  2031. acdb_id = -EINVAL;
  2032. goto exit;
  2033. }
  2034. if (be_id < 0) {
  2035. pr_err("%s: Error getting backend id %d\n", __func__, be_id);
  2036. goto exit;
  2037. }
  2038. mutex_lock(&routing_lock);
  2039. i = find_first_bit(&msm_bedais[be_id].fe_sessions[0],
  2040. MSM_FRONTEND_DAI_MAX);
  2041. if (i < MSM_FRONTEND_DAI_MAX)
  2042. acdb_id = fe_dai_app_type_cfg[i][session][be_id].acdb_dev_id;
  2043. pr_debug("%s: FE[%d] session[%d] BE[%d] acdb_id(%d)\n",
  2044. __func__, i, session, be_id, acdb_id);
  2045. mutex_unlock(&routing_lock);
  2046. exit:
  2047. return acdb_id;
  2048. }
  2049. static int msm_routing_get_switch_mixer(struct snd_kcontrol *kcontrol,
  2050. struct snd_ctl_elem_value *ucontrol)
  2051. {
  2052. ucontrol->value.integer.value[0] = fm_switch_enable;
  2053. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2054. ucontrol->value.integer.value[0]);
  2055. return 0;
  2056. }
  2057. static int msm_routing_put_switch_mixer(struct snd_kcontrol *kcontrol,
  2058. struct snd_ctl_elem_value *ucontrol)
  2059. {
  2060. struct snd_soc_dapm_widget *widget =
  2061. snd_soc_dapm_kcontrol_widget(kcontrol);
  2062. struct snd_soc_dapm_update *update = NULL;
  2063. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2064. ucontrol->value.integer.value[0]);
  2065. if (ucontrol->value.integer.value[0])
  2066. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2067. update);
  2068. else
  2069. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2070. update);
  2071. fm_switch_enable = ucontrol->value.integer.value[0];
  2072. return 1;
  2073. }
  2074. static int msm_routing_get_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2075. struct snd_ctl_elem_value *ucontrol)
  2076. {
  2077. ucontrol->value.integer.value[0] = hfp_switch_enable;
  2078. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2079. ucontrol->value.integer.value[0]);
  2080. return 0;
  2081. }
  2082. static int msm_routing_put_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2083. struct snd_ctl_elem_value *ucontrol)
  2084. {
  2085. struct snd_soc_dapm_widget *widget =
  2086. snd_soc_dapm_kcontrol_widget(kcontrol);
  2087. struct snd_soc_dapm_update *update = NULL;
  2088. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2089. ucontrol->value.integer.value[0]);
  2090. if (ucontrol->value.integer.value[0])
  2091. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2092. 1, update);
  2093. else
  2094. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2095. 0, update);
  2096. hfp_switch_enable = ucontrol->value.integer.value[0];
  2097. return 1;
  2098. }
  2099. static int msm_routing_a2dp_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2100. struct snd_ctl_elem_value *ucontrol)
  2101. {
  2102. ucontrol->value.integer.value[0] = a2dp_switch_enable;
  2103. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2104. ucontrol->value.integer.value[0]);
  2105. return 0;
  2106. }
  2107. static int msm_routing_a2dp_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2108. struct snd_ctl_elem_value *ucontrol)
  2109. {
  2110. struct snd_soc_dapm_widget *widget =
  2111. snd_soc_dapm_kcontrol_widget(kcontrol);
  2112. struct snd_soc_dapm_update *update = NULL;
  2113. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2114. ucontrol->value.integer.value[0]);
  2115. a2dp_switch_enable = ucontrol->value.integer.value[0];
  2116. if (a2dp_switch_enable)
  2117. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2118. 1, update);
  2119. else
  2120. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2121. 0, update);
  2122. return 1;
  2123. }
  2124. static int msm_routing_get_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2125. struct snd_ctl_elem_value *ucontrol)
  2126. {
  2127. ucontrol->value.integer.value[0] = int0_mi2s_switch_enable;
  2128. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2129. ucontrol->value.integer.value[0]);
  2130. return 0;
  2131. }
  2132. static int msm_routing_put_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2133. struct snd_ctl_elem_value *ucontrol)
  2134. {
  2135. struct snd_soc_dapm_widget *widget =
  2136. snd_soc_dapm_kcontrol_widget(kcontrol);
  2137. struct snd_soc_dapm_update *update = NULL;
  2138. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2139. ucontrol->value.integer.value[0]);
  2140. if (ucontrol->value.integer.value[0])
  2141. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2142. update);
  2143. else
  2144. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2145. update);
  2146. int0_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2147. return 1;
  2148. }
  2149. static int msm_routing_get_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2150. struct snd_ctl_elem_value *ucontrol)
  2151. {
  2152. ucontrol->value.integer.value[0] = int4_mi2s_switch_enable;
  2153. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2154. ucontrol->value.integer.value[0]);
  2155. return 0;
  2156. }
  2157. static int msm_routing_put_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2158. struct snd_ctl_elem_value *ucontrol)
  2159. {
  2160. struct snd_soc_dapm_widget *widget =
  2161. snd_soc_dapm_kcontrol_widget(kcontrol);
  2162. struct snd_soc_dapm_update *update = NULL;
  2163. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2164. ucontrol->value.integer.value[0]);
  2165. if (ucontrol->value.integer.value[0])
  2166. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2167. update);
  2168. else
  2169. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2170. update);
  2171. int4_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2172. return 1;
  2173. }
  2174. static int msm_routing_get_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2175. struct snd_ctl_elem_value *ucontrol)
  2176. {
  2177. ucontrol->value.integer.value[0] = usb_switch_enable;
  2178. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2179. ucontrol->value.integer.value[0]);
  2180. return 0;
  2181. }
  2182. static int msm_routing_put_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2183. struct snd_ctl_elem_value *ucontrol)
  2184. {
  2185. struct snd_soc_dapm_widget *widget =
  2186. snd_soc_dapm_kcontrol_widget(kcontrol);
  2187. struct snd_soc_dapm_update *update = NULL;
  2188. pr_debug("%s: USB Switch enable %ld\n", __func__,
  2189. ucontrol->value.integer.value[0]);
  2190. if (ucontrol->value.integer.value[0])
  2191. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2192. 1, update);
  2193. else
  2194. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2195. 0, update);
  2196. usb_switch_enable = ucontrol->value.integer.value[0];
  2197. return 1;
  2198. }
  2199. static int msm_routing_get_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2200. struct snd_ctl_elem_value *ucontrol)
  2201. {
  2202. ucontrol->value.integer.value[0] = pri_mi2s_switch_enable;
  2203. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2204. ucontrol->value.integer.value[0]);
  2205. return 0;
  2206. }
  2207. static int msm_routing_put_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2208. struct snd_ctl_elem_value *ucontrol)
  2209. {
  2210. struct snd_soc_dapm_widget *widget =
  2211. snd_soc_dapm_kcontrol_widget(kcontrol);
  2212. struct snd_soc_dapm_update *update = NULL;
  2213. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2214. ucontrol->value.integer.value[0]);
  2215. if (ucontrol->value.integer.value[0])
  2216. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2217. update);
  2218. else
  2219. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2220. update);
  2221. pri_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2222. return 1;
  2223. }
  2224. static int msm_routing_get_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2225. struct snd_ctl_elem_value *ucontrol)
  2226. {
  2227. ucontrol->value.integer.value[0] = sec_mi2s_switch_enable;
  2228. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2229. ucontrol->value.integer.value[0]);
  2230. return 0;
  2231. }
  2232. static int msm_routing_put_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2233. struct snd_ctl_elem_value *ucontrol)
  2234. {
  2235. struct snd_soc_dapm_widget *widget =
  2236. snd_soc_dapm_kcontrol_widget(kcontrol);
  2237. struct snd_soc_dapm_update *update = NULL;
  2238. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2239. ucontrol->value.integer.value[0]);
  2240. if (ucontrol->value.integer.value[0])
  2241. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2242. update);
  2243. else
  2244. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2245. update);
  2246. sec_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2247. return 1;
  2248. }
  2249. static int msm_routing_get_tert_mi2s_switch_mixer(
  2250. struct snd_kcontrol *kcontrol,
  2251. struct snd_ctl_elem_value *ucontrol)
  2252. {
  2253. ucontrol->value.integer.value[0] = tert_mi2s_switch_enable;
  2254. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2255. ucontrol->value.integer.value[0]);
  2256. return 0;
  2257. }
  2258. static int msm_routing_put_tert_mi2s_switch_mixer(
  2259. struct snd_kcontrol *kcontrol,
  2260. struct snd_ctl_elem_value *ucontrol)
  2261. {
  2262. struct snd_soc_dapm_widget *widget =
  2263. snd_soc_dapm_kcontrol_widget(kcontrol);
  2264. struct snd_soc_dapm_update *update = NULL;
  2265. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2266. ucontrol->value.integer.value[0]);
  2267. if (ucontrol->value.integer.value[0])
  2268. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2269. update);
  2270. else
  2271. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2272. update);
  2273. tert_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2274. return 1;
  2275. }
  2276. static int msm_routing_get_quat_mi2s_switch_mixer(
  2277. struct snd_kcontrol *kcontrol,
  2278. struct snd_ctl_elem_value *ucontrol)
  2279. {
  2280. ucontrol->value.integer.value[0] = quat_mi2s_switch_enable;
  2281. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2282. ucontrol->value.integer.value[0]);
  2283. return 0;
  2284. }
  2285. static int msm_routing_put_quat_mi2s_switch_mixer(
  2286. struct snd_kcontrol *kcontrol,
  2287. struct snd_ctl_elem_value *ucontrol)
  2288. {
  2289. struct snd_soc_dapm_widget *widget =
  2290. snd_soc_dapm_kcontrol_widget(kcontrol);
  2291. struct snd_soc_dapm_update *update = NULL;
  2292. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2293. ucontrol->value.integer.value[0]);
  2294. if (ucontrol->value.integer.value[0])
  2295. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2296. update);
  2297. else
  2298. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2299. update);
  2300. quat_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2301. return 1;
  2302. }
  2303. static int msm_routing_get_quin_mi2s_switch_mixer(
  2304. struct snd_kcontrol *kcontrol,
  2305. struct snd_ctl_elem_value *ucontrol)
  2306. {
  2307. ucontrol->value.integer.value[0] = quin_mi2s_switch_enable;
  2308. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2309. ucontrol->value.integer.value[0]);
  2310. return 0;
  2311. }
  2312. static int msm_routing_put_quin_mi2s_switch_mixer(
  2313. struct snd_kcontrol *kcontrol,
  2314. struct snd_ctl_elem_value *ucontrol)
  2315. {
  2316. struct snd_soc_dapm_widget *widget =
  2317. snd_soc_dapm_kcontrol_widget(kcontrol);
  2318. struct snd_soc_dapm_update *update = NULL;
  2319. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2320. ucontrol->value.integer.value[0]);
  2321. if (ucontrol->value.integer.value[0])
  2322. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2323. update);
  2324. else
  2325. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2326. update);
  2327. quin_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2328. return 1;
  2329. }
  2330. static int msm_routing_get_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2331. struct snd_ctl_elem_value *ucontrol)
  2332. {
  2333. ucontrol->value.integer.value[0] = fm_pcmrx_switch_enable;
  2334. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2335. ucontrol->value.integer.value[0]);
  2336. return 0;
  2337. }
  2338. static int msm_routing_put_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2339. struct snd_ctl_elem_value *ucontrol)
  2340. {
  2341. struct snd_soc_dapm_widget *widget =
  2342. snd_soc_dapm_kcontrol_widget(kcontrol);
  2343. struct snd_soc_dapm_update *update = NULL;
  2344. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2345. ucontrol->value.integer.value[0]);
  2346. if (ucontrol->value.integer.value[0])
  2347. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2348. update);
  2349. else
  2350. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2351. update);
  2352. fm_pcmrx_switch_enable = ucontrol->value.integer.value[0];
  2353. return 1;
  2354. }
  2355. static int msm_routing_lsm_port_get(struct snd_kcontrol *kcontrol,
  2356. struct snd_ctl_elem_value *ucontrol)
  2357. {
  2358. ucontrol->value.integer.value[0] = lsm_port_index;
  2359. return 0;
  2360. }
  2361. static int msm_routing_lsm_port_put(struct snd_kcontrol *kcontrol,
  2362. struct snd_ctl_elem_value *ucontrol)
  2363. {
  2364. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2365. int mux = ucontrol->value.enumerated.item[0];
  2366. int lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2367. if (mux >= e->items) {
  2368. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  2369. return -EINVAL;
  2370. }
  2371. pr_debug("%s: LSM enable %ld\n", __func__,
  2372. ucontrol->value.integer.value[0]);
  2373. switch (ucontrol->value.integer.value[0]) {
  2374. case 1:
  2375. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_0_TX;
  2376. break;
  2377. case 2:
  2378. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_1_TX;
  2379. break;
  2380. case 3:
  2381. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_2_TX;
  2382. break;
  2383. case 4:
  2384. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_3_TX;
  2385. break;
  2386. case 5:
  2387. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_4_TX;
  2388. break;
  2389. case 6:
  2390. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2391. break;
  2392. case 7:
  2393. lsm_port = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2394. break;
  2395. case 8:
  2396. lsm_port = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2397. break;
  2398. case 9:
  2399. lsm_port = ADM_LSM_PORT_ID;
  2400. break;
  2401. case 10:
  2402. lsm_port = AFE_PORT_ID_INT3_MI2S_TX;
  2403. break;
  2404. case 11:
  2405. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  2406. break;
  2407. case 12:
  2408. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_1;
  2409. break;
  2410. case 13:
  2411. lsm_port = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2412. break;
  2413. case 14:
  2414. lsm_port = AFE_PORT_ID_QUINARY_TDM_TX;
  2415. break;
  2416. default:
  2417. pr_err("Default lsm port");
  2418. break;
  2419. }
  2420. set_lsm_port(lsm_port);
  2421. lsm_port_index = ucontrol->value.integer.value[0];
  2422. return 0;
  2423. }
  2424. static int msm_routing_lsm_func_get(struct snd_kcontrol *kcontrol,
  2425. struct snd_ctl_elem_value *ucontrol)
  2426. {
  2427. int i;
  2428. u16 port_id;
  2429. enum afe_mad_type mad_type;
  2430. pr_debug("%s: enter\n", __func__);
  2431. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2432. if (!strnstr(kcontrol->id.name, lsm_port_text[i],
  2433. strlen(lsm_port_text[i])))
  2434. break;
  2435. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2436. WARN(1, "Invalid id name %s\n", kcontrol->id.name);
  2437. return -EINVAL;
  2438. }
  2439. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2440. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2441. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2442. strlen(lsm_port_text[7])))
  2443. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2444. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2445. strlen(lsm_port_text[8])))
  2446. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2447. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2448. strlen(lsm_port_text[10])))
  2449. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2450. if (strnstr(kcontrol->id.name, lsm_port_text[13],
  2451. strlen(lsm_port_text[13])))
  2452. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2453. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2454. strlen(lsm_port_text[14])))
  2455. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2456. mad_type = afe_port_get_mad_type(port_id);
  2457. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2458. mad_type);
  2459. switch (mad_type) {
  2460. case MAD_HW_NONE:
  2461. ucontrol->value.integer.value[0] = MADNONE;
  2462. break;
  2463. case MAD_HW_AUDIO:
  2464. ucontrol->value.integer.value[0] = MADAUDIO;
  2465. break;
  2466. case MAD_HW_BEACON:
  2467. ucontrol->value.integer.value[0] = MADBEACON;
  2468. break;
  2469. case MAD_HW_ULTRASOUND:
  2470. ucontrol->value.integer.value[0] = MADULTRASOUND;
  2471. break;
  2472. case MAD_SW_AUDIO:
  2473. ucontrol->value.integer.value[0] = MADSWAUDIO;
  2474. break;
  2475. default:
  2476. WARN(1, "Unknown\n");
  2477. return -EINVAL;
  2478. }
  2479. return 0;
  2480. }
  2481. static int msm_routing_lsm_func_put(struct snd_kcontrol *kcontrol,
  2482. struct snd_ctl_elem_value *ucontrol)
  2483. {
  2484. int i;
  2485. u16 port_id;
  2486. enum afe_mad_type mad_type;
  2487. pr_debug("%s: enter\n", __func__);
  2488. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2489. if (strnstr(kcontrol->id.name, lsm_port_text[i],
  2490. strlen(lsm_port_text[i])))
  2491. break;
  2492. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2493. WARN(1, "Invalid id name %s\n", kcontrol->id.name);
  2494. return -EINVAL;
  2495. }
  2496. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2497. switch (ucontrol->value.integer.value[0]) {
  2498. case MADNONE:
  2499. mad_type = MAD_HW_NONE;
  2500. break;
  2501. case MADAUDIO:
  2502. mad_type = MAD_HW_AUDIO;
  2503. break;
  2504. case MADBEACON:
  2505. mad_type = MAD_HW_BEACON;
  2506. break;
  2507. case MADULTRASOUND:
  2508. mad_type = MAD_HW_ULTRASOUND;
  2509. break;
  2510. case MADSWAUDIO:
  2511. mad_type = MAD_SW_AUDIO;
  2512. break;
  2513. default:
  2514. WARN(1, "Unknown\n");
  2515. return -EINVAL;
  2516. }
  2517. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2518. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2519. strlen(lsm_port_text[7])))
  2520. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2521. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2522. strlen(lsm_port_text[8])))
  2523. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2524. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2525. strlen(lsm_port_text[10])))
  2526. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2527. if (strnstr(kcontrol->id.name, lsm_port_text[13],
  2528. strlen(lsm_port_text[13])))
  2529. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2530. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2531. strlen(lsm_port_text[14])))
  2532. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2533. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2534. mad_type);
  2535. return afe_port_set_mad_type(port_id, mad_type);
  2536. }
  2537. static const char *const adm_override_chs_text[] = {"Zero", "One", "Two"};
  2538. static SOC_ENUM_SINGLE_EXT_DECL(slim_7_rx_adm_override_chs,
  2539. adm_override_chs_text);
  2540. static int msm_routing_adm_get_backend_idx(struct snd_kcontrol *kcontrol)
  2541. {
  2542. int backend_id;
  2543. if (strnstr(kcontrol->id.name, "SLIM7_RX", sizeof("SLIM7_RX"))) {
  2544. backend_id = MSM_BACKEND_DAI_SLIMBUS_7_RX;
  2545. } else {
  2546. pr_err("%s: unsupported backend id: %s",
  2547. __func__, kcontrol->id.name);
  2548. return -EINVAL;
  2549. }
  2550. return backend_id;
  2551. }
  2552. static int msm_routing_adm_channel_config_get(
  2553. struct snd_kcontrol *kcontrol,
  2554. struct snd_ctl_elem_value *ucontrol)
  2555. {
  2556. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2557. if (backend_id >= 0) {
  2558. mutex_lock(&routing_lock);
  2559. ucontrol->value.integer.value[0] =
  2560. msm_bedais[backend_id].adm_override_ch;
  2561. pr_debug("%s: adm channel count %ld for BE:%d\n", __func__,
  2562. ucontrol->value.integer.value[0], backend_id);
  2563. mutex_unlock(&routing_lock);
  2564. }
  2565. return 0;
  2566. }
  2567. static int msm_routing_adm_channel_config_put(
  2568. struct snd_kcontrol *kcontrol,
  2569. struct snd_ctl_elem_value *ucontrol)
  2570. {
  2571. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2572. if (backend_id >= 0) {
  2573. mutex_lock(&routing_lock);
  2574. msm_bedais[backend_id].adm_override_ch =
  2575. ucontrol->value.integer.value[0];
  2576. pr_debug("%s:updating BE :%d adm channels: %d\n",
  2577. __func__, backend_id,
  2578. msm_bedais[backend_id].adm_override_ch);
  2579. mutex_unlock(&routing_lock);
  2580. }
  2581. return 0;
  2582. }
  2583. static const struct snd_kcontrol_new adm_channel_config_controls[] = {
  2584. SOC_ENUM_EXT("SLIM7_RX ADM Channels", slim_7_rx_adm_override_chs,
  2585. msm_routing_adm_channel_config_get,
  2586. msm_routing_adm_channel_config_put),
  2587. };
  2588. static int msm_routing_slim_0_rx_aanc_mux_get(struct snd_kcontrol *kcontrol,
  2589. struct snd_ctl_elem_value *ucontrol)
  2590. {
  2591. mutex_lock(&routing_lock);
  2592. ucontrol->value.integer.value[0] = slim0_rx_aanc_fb_port;
  2593. mutex_unlock(&routing_lock);
  2594. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2595. ucontrol->value.integer.value[0]);
  2596. return 0;
  2597. };
  2598. static int msm_routing_slim_0_rx_aanc_mux_put(struct snd_kcontrol *kcontrol,
  2599. struct snd_ctl_elem_value *ucontrol)
  2600. {
  2601. struct aanc_data aanc_info;
  2602. mutex_lock(&routing_lock);
  2603. memset(&aanc_info, 0x00, sizeof(aanc_info));
  2604. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2605. ucontrol->value.integer.value[0]);
  2606. slim0_rx_aanc_fb_port = ucontrol->value.integer.value[0];
  2607. if (ucontrol->value.integer.value[0] == 0) {
  2608. aanc_info.aanc_active = false;
  2609. aanc_info.aanc_tx_port = 0;
  2610. aanc_info.aanc_rx_port = 0;
  2611. } else {
  2612. aanc_info.aanc_active = true;
  2613. aanc_info.aanc_rx_port = SLIMBUS_0_RX;
  2614. aanc_info.aanc_tx_port =
  2615. (SLIMBUS_0_RX - 1 + (slim0_rx_aanc_fb_port * 2));
  2616. }
  2617. afe_set_aanc_info(&aanc_info);
  2618. mutex_unlock(&routing_lock);
  2619. return 0;
  2620. };
  2621. static int msm_routing_get_port_mixer(struct snd_kcontrol *kcontrol,
  2622. struct snd_ctl_elem_value *ucontrol)
  2623. {
  2624. int idx = 0, shift = 0;
  2625. struct soc_mixer_control *mc =
  2626. (struct soc_mixer_control *)kcontrol->private_value;
  2627. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2628. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2629. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2630. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2631. return -EINVAL;
  2632. }
  2633. if (test_bit(shift,
  2634. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]))
  2635. ucontrol->value.integer.value[0] = 1;
  2636. else
  2637. ucontrol->value.integer.value[0] = 0;
  2638. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2639. ucontrol->value.integer.value[0]);
  2640. return 0;
  2641. }
  2642. static int msm_routing_put_port_mixer(struct snd_kcontrol *kcontrol,
  2643. struct snd_ctl_elem_value *ucontrol)
  2644. {
  2645. int idx = 0, shift = 0;
  2646. struct soc_mixer_control *mc =
  2647. (struct soc_mixer_control *)kcontrol->private_value;
  2648. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2649. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2650. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2651. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2652. return -EINVAL;
  2653. }
  2654. pr_debug("%s: shift 0x%x rshift 0x%x val %ld idx %d reminder shift %d\n",
  2655. __func__, mc->shift, mc->rshift,
  2656. ucontrol->value.integer.value[0], idx, shift);
  2657. if (ucontrol->value.integer.value[0]) {
  2658. afe_loopback(1, msm_bedais[mc->shift].port_id,
  2659. msm_bedais[mc->rshift].port_id);
  2660. set_bit(shift,
  2661. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2662. } else {
  2663. afe_loopback(0, msm_bedais[mc->shift].port_id,
  2664. msm_bedais[mc->rshift].port_id);
  2665. clear_bit(shift,
  2666. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2667. }
  2668. return 1;
  2669. }
  2670. static int msm_pcm_get_channel_rule_index(struct snd_kcontrol *kcontrol,
  2671. struct snd_ctl_elem_value *ucontrol)
  2672. {
  2673. u16 fe_id = 0;
  2674. fe_id = ((struct soc_mixer_control *)
  2675. kcontrol->private_value)->shift;
  2676. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2677. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2678. return -EINVAL;
  2679. }
  2680. ucontrol->value.integer.value[0] = channel_mixer[fe_id].rule;
  2681. return 0;
  2682. }
  2683. static int msm_pcm_put_channel_rule_index(struct snd_kcontrol *kcontrol,
  2684. struct snd_ctl_elem_value *ucontrol)
  2685. {
  2686. u16 fe_id = 0;
  2687. fe_id = ((struct soc_mixer_control *)
  2688. kcontrol->private_value)->shift;
  2689. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2690. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2691. return -EINVAL;
  2692. }
  2693. channel_mixer[fe_id].rule = ucontrol->value.integer.value[0];
  2694. return 1;
  2695. }
  2696. static int msm_pcm_get_out_chs(struct snd_kcontrol *kcontrol,
  2697. struct snd_ctl_elem_value *ucontrol)
  2698. {
  2699. u16 fe_id = 0;
  2700. fe_id = ((struct soc_multi_mixer_control *)
  2701. kcontrol->private_value)->shift;
  2702. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2703. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2704. return -EINVAL;
  2705. }
  2706. ucontrol->value.integer.value[0] =
  2707. channel_mixer[fe_id].output_channel;
  2708. return 0;
  2709. }
  2710. static int msm_pcm_put_out_chs(struct snd_kcontrol *kcontrol,
  2711. struct snd_ctl_elem_value *ucontrol)
  2712. {
  2713. u16 fe_id = 0;
  2714. fe_id = ((struct soc_multi_mixer_control *)
  2715. kcontrol->private_value)->shift;
  2716. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2717. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2718. return -EINVAL;
  2719. }
  2720. pr_debug("%s: fe_id is %d, output channels = %d\n", __func__,
  2721. fe_id,
  2722. (unsigned int)(ucontrol->value.integer.value[0]));
  2723. channel_mixer[fe_id].output_channel =
  2724. (unsigned int)(ucontrol->value.integer.value[0]);
  2725. return 1;
  2726. }
  2727. static const char *const ch_mixer[] = {"Disable", "Enable"};
  2728. /* If new backend is added, need update this array */
  2729. static const char *const be_name[] = {
  2730. "ZERO", "PRI_I2S_RX", "PRI_I2S_TX", "SLIM_0_RX",
  2731. "SLIM_0_TX", "HDMI_RX", "INT_BT_SCO_RX", "INT_BT_SCO_TX",
  2732. "INT_FM_RX", "INT_FM_TX", "AFE_PCM_RX", "AFE_PCM_TX",
  2733. "AUXPCM_RX", "AUXPCM_TX", "VOICE_PLAYBACK_TX", "VOICE2_PLAYBACK_TX",
  2734. "INCALL_RECORD_RX", "INCALL_RECORD_TX", "MI2S_RX", "MI2S_TX",
  2735. "SEC_I2S_RX", "SLIM_1_RX", "SLIM_1_TX", "SLIM_2_RX",
  2736. "SLIM_2_TX", "SLIM_3_RX", "SLIM_3_TX", "SLIM_4_RX",
  2737. "SLIM_4_TX", "SLIM_5_RX", "SLIM_5_TX", "SLIM_6_RX",
  2738. "SLIM_6_TX", "SLIM_7_RX", "SLIM_7_TX", "SLIM_8_RX",
  2739. "SLIM_8_TX", "EXTPROC_RX", "EXTPROC_TX", "EXPROC_EC_TX",
  2740. "QUAT_MI2S_RX", "QUAT_MI2S_TX", "SECOND_MI2S_RX", "SECOND_MI2S_TX",
  2741. "PRI_MI2S_RX", "PRI_MI2S_TX", "TERT_MI2S_RX", "TERT_MI2S_TX",
  2742. "AUDIO_I2S_RX", "SEC_AUXPCM_RX", "SEC_AUXPCM_TX", "PRI_SPDIF_RX",
  2743. "SECOND_MI2S_RX_SD1", "QUIN_MI2S_RX", "QUIN_MI2S_TX", "SENARY_MI2S_TX",
  2744. "PRI_TDM_RX_0", "PRI_TDM_TX_0", "PRI_TDM_RX_1", "PRI_TDM_TX_1",
  2745. "PRI_TDM_RX_2", "PRI_TDM_TX_2", "PRI_TDM_RX_3", "PRI_TDM_TX_3",
  2746. "PRI_TDM_RX_4", "PRI_TDM_TX_4", "PRI_TDM_RX_5", "PRI_TDM_TX_5",
  2747. "PRI_TDM_RX_6", "PRI_TDM_TX_6", "PRI_TDM_RX_7", "PRI_TDM_TX_7",
  2748. "SEC_TDM_RX_0", "SEC_TDM_TX_0", "SEC_TDM_RX_1", "SEC_TDM_TX_1",
  2749. "SEC_TDM_RX_2", "SEC_TDM_TX_2", "SEC_TDM_RX_3", "SEC_TDM_TX_3",
  2750. "SEC_TDM_RX_4", "SEC_TDM_TX_4", "SEC_TDM_RX_5", "SEC_TDM_TX_5",
  2751. "SEC_TDM_RX_6", "SEC_TDM_TX_6", "SEC_TDM_RX_7", "SEC_TDM_TX_7",
  2752. "TERT_TDM_RX_0", "TERT_TDM_TX_0", "TERT_TDM_RX_1", "TERT_TDM_TX_1",
  2753. "TERT_TDM_RX_2", "TERT_TDM_TX_2", "TERT_TDM_RX_3", "TERT_TDM_TX_3",
  2754. "TERT_TDM_RX_4", "TERT_TDM_TX_4", "TERT_TDM_RX_5", "TERT_TDM_TX_5",
  2755. "TERT_TDM_RX_6", "TERT_TDM_TX_6", "TERT_TDM_RX_7", "TERT_TDM_TX_7",
  2756. "QUAT_TDM_RX_0", "QUAT_TDM_TX_0", "QUAT_TDM_RX_1", "QUAT_TDM_TX_1",
  2757. "QUAT_TDM_RX_2", "QUAT_TDM_TX_2", "QUAT_TDM_RX_3", "QUAT_TDM_TX_3",
  2758. "QUAT_TDM_RX_4", "QUAT_TDM_TX_4", "QUAT_TDM_RX_5", "QUAT_TDM_TX_5",
  2759. "QUAT_TDM_RX_6", "QUAT_TDM_TX_6", "QUAT_TDM_RX_7", "QUAT_TDM_TX_7",
  2760. "QUIN_TDM_RX_0", "QUIN_TDM_TX_0", "QUIN_TDM_RX_1", "QUIN_TDM_TX_1",
  2761. "QUIN_TDM_RX_2", "QUIN_TDM_TX_2", "QUIN_TDM_RX_3", "QUIN_TDM_TX_3",
  2762. "QUIN_TDM_RX_4", "QUIN_TDM_TX_4", "QUIN_TDM_RX_5", "QUIN_TDM_TX_5",
  2763. "QUIN_TDM_RX_6", "QUIN_TDM_TX_6", "QUIN_TDM_RX_7", "QUIN_TDM_TX_7",
  2764. "INT_BT_A2DP_RX", "USB_RX", "USB_TX", "DISPLAY_PORT_RX", "DISPLAY_PORT_RX1",
  2765. "TERT_AUXPCM_RX", "TERT_AUXPCM_TX", "QUAT_AUXPCM_RX", "QUAT_AUXPCM_TX",
  2766. "QUIN_AUXPCM_RX", "QUIN_AUXPCM_TX",
  2767. "INT0_MI2S_RX", "INT0_MI2S_TX", "INT1_MI2S_RX", "INT1_MI2S_TX",
  2768. "INT2_MI2S_RX", "INT2_MI2S_TX", "INT3_MI2S_RX", "INT3_MI2S_TX",
  2769. "INT4_MI2S_RX", "INT4_MI2S_TX", "INT5_MI2S_RX", "INT5_MI2S_TX",
  2770. "INT6_MI2S_RX", "INT6_MI2S_TX", "WSA_CDC_DMA_RX_0",
  2771. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_RX_1", "WSA_CDC_DMA_TX_1",
  2772. "WSA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_1",
  2773. "RX_CDC_DMA_RX_0", "TX_CDC_DMA_TX_0", "RX_CDC_DMA_RX_1", "TX_CDC_DMA_TX_1",
  2774. "RX_CDC_DMA_RX_2", "TX_CDC_DMA_TX_2", "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_3",
  2775. "RX_CDC_DMA_RX_4", "TX_CDC_DMA_TX_4", "RX_CDC_DMA_RX_5", "TX_CDC_DMA_TX_5",
  2776. "RX_CDC_DMA_RX_6", "RX_CDC_DMA_RX_7",
  2777. "PRI_SPDIF_TX", "SEC_SPDIF_RX", "SEC_SPDIF_TX",
  2778. };
  2779. static SOC_ENUM_SINGLE_DECL(mm1_channel_mux,
  2780. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, ch_mixer);
  2781. static SOC_ENUM_SINGLE_DECL(mm2_channel_mux,
  2782. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA2, ch_mixer);
  2783. static SOC_ENUM_SINGLE_DECL(mm3_channel_mux,
  2784. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA3, ch_mixer);
  2785. static SOC_ENUM_SINGLE_DECL(mm4_channel_mux,
  2786. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA4, ch_mixer);
  2787. static SOC_ENUM_DOUBLE_DECL(mm1_ch1_enum,
  2788. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 0, be_name);
  2789. static SOC_ENUM_DOUBLE_DECL(mm1_ch2_enum,
  2790. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 1, be_name);
  2791. static SOC_ENUM_DOUBLE_DECL(mm1_ch3_enum,
  2792. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 2, be_name);
  2793. static SOC_ENUM_DOUBLE_DECL(mm1_ch4_enum,
  2794. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 3, be_name);
  2795. static SOC_ENUM_DOUBLE_DECL(mm1_ch5_enum,
  2796. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 4, be_name);
  2797. static SOC_ENUM_DOUBLE_DECL(mm1_ch6_enum,
  2798. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 5, be_name);
  2799. static SOC_ENUM_DOUBLE_DECL(mm1_ch7_enum,
  2800. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 6, be_name);
  2801. static SOC_ENUM_DOUBLE_DECL(mm1_ch8_enum,
  2802. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 7, be_name);
  2803. static int msm_pcm_get_ctl_enum_info(struct snd_ctl_elem_info *uinfo,
  2804. unsigned int channels,
  2805. unsigned int items, const char *const names[])
  2806. {
  2807. if (uinfo->value.enumerated.item >= items)
  2808. uinfo->value.enumerated.item = items - 1;
  2809. WARN(strlen(names[uinfo->value.enumerated.item]) >=
  2810. sizeof(uinfo->value.enumerated.name),
  2811. "ALSA: too long item name '%s'\n",
  2812. names[uinfo->value.enumerated.item]);
  2813. strlcpy(uinfo->value.enumerated.name,
  2814. names[uinfo->value.enumerated.item],
  2815. sizeof(uinfo->value.enumerated.name));
  2816. return 0;
  2817. }
  2818. static int msm_pcm_channel_mixer_info(struct snd_kcontrol *kcontrol,
  2819. struct snd_ctl_elem_info *uinfo)
  2820. {
  2821. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2822. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  2823. uinfo->count = 1;
  2824. uinfo->value.enumerated.items = ARRAY_SIZE(ch_mixer);
  2825. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  2826. return 0;
  2827. }
  2828. static int msm_pcm_channel_mixer_get(struct snd_kcontrol *kcontrol,
  2829. struct snd_ctl_elem_value *ucontrol)
  2830. {
  2831. u16 fe_id = 0;
  2832. fe_id = ((struct soc_enum *)
  2833. kcontrol->private_value)->shift_l;
  2834. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2835. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2836. return -EINVAL;
  2837. }
  2838. pr_debug("%s: FE %d %s\n", __func__,
  2839. fe_id,
  2840. channel_mixer[fe_id].enable ? "Enabled" : "Disabled");
  2841. ucontrol->value.enumerated.item[0] = channel_mixer[fe_id].enable;
  2842. return 0;
  2843. }
  2844. static int msm_pcm_channel_mixer_put(struct snd_kcontrol *kcontrol,
  2845. struct snd_ctl_elem_value *ucontrol)
  2846. {
  2847. u16 fe_id = 0;
  2848. fe_id = ((struct soc_enum *)
  2849. kcontrol->private_value)->shift_l;
  2850. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2851. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2852. return -EINVAL;
  2853. }
  2854. channel_mixer[fe_id].enable = ucontrol->value.enumerated.item[0];
  2855. pr_debug("%s: %s FE %d\n", __func__,
  2856. channel_mixer[fe_id].enable ? "Enable" : "Disable",
  2857. fe_id);
  2858. return 0;
  2859. }
  2860. static int msm_pcm_channel_input_be_info(struct snd_kcontrol *kcontrol,
  2861. struct snd_ctl_elem_info *uinfo)
  2862. {
  2863. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2864. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  2865. uinfo->count = 1;
  2866. uinfo->value.enumerated.items = ARRAY_SIZE(be_name);
  2867. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  2868. return 0;
  2869. }
  2870. static int msm_pcm_channel_input_be_put(struct snd_kcontrol *kcontrol,
  2871. struct snd_ctl_elem_value *ucontrol)
  2872. {
  2873. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2874. u16 fe_id = 0, in_ch = 0;
  2875. fe_id = e->shift_l;
  2876. in_ch = e->shift_r;
  2877. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2878. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2879. return -EINVAL;
  2880. }
  2881. if (in_ch >= ADM_MAX_CHANNELS) {
  2882. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  2883. return -EINVAL;
  2884. }
  2885. channel_input[fe_id][in_ch] = ucontrol->value.enumerated.item[0];
  2886. return 1;
  2887. }
  2888. static int msm_pcm_channel_input_be_get(struct snd_kcontrol *kcontrol,
  2889. struct snd_ctl_elem_value *ucontrol)
  2890. {
  2891. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2892. u16 fe_id = 0, in_ch = 0;
  2893. fe_id = e->shift_l;
  2894. in_ch = e->shift_r;
  2895. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2896. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2897. return -EINVAL;
  2898. }
  2899. if (in_ch >= ADM_MAX_CHANNELS) {
  2900. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  2901. return -EINVAL;
  2902. }
  2903. ucontrol->value.enumerated.item[0] = channel_input[fe_id][in_ch];
  2904. return 1;
  2905. }
  2906. static int msm_pcm_channel_weight_info(struct snd_kcontrol *kcontrol,
  2907. struct snd_ctl_elem_info *uinfo)
  2908. {
  2909. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  2910. uinfo->count = ADM_MAX_CHANNELS;
  2911. uinfo->value.integer.min = 0;
  2912. uinfo->value.integer.max = WEIGHT_0_DB;
  2913. return 0;
  2914. }
  2915. static int msm_pcm_channel_weight_put(struct snd_kcontrol *kcontrol,
  2916. struct snd_ctl_elem_value *ucontrol)
  2917. {
  2918. u16 fe_id = 0, out_ch = 0;
  2919. int i, weight;
  2920. fe_id = ((struct soc_multi_mixer_control *)
  2921. kcontrol->private_value)->shift;
  2922. out_ch = ((struct soc_multi_mixer_control *)
  2923. kcontrol->private_value)->rshift;
  2924. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2925. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2926. return -EINVAL;
  2927. }
  2928. if (out_ch >= ADM_MAX_CHANNELS) {
  2929. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  2930. return -EINVAL;
  2931. }
  2932. pr_debug("%s: FE_ID: %d, channel weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld\n",
  2933. __func__, fe_id,
  2934. ucontrol->value.integer.value[0],
  2935. ucontrol->value.integer.value[1],
  2936. ucontrol->value.integer.value[2],
  2937. ucontrol->value.integer.value[3],
  2938. ucontrol->value.integer.value[4],
  2939. ucontrol->value.integer.value[5],
  2940. ucontrol->value.integer.value[6],
  2941. ucontrol->value.integer.value[7]);
  2942. for (i = 0; i < ADM_MAX_CHANNELS; ++i) {
  2943. weight = ucontrol->value.integer.value[i];
  2944. channel_mixer[fe_id].channel_weight[out_ch][i] = weight;
  2945. pr_debug("%s: FE_ID %d, output %d input %d weight %d\n",
  2946. __func__, fe_id, out_ch, i,
  2947. channel_mixer[fe_id].channel_weight[out_ch][i]);
  2948. }
  2949. return 0;
  2950. }
  2951. static int msm_pcm_channel_weight_get(struct snd_kcontrol *kcontrol,
  2952. struct snd_ctl_elem_value *ucontrol)
  2953. {
  2954. u16 fe_id = 0, out_ch = 0;
  2955. int i;
  2956. fe_id = ((struct soc_multi_mixer_control *)
  2957. kcontrol->private_value)->shift;
  2958. out_ch = ((struct soc_multi_mixer_control *)
  2959. kcontrol->private_value)->rshift;
  2960. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2961. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2962. return -EINVAL;
  2963. }
  2964. if (out_ch >= ADM_MAX_CHANNELS) {
  2965. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  2966. return -EINVAL;
  2967. }
  2968. for (i = 0; i < ADM_MAX_CHANNELS; ++i)
  2969. ucontrol->value.integer.value[i] =
  2970. channel_mixer[fe_id].channel_weight[out_ch][i];
  2971. pr_debug("%s: FE_ID: %d, weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld",
  2972. __func__, fe_id,
  2973. ucontrol->value.integer.value[0],
  2974. ucontrol->value.integer.value[1],
  2975. ucontrol->value.integer.value[2],
  2976. ucontrol->value.integer.value[3],
  2977. ucontrol->value.integer.value[4],
  2978. ucontrol->value.integer.value[5],
  2979. ucontrol->value.integer.value[6],
  2980. ucontrol->value.integer.value[7]);
  2981. return 0;
  2982. }
  2983. static const struct snd_kcontrol_new channel_mixer_controls[] = {
  2984. SOC_SINGLE_EXT("MultiMedia1 Channel Rule", SND_SOC_NOPM,
  2985. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  2986. msm_pcm_get_channel_rule_index,
  2987. msm_pcm_put_channel_rule_index),
  2988. SOC_SINGLE_EXT("MultiMedia2 Channel Rule", SND_SOC_NOPM,
  2989. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  2990. msm_pcm_get_channel_rule_index,
  2991. msm_pcm_put_channel_rule_index),
  2992. SOC_SINGLE_EXT("MultiMedia3 Channel Rule", SND_SOC_NOPM,
  2993. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  2994. msm_pcm_get_channel_rule_index,
  2995. msm_pcm_put_channel_rule_index),
  2996. SOC_SINGLE_EXT("MultiMedia4 Channel Rule", SND_SOC_NOPM,
  2997. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  2998. msm_pcm_get_channel_rule_index,
  2999. msm_pcm_put_channel_rule_index),
  3000. SOC_SINGLE_EXT("MultiMedia5 Channel Rule", SND_SOC_NOPM,
  3001. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3002. msm_pcm_get_channel_rule_index,
  3003. msm_pcm_put_channel_rule_index),
  3004. SOC_SINGLE_EXT("MultiMedia6 Channel Rule", SND_SOC_NOPM,
  3005. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3006. msm_pcm_get_channel_rule_index,
  3007. msm_pcm_put_channel_rule_index),
  3008. SOC_SINGLE_EXT("MultiMedia1 Channels", SND_SOC_NOPM,
  3009. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  3010. msm_pcm_get_out_chs,
  3011. msm_pcm_put_out_chs),
  3012. SOC_SINGLE_EXT("MultiMedia2 Channels", SND_SOC_NOPM,
  3013. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3014. msm_pcm_get_out_chs,
  3015. msm_pcm_put_out_chs),
  3016. SOC_SINGLE_EXT("MultiMedia3 Channels", SND_SOC_NOPM,
  3017. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3018. msm_pcm_get_out_chs,
  3019. msm_pcm_put_out_chs),
  3020. SOC_SINGLE_EXT("MultiMedia4 Channels", SND_SOC_NOPM,
  3021. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3022. msm_pcm_get_out_chs,
  3023. msm_pcm_put_out_chs),
  3024. SOC_SINGLE_EXT("MultiMedia5 Channels", SND_SOC_NOPM,
  3025. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3026. msm_pcm_get_out_chs,
  3027. msm_pcm_put_out_chs),
  3028. SOC_SINGLE_EXT("MultiMedia6 Channels", SND_SOC_NOPM,
  3029. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3030. msm_pcm_get_out_chs,
  3031. msm_pcm_put_out_chs),
  3032. {
  3033. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3034. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3035. .name = "MultiMedia1 Channel Mixer",
  3036. .info = msm_pcm_channel_mixer_info,
  3037. .get = msm_pcm_channel_mixer_get,
  3038. .put = msm_pcm_channel_mixer_put,
  3039. .private_value = (unsigned long)&(mm1_channel_mux)
  3040. },
  3041. {
  3042. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3043. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3044. .name = "MultiMedia2 Channel Mixer",
  3045. .info = msm_pcm_channel_mixer_info,
  3046. .get = msm_pcm_channel_mixer_get,
  3047. .put = msm_pcm_channel_mixer_put,
  3048. .private_value = (unsigned long)&(mm2_channel_mux)
  3049. },
  3050. {
  3051. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3052. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3053. .name = "MultiMedia3 Channel Mixer",
  3054. .info = msm_pcm_channel_mixer_info,
  3055. .get = msm_pcm_channel_mixer_get,
  3056. .put = msm_pcm_channel_mixer_put,
  3057. .private_value = (unsigned long)&(mm3_channel_mux)
  3058. },
  3059. {
  3060. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3061. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3062. .name = "MultiMedia4 Channel Mixer",
  3063. .info = msm_pcm_channel_mixer_info,
  3064. .get = msm_pcm_channel_mixer_get,
  3065. .put = msm_pcm_channel_mixer_put,
  3066. .private_value = (unsigned long)&(mm4_channel_mux)
  3067. },
  3068. {
  3069. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3070. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3071. .name = "MultiMedia1 Output Channel1",
  3072. .info = msm_pcm_channel_weight_info,
  3073. .get = msm_pcm_channel_weight_get,
  3074. .put = msm_pcm_channel_weight_put,
  3075. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3076. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 0,}
  3077. },
  3078. {
  3079. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3080. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3081. .name = "MultiMedia1 Output Channel2",
  3082. .info = msm_pcm_channel_weight_info,
  3083. .get = msm_pcm_channel_weight_get,
  3084. .put = msm_pcm_channel_weight_put,
  3085. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3086. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 1, }
  3087. },
  3088. {
  3089. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3090. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3091. .name = "MultiMedia1 Output Channel3",
  3092. .info = msm_pcm_channel_weight_info,
  3093. .get = msm_pcm_channel_weight_get,
  3094. .put = msm_pcm_channel_weight_put,
  3095. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3096. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 2,}
  3097. },
  3098. {
  3099. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3100. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3101. .name = "MultiMedia1 Output Channel4",
  3102. .info = msm_pcm_channel_weight_info,
  3103. .get = msm_pcm_channel_weight_get,
  3104. .put = msm_pcm_channel_weight_put,
  3105. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3106. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 3,}
  3107. },
  3108. {
  3109. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3110. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3111. .name = "MultiMedia1 Output Channel5",
  3112. .info = msm_pcm_channel_weight_info,
  3113. .get = msm_pcm_channel_weight_get,
  3114. .put = msm_pcm_channel_weight_put,
  3115. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3116. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 4,}
  3117. },
  3118. {
  3119. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3120. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3121. .name = "MultiMedia1 Output Channel6",
  3122. .info = msm_pcm_channel_weight_info,
  3123. .get = msm_pcm_channel_weight_get,
  3124. .put = msm_pcm_channel_weight_put,
  3125. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3126. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 5,}
  3127. },
  3128. {
  3129. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3130. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3131. .name = "MultiMedia1 Output Channel7",
  3132. .info = msm_pcm_channel_weight_info,
  3133. .get = msm_pcm_channel_weight_get,
  3134. .put = msm_pcm_channel_weight_put,
  3135. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3136. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 6,}
  3137. },
  3138. {
  3139. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3140. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3141. .name = "MultiMedia1 Output Channel8",
  3142. .info = msm_pcm_channel_weight_info,
  3143. .get = msm_pcm_channel_weight_get,
  3144. .put = msm_pcm_channel_weight_put,
  3145. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3146. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 7,}
  3147. },
  3148. {
  3149. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3150. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3151. .name = "MultiMedia2 Output Channel1",
  3152. .info = msm_pcm_channel_weight_info,
  3153. .get = msm_pcm_channel_weight_get,
  3154. .put = msm_pcm_channel_weight_put,
  3155. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3156. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 0,}
  3157. },
  3158. {
  3159. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3160. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3161. .name = "MultiMedia2 Output Channel2",
  3162. .info = msm_pcm_channel_weight_info,
  3163. .get = msm_pcm_channel_weight_get,
  3164. .put = msm_pcm_channel_weight_put,
  3165. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3166. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 1,}
  3167. },
  3168. {
  3169. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3170. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3171. .name = "MultiMedia2 Output Channel3",
  3172. .info = msm_pcm_channel_weight_info,
  3173. .get = msm_pcm_channel_weight_get,
  3174. .put = msm_pcm_channel_weight_put,
  3175. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3176. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 2,}
  3177. },
  3178. {
  3179. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3180. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3181. .name = "MultiMedia3 Output Channel1",
  3182. .info = msm_pcm_channel_weight_info,
  3183. .get = msm_pcm_channel_weight_get,
  3184. .put = msm_pcm_channel_weight_put,
  3185. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3186. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 0,}
  3187. },
  3188. {
  3189. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3190. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3191. .name = "MultiMedia3 Output Channel2",
  3192. .info = msm_pcm_channel_weight_info,
  3193. .get = msm_pcm_channel_weight_get,
  3194. .put = msm_pcm_channel_weight_put,
  3195. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3196. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 1,}
  3197. },
  3198. {
  3199. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3200. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3201. .name = "MultiMedia1 Channel1",
  3202. .info = msm_pcm_channel_input_be_info,
  3203. .get = msm_pcm_channel_input_be_get,
  3204. .put = msm_pcm_channel_input_be_put,
  3205. .private_value = (unsigned long)&(mm1_ch1_enum)
  3206. },
  3207. {
  3208. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3209. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3210. .name = "MultiMedia1 Channel2",
  3211. .info = msm_pcm_channel_input_be_info,
  3212. .get = msm_pcm_channel_input_be_get,
  3213. .put = msm_pcm_channel_input_be_put,
  3214. .private_value = (unsigned long)&(mm1_ch2_enum)
  3215. },
  3216. {
  3217. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3218. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3219. .name = "MultiMedia1 Channel3",
  3220. .info = msm_pcm_channel_input_be_info,
  3221. .get = msm_pcm_channel_input_be_get,
  3222. .put = msm_pcm_channel_input_be_put,
  3223. .private_value = (unsigned long)&(mm1_ch3_enum)
  3224. },
  3225. {
  3226. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3227. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3228. .name = "MultiMedia1 Channel4",
  3229. .info = msm_pcm_channel_input_be_info,
  3230. .get = msm_pcm_channel_input_be_get,
  3231. .put = msm_pcm_channel_input_be_put,
  3232. .private_value = (unsigned long)&(mm1_ch4_enum)
  3233. },
  3234. {
  3235. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3236. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3237. .name = "MultiMedia1 Channel5",
  3238. .info = msm_pcm_channel_input_be_info,
  3239. .get = msm_pcm_channel_input_be_get,
  3240. .put = msm_pcm_channel_input_be_put,
  3241. .private_value = (unsigned long)&(mm1_ch5_enum)
  3242. },
  3243. {
  3244. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3245. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3246. .name = "MultiMedia1 Channel6",
  3247. .info = msm_pcm_channel_input_be_info,
  3248. .get = msm_pcm_channel_input_be_get,
  3249. .put = msm_pcm_channel_input_be_put,
  3250. .private_value = (unsigned long)&(mm1_ch6_enum)
  3251. },
  3252. {
  3253. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3254. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3255. .name = "MultiMedia1 Channel7",
  3256. .info = msm_pcm_channel_input_be_info,
  3257. .get = msm_pcm_channel_input_be_get,
  3258. .put = msm_pcm_channel_input_be_put,
  3259. .private_value = (unsigned long)&(mm1_ch7_enum)
  3260. },
  3261. {
  3262. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3263. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3264. .name = "MultiMedia1 Channel8",
  3265. .info = msm_pcm_channel_input_be_info,
  3266. .get = msm_pcm_channel_input_be_get,
  3267. .put = msm_pcm_channel_input_be_put,
  3268. .private_value = (unsigned long)&(mm1_ch8_enum)
  3269. },
  3270. };
  3271. static int msm_ec_ref_ch_get(struct snd_kcontrol *kcontrol,
  3272. struct snd_ctl_elem_value *ucontrol)
  3273. {
  3274. ucontrol->value.integer.value[0] = msm_ec_ref_ch;
  3275. pr_debug("%s: msm_ec_ref_ch = %ld\n", __func__,
  3276. ucontrol->value.integer.value[0]);
  3277. return 0;
  3278. }
  3279. static int msm_ec_ref_ch_put(struct snd_kcontrol *kcontrol,
  3280. struct snd_ctl_elem_value *ucontrol)
  3281. {
  3282. msm_ec_ref_ch = ucontrol->value.integer.value[0];
  3283. pr_debug("%s: msm_ec_ref_ch = %d\n", __func__, msm_ec_ref_ch);
  3284. adm_num_ec_ref_rx_chans(msm_ec_ref_ch);
  3285. return 0;
  3286. }
  3287. static const char *const ec_ref_ch_text[] = {"Zero", "One", "Two", "Three",
  3288. "Four", "Five", "Six", "Seven", "Eight"};
  3289. static int msm_ec_ref_bit_format_get(struct snd_kcontrol *kcontrol,
  3290. struct snd_ctl_elem_value *ucontrol)
  3291. {
  3292. switch (msm_ec_ref_bit_format) {
  3293. case SNDRV_PCM_FORMAT_S24_LE:
  3294. ucontrol->value.integer.value[0] = 2;
  3295. break;
  3296. case SNDRV_PCM_FORMAT_S16_LE:
  3297. ucontrol->value.integer.value[0] = 1;
  3298. break;
  3299. default:
  3300. ucontrol->value.integer.value[0] = 0;
  3301. break;
  3302. }
  3303. pr_debug("%s: msm_ec_ref_bit_format = %ld\n",
  3304. __func__, ucontrol->value.integer.value[0]);
  3305. return 0;
  3306. }
  3307. static int msm_ec_ref_bit_format_put(struct snd_kcontrol *kcontrol,
  3308. struct snd_ctl_elem_value *ucontrol)
  3309. {
  3310. u16 bit_width = 0;
  3311. switch (ucontrol->value.integer.value[0]) {
  3312. case 2:
  3313. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S24_LE;
  3314. break;
  3315. case 1:
  3316. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  3317. break;
  3318. default:
  3319. msm_ec_ref_bit_format = 0;
  3320. break;
  3321. }
  3322. if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S16_LE)
  3323. bit_width = 16;
  3324. else if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S24_LE)
  3325. bit_width = 24;
  3326. pr_debug("%s: msm_ec_ref_bit_format = %d\n",
  3327. __func__, msm_ec_ref_bit_format);
  3328. adm_ec_ref_rx_bit_width(bit_width);
  3329. return 0;
  3330. }
  3331. static char const *ec_ref_bit_format_text[] = {"0", "S16_LE", "S24_LE"};
  3332. static int msm_ec_ref_rate_get(struct snd_kcontrol *kcontrol,
  3333. struct snd_ctl_elem_value *ucontrol)
  3334. {
  3335. ucontrol->value.integer.value[0] = msm_ec_ref_sampling_rate;
  3336. pr_debug("%s: msm_ec_ref_sampling_rate = %ld\n",
  3337. __func__, ucontrol->value.integer.value[0]);
  3338. return 0;
  3339. }
  3340. static int msm_ec_ref_rate_put(struct snd_kcontrol *kcontrol,
  3341. struct snd_ctl_elem_value *ucontrol)
  3342. {
  3343. switch (ucontrol->value.integer.value[0]) {
  3344. case 0:
  3345. msm_ec_ref_sampling_rate = 0;
  3346. break;
  3347. case 1:
  3348. msm_ec_ref_sampling_rate = 8000;
  3349. break;
  3350. case 2:
  3351. msm_ec_ref_sampling_rate = 16000;
  3352. break;
  3353. case 3:
  3354. msm_ec_ref_sampling_rate = 32000;
  3355. break;
  3356. case 4:
  3357. msm_ec_ref_sampling_rate = 44100;
  3358. break;
  3359. case 5:
  3360. msm_ec_ref_sampling_rate = 48000;
  3361. break;
  3362. case 6:
  3363. msm_ec_ref_sampling_rate = 96000;
  3364. break;
  3365. case 7:
  3366. msm_ec_ref_sampling_rate = 192000;
  3367. break;
  3368. case 8:
  3369. msm_ec_ref_sampling_rate = 384000;
  3370. break;
  3371. default:
  3372. msm_ec_ref_sampling_rate = 48000;
  3373. break;
  3374. }
  3375. pr_debug("%s: msm_ec_ref_sampling_rate = %d\n",
  3376. __func__, msm_ec_ref_sampling_rate);
  3377. adm_ec_ref_rx_sampling_rate(msm_ec_ref_sampling_rate);
  3378. return 0;
  3379. }
  3380. static const char *const ec_ref_rate_text[] = {"0", "8000", "16000",
  3381. "32000", "44100", "48000", "96000", "192000", "384000"};
  3382. static const struct soc_enum msm_route_ec_ref_params_enum[] = {
  3383. SOC_ENUM_SINGLE_EXT(9, ec_ref_ch_text),
  3384. SOC_ENUM_SINGLE_EXT(3, ec_ref_bit_format_text),
  3385. SOC_ENUM_SINGLE_EXT(9, ec_ref_rate_text),
  3386. };
  3387. static const struct snd_kcontrol_new ec_ref_param_controls[] = {
  3388. SOC_ENUM_EXT("EC Reference Channels", msm_route_ec_ref_params_enum[0],
  3389. msm_ec_ref_ch_get, msm_ec_ref_ch_put),
  3390. SOC_ENUM_EXT("EC Reference Bit Format", msm_route_ec_ref_params_enum[1],
  3391. msm_ec_ref_bit_format_get, msm_ec_ref_bit_format_put),
  3392. SOC_ENUM_EXT("EC Reference SampleRate", msm_route_ec_ref_params_enum[2],
  3393. msm_ec_ref_rate_get, msm_ec_ref_rate_put),
  3394. };
  3395. static int msm_routing_ec_ref_rx_get(struct snd_kcontrol *kcontrol,
  3396. struct snd_ctl_elem_value *ucontrol)
  3397. {
  3398. pr_debug("%s: ec_ref_rx = %d", __func__, msm_route_ec_ref_rx);
  3399. mutex_lock(&routing_lock);
  3400. ucontrol->value.integer.value[0] = msm_route_ec_ref_rx;
  3401. mutex_unlock(&routing_lock);
  3402. return 0;
  3403. }
  3404. static int msm_routing_ec_ref_rx_put(struct snd_kcontrol *kcontrol,
  3405. struct snd_ctl_elem_value *ucontrol)
  3406. {
  3407. int ec_ref_port_id;
  3408. struct snd_soc_dapm_widget *widget =
  3409. snd_soc_dapm_kcontrol_widget(kcontrol);
  3410. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3411. struct snd_soc_dapm_update *update = NULL;
  3412. mutex_lock(&routing_lock);
  3413. switch (ucontrol->value.integer.value[0]) {
  3414. case 0:
  3415. msm_route_ec_ref_rx = 0;
  3416. ec_ref_port_id = AFE_PORT_INVALID;
  3417. break;
  3418. case 1:
  3419. msm_route_ec_ref_rx = 1;
  3420. ec_ref_port_id = SLIMBUS_0_RX;
  3421. break;
  3422. case 2:
  3423. msm_route_ec_ref_rx = 2;
  3424. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_RX;
  3425. break;
  3426. case 3:
  3427. msm_route_ec_ref_rx = 3;
  3428. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3429. break;
  3430. case 4:
  3431. msm_route_ec_ref_rx = 4;
  3432. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3433. break;
  3434. case 5:
  3435. msm_route_ec_ref_rx = 5;
  3436. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3437. break;
  3438. case 6:
  3439. msm_route_ec_ref_rx = 6;
  3440. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3441. break;
  3442. case 7:
  3443. msm_route_ec_ref_rx = 7;
  3444. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_RX;
  3445. break;
  3446. case 9:
  3447. msm_route_ec_ref_rx = 9;
  3448. ec_ref_port_id = SLIMBUS_5_RX;
  3449. break;
  3450. case 10:
  3451. msm_route_ec_ref_rx = 10;
  3452. ec_ref_port_id = SLIMBUS_1_TX;
  3453. break;
  3454. case 11:
  3455. msm_route_ec_ref_rx = 11;
  3456. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_TX_1;
  3457. break;
  3458. case 12:
  3459. msm_route_ec_ref_rx = 12;
  3460. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX;
  3461. break;
  3462. case 13:
  3463. msm_route_ec_ref_rx = 13;
  3464. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_1;
  3465. break;
  3466. case 14:
  3467. msm_route_ec_ref_rx = 14;
  3468. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_2;
  3469. break;
  3470. case 15:
  3471. msm_route_ec_ref_rx = 15;
  3472. ec_ref_port_id = SLIMBUS_6_RX;
  3473. break;
  3474. case 16:
  3475. msm_route_ec_ref_rx = 16;
  3476. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_RX;
  3477. break;
  3478. case 17:
  3479. msm_route_ec_ref_rx = 17;
  3480. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_RX;
  3481. break;
  3482. case 18:
  3483. msm_route_ec_ref_rx = 18;
  3484. ec_ref_port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  3485. break;
  3486. case 19:
  3487. msm_route_ec_ref_rx = 19;
  3488. ec_ref_port_id = AFE_PORT_ID_USB_RX;
  3489. break;
  3490. case 20:
  3491. msm_route_ec_ref_rx = 20;
  3492. ec_ref_port_id = AFE_PORT_ID_INT0_MI2S_RX;
  3493. break;
  3494. case 21:
  3495. msm_route_ec_ref_rx = 21;
  3496. ec_ref_port_id = AFE_PORT_ID_INT4_MI2S_RX;
  3497. break;
  3498. case 22:
  3499. msm_route_ec_ref_rx = 22;
  3500. ec_ref_port_id = AFE_PORT_ID_INT3_MI2S_TX;
  3501. break;
  3502. case 23:
  3503. msm_route_ec_ref_rx = 23;
  3504. ec_ref_port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  3505. break;
  3506. case 24:
  3507. msm_route_ec_ref_rx = 24;
  3508. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_0;
  3509. break;
  3510. case 25:
  3511. msm_route_ec_ref_rx = 25;
  3512. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_1;
  3513. break;
  3514. case 26:
  3515. msm_route_ec_ref_rx = 26;
  3516. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_0;
  3517. break;
  3518. case 27:
  3519. msm_route_ec_ref_rx = 27;
  3520. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_1;
  3521. break;
  3522. case 28:
  3523. msm_route_ec_ref_rx = 28;
  3524. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_2;
  3525. break;
  3526. case 29:
  3527. msm_route_ec_ref_rx = 29;
  3528. ec_ref_port_id = SLIMBUS_7_RX;
  3529. break;
  3530. case 30:
  3531. msm_route_ec_ref_rx = 30;
  3532. ec_ref_port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_0;
  3533. break;
  3534. case 31:
  3535. msm_route_ec_ref_rx = 31;
  3536. ec_ref_port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_1;
  3537. break;
  3538. case 32:
  3539. msm_route_ec_ref_rx = 32;
  3540. ec_ref_port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_2;
  3541. break;
  3542. case 33:
  3543. msm_route_ec_ref_rx = 33;
  3544. ec_ref_port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_3;
  3545. break;
  3546. case 34:
  3547. msm_route_ec_ref_rx = 34;
  3548. ec_ref_port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_0;
  3549. break;
  3550. default:
  3551. msm_route_ec_ref_rx = 0; /* NONE */
  3552. pr_err("%s EC ref rx %ld not valid\n",
  3553. __func__, ucontrol->value.integer.value[0]);
  3554. ec_ref_port_id = AFE_PORT_INVALID;
  3555. break;
  3556. }
  3557. adm_ec_ref_rx_id(ec_ref_port_id);
  3558. pr_debug("%s: msm_route_ec_ref_rx = %d\n",
  3559. __func__, msm_route_ec_ref_rx);
  3560. mutex_unlock(&routing_lock);
  3561. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol,
  3562. msm_route_ec_ref_rx, e, update);
  3563. return 0;
  3564. }
  3565. static const char *const ec_ref_rx[] = { "None", "SLIM_RX", "I2S_RX",
  3566. "PRI_MI2S_TX", "SEC_MI2S_TX",
  3567. "TERT_MI2S_TX", "QUAT_MI2S_TX", "SEC_I2S_RX", "PROXY_RX",
  3568. "SLIM_5_RX", "SLIM_1_TX", "QUAT_TDM_TX_1",
  3569. "QUAT_TDM_RX_0", "QUAT_TDM_RX_1", "QUAT_TDM_RX_2", "SLIM_6_RX",
  3570. "TERT_MI2S_RX", "QUAT_MI2S_RX", "TERT_TDM_TX_0", "USB_AUDIO_RX",
  3571. "INT0_MI2S_RX", "INT4_MI2S_RX", "INT3_MI2S_TX", "DISPLAY_PORT",
  3572. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_RX_1",
  3573. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_2",
  3574. "SLIM_7_RX", "RX_CDC_DMA_RX_0", "RX_CDC_DMA_RX_1", "RX_CDC_DMA_RX_2",
  3575. "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_0",
  3576. };
  3577. static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
  3578. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rx), ec_ref_rx),
  3579. };
  3580. static const struct snd_kcontrol_new ext_ec_ref_mux_ul1 =
  3581. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL1 MUX Mux",
  3582. msm_route_ec_ref_rx_enum[0],
  3583. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3584. static const struct snd_kcontrol_new ext_ec_ref_mux_ul2 =
  3585. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL2 MUX Mux",
  3586. msm_route_ec_ref_rx_enum[0],
  3587. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3588. static const struct snd_kcontrol_new ext_ec_ref_mux_ul3 =
  3589. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL3 MUX Mux",
  3590. msm_route_ec_ref_rx_enum[0],
  3591. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3592. static const struct snd_kcontrol_new ext_ec_ref_mux_ul4 =
  3593. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL4 MUX Mux",
  3594. msm_route_ec_ref_rx_enum[0],
  3595. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3596. static const struct snd_kcontrol_new ext_ec_ref_mux_ul5 =
  3597. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL5 MUX Mux",
  3598. msm_route_ec_ref_rx_enum[0],
  3599. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3600. static const struct snd_kcontrol_new ext_ec_ref_mux_ul6 =
  3601. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL6 MUX Mux",
  3602. msm_route_ec_ref_rx_enum[0],
  3603. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3604. static const struct snd_kcontrol_new ext_ec_ref_mux_ul8 =
  3605. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL8 MUX Mux",
  3606. msm_route_ec_ref_rx_enum[0],
  3607. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3608. static const struct snd_kcontrol_new ext_ec_ref_mux_ul9 =
  3609. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL9 MUX Mux",
  3610. msm_route_ec_ref_rx_enum[0],
  3611. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3612. static const struct snd_kcontrol_new ext_ec_ref_mux_ul16 =
  3613. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL16 MUX Mux",
  3614. msm_route_ec_ref_rx_enum[0],
  3615. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3616. static const struct snd_kcontrol_new ext_ec_ref_mux_ul10 =
  3617. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL10 MUX Mux",
  3618. msm_route_ec_ref_rx_enum[0],
  3619. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3620. static const struct snd_kcontrol_new ext_ec_ref_mux_ul17 =
  3621. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL17 MUX Mux",
  3622. msm_route_ec_ref_rx_enum[0],
  3623. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3624. static const struct snd_kcontrol_new ext_ec_ref_mux_ul18 =
  3625. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL18 MUX Mux",
  3626. msm_route_ec_ref_rx_enum[0],
  3627. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3628. static const struct snd_kcontrol_new ext_ec_ref_mux_ul19 =
  3629. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL19 MUX Mux",
  3630. msm_route_ec_ref_rx_enum[0],
  3631. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3632. static const struct snd_kcontrol_new ext_ec_ref_mux_ul28 =
  3633. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL28 MUX Mux",
  3634. msm_route_ec_ref_rx_enum[0],
  3635. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3636. static const struct snd_kcontrol_new ext_ec_ref_mux_ul29 =
  3637. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL29 MUX Mux",
  3638. msm_route_ec_ref_rx_enum[0],
  3639. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3640. static int msm_routing_ext_ec_get(struct snd_kcontrol *kcontrol,
  3641. struct snd_ctl_elem_value *ucontrol)
  3642. {
  3643. pr_debug("%s: ext_ec_ref_rx = %x\n", __func__, msm_route_ext_ec_ref);
  3644. mutex_lock(&routing_lock);
  3645. ucontrol->value.integer.value[0] = msm_route_ext_ec_ref;
  3646. mutex_unlock(&routing_lock);
  3647. return 0;
  3648. }
  3649. static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
  3650. struct snd_ctl_elem_value *ucontrol)
  3651. {
  3652. struct snd_soc_dapm_widget *widget =
  3653. snd_soc_dapm_kcontrol_widget(kcontrol);
  3654. int mux = ucontrol->value.enumerated.item[0];
  3655. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3656. int ret = 1;
  3657. bool state = true;
  3658. uint16_t ext_ec_ref_port_id;
  3659. struct snd_soc_dapm_update *update = NULL;
  3660. if (mux >= e->items) {
  3661. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  3662. return -EINVAL;
  3663. }
  3664. mutex_lock(&routing_lock);
  3665. msm_route_ext_ec_ref = ucontrol->value.integer.value[0];
  3666. switch (msm_route_ext_ec_ref) {
  3667. case EXT_EC_REF_PRI_MI2S_TX:
  3668. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3669. break;
  3670. case EXT_EC_REF_SEC_MI2S_TX:
  3671. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3672. break;
  3673. case EXT_EC_REF_TERT_MI2S_TX:
  3674. ext_ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3675. break;
  3676. case EXT_EC_REF_QUAT_MI2S_TX:
  3677. ext_ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3678. break;
  3679. case EXT_EC_REF_QUIN_MI2S_TX:
  3680. ext_ec_ref_port_id = AFE_PORT_ID_QUINARY_MI2S_TX;
  3681. break;
  3682. case EXT_EC_REF_SLIM_1_TX:
  3683. ext_ec_ref_port_id = SLIMBUS_1_TX;
  3684. break;
  3685. case EXT_EC_REF_SEC_TDM_TX:
  3686. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  3687. break;
  3688. case EXT_EC_REF_NONE:
  3689. default:
  3690. ext_ec_ref_port_id = AFE_PORT_INVALID;
  3691. state = false;
  3692. break;
  3693. }
  3694. pr_debug("%s: val = %d ext_ec_ref_port_id = 0x%0x state = %d\n",
  3695. __func__, msm_route_ext_ec_ref, ext_ec_ref_port_id, state);
  3696. if (!voc_set_ext_ec_ref_port_id(ext_ec_ref_port_id, state)) {
  3697. mutex_unlock(&routing_lock);
  3698. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e,
  3699. update);
  3700. } else {
  3701. ret = -EINVAL;
  3702. mutex_unlock(&routing_lock);
  3703. }
  3704. return ret;
  3705. }
  3706. static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
  3707. "SEC_MI2S_TX", "TERT_MI2S_TX",
  3708. "QUAT_MI2S_TX", "QUIN_MI2S_TX",
  3709. "SLIM_1_TX", "SEC_TDM_TX"};
  3710. static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
  3711. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ext_ec_ref_rx), ext_ec_ref_rx),
  3712. };
  3713. static const struct snd_kcontrol_new voc_ext_ec_mux =
  3714. SOC_DAPM_ENUM_EXT("VOC_EXT_EC MUX Mux", msm_route_ext_ec_ref_rx_enum[0],
  3715. msm_routing_ext_ec_get, msm_routing_ext_ec_put);
  3716. static const struct snd_kcontrol_new pri_i2s_rx_mixer_controls[] = {
  3717. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3718. MSM_BACKEND_DAI_PRI_I2S_RX,
  3719. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3720. msm_routing_put_audio_mixer),
  3721. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3722. MSM_BACKEND_DAI_PRI_I2S_RX,
  3723. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3724. msm_routing_put_audio_mixer),
  3725. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3726. MSM_BACKEND_DAI_PRI_I2S_RX,
  3727. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3728. msm_routing_put_audio_mixer),
  3729. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3730. MSM_BACKEND_DAI_PRI_I2S_RX,
  3731. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3732. msm_routing_put_audio_mixer),
  3733. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3734. MSM_BACKEND_DAI_PRI_I2S_RX,
  3735. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3736. msm_routing_put_audio_mixer),
  3737. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3738. MSM_BACKEND_DAI_PRI_I2S_RX,
  3739. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3740. msm_routing_put_audio_mixer),
  3741. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3742. MSM_BACKEND_DAI_PRI_I2S_RX,
  3743. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3744. msm_routing_put_audio_mixer),
  3745. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3746. MSM_BACKEND_DAI_PRI_I2S_RX,
  3747. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3748. msm_routing_put_audio_mixer),
  3749. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3750. MSM_BACKEND_DAI_PRI_I2S_RX,
  3751. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3752. msm_routing_put_audio_mixer),
  3753. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3754. MSM_BACKEND_DAI_PRI_I2S_RX,
  3755. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3756. msm_routing_put_audio_mixer),
  3757. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3758. MSM_BACKEND_DAI_PRI_I2S_RX,
  3759. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3760. msm_routing_put_audio_mixer),
  3761. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3762. MSM_BACKEND_DAI_PRI_I2S_RX,
  3763. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3764. msm_routing_put_audio_mixer),
  3765. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3766. MSM_BACKEND_DAI_PRI_I2S_RX,
  3767. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3768. msm_routing_put_audio_mixer),
  3769. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3770. MSM_BACKEND_DAI_PRI_I2S_RX,
  3771. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3772. msm_routing_put_audio_mixer),
  3773. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3774. MSM_BACKEND_DAI_PRI_I2S_RX,
  3775. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3776. msm_routing_put_audio_mixer),
  3777. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3778. MSM_BACKEND_DAI_PRI_I2S_RX,
  3779. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3780. msm_routing_put_audio_mixer),
  3781. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3782. MSM_BACKEND_DAI_PRI_I2S_RX,
  3783. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3784. msm_routing_put_audio_mixer),
  3785. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3786. MSM_BACKEND_DAI_PRI_I2S_RX,
  3787. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3788. msm_routing_put_audio_mixer),
  3789. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3790. MSM_BACKEND_DAI_PRI_I2S_RX,
  3791. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3792. msm_routing_put_audio_mixer),
  3793. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  3794. MSM_BACKEND_DAI_PRI_I2S_RX,
  3795. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  3796. msm_routing_put_audio_mixer),
  3797. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3798. MSM_BACKEND_DAI_PRI_I2S_RX,
  3799. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3800. msm_routing_put_audio_mixer),
  3801. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3802. MSM_BACKEND_DAI_PRI_I2S_RX,
  3803. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3804. msm_routing_put_audio_mixer),
  3805. };
  3806. static const struct snd_kcontrol_new sec_i2s_rx_mixer_controls[] = {
  3807. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3808. MSM_BACKEND_DAI_SEC_I2S_RX,
  3809. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3810. msm_routing_put_audio_mixer),
  3811. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3812. MSM_BACKEND_DAI_SEC_I2S_RX,
  3813. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3814. msm_routing_put_audio_mixer),
  3815. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3816. MSM_BACKEND_DAI_SEC_I2S_RX,
  3817. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3818. msm_routing_put_audio_mixer),
  3819. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3820. MSM_BACKEND_DAI_SEC_I2S_RX,
  3821. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3822. msm_routing_put_audio_mixer),
  3823. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3824. MSM_BACKEND_DAI_SEC_I2S_RX,
  3825. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3826. msm_routing_put_audio_mixer),
  3827. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3828. MSM_BACKEND_DAI_SEC_I2S_RX,
  3829. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3830. msm_routing_put_audio_mixer),
  3831. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3832. MSM_BACKEND_DAI_SEC_I2S_RX,
  3833. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3834. msm_routing_put_audio_mixer),
  3835. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3836. MSM_BACKEND_DAI_SEC_I2S_RX,
  3837. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3838. msm_routing_put_audio_mixer),
  3839. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3840. MSM_BACKEND_DAI_SEC_I2S_RX,
  3841. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3842. msm_routing_put_audio_mixer),
  3843. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3844. MSM_BACKEND_DAI_SEC_I2S_RX,
  3845. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3846. msm_routing_put_audio_mixer),
  3847. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3848. MSM_BACKEND_DAI_SEC_I2S_RX,
  3849. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3850. msm_routing_put_audio_mixer),
  3851. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3852. MSM_BACKEND_DAI_SEC_I2S_RX,
  3853. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3854. msm_routing_put_audio_mixer),
  3855. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3856. MSM_BACKEND_DAI_SEC_I2S_RX,
  3857. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3858. msm_routing_put_audio_mixer),
  3859. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3860. MSM_BACKEND_DAI_SEC_I2S_RX,
  3861. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3862. msm_routing_put_audio_mixer),
  3863. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3864. MSM_BACKEND_DAI_SEC_I2S_RX,
  3865. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3866. msm_routing_put_audio_mixer),
  3867. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3868. MSM_BACKEND_DAI_SEC_I2S_RX,
  3869. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3870. msm_routing_put_audio_mixer),
  3871. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3872. MSM_BACKEND_DAI_SEC_I2S_RX,
  3873. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3874. msm_routing_put_audio_mixer),
  3875. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3876. MSM_BACKEND_DAI_SEC_I2S_RX,
  3877. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3878. msm_routing_put_audio_mixer),
  3879. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3880. MSM_BACKEND_DAI_SEC_I2S_RX,
  3881. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3882. msm_routing_put_audio_mixer),
  3883. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  3884. MSM_BACKEND_DAI_SEC_I2S_RX,
  3885. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  3886. msm_routing_put_audio_mixer),
  3887. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3888. MSM_BACKEND_DAI_SEC_I2S_RX,
  3889. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3890. msm_routing_put_audio_mixer),
  3891. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3892. MSM_BACKEND_DAI_SEC_I2S_RX,
  3893. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3894. msm_routing_put_audio_mixer),
  3895. };
  3896. static const struct snd_kcontrol_new pri_spdif_rx_mixer_controls[] = {
  3897. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3898. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3899. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3900. msm_routing_put_audio_mixer),
  3901. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3902. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3903. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3904. msm_routing_put_audio_mixer),
  3905. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3906. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3907. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3908. msm_routing_put_audio_mixer),
  3909. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3910. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3911. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3912. msm_routing_put_audio_mixer),
  3913. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3914. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3915. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3916. msm_routing_put_audio_mixer),
  3917. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3918. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3919. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3920. msm_routing_put_audio_mixer),
  3921. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3922. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3923. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3924. msm_routing_put_audio_mixer),
  3925. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3926. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3927. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3928. msm_routing_put_audio_mixer),
  3929. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3930. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3931. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3932. msm_routing_put_audio_mixer),
  3933. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3934. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3935. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3936. msm_routing_put_audio_mixer),
  3937. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3938. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3939. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3940. msm_routing_put_audio_mixer),
  3941. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3942. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3943. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3944. msm_routing_put_audio_mixer),
  3945. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3946. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3947. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3948. msm_routing_put_audio_mixer),
  3949. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3950. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3951. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3952. msm_routing_put_audio_mixer),
  3953. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3954. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3955. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3956. msm_routing_put_audio_mixer),
  3957. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3958. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3959. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3960. msm_routing_put_audio_mixer),
  3961. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3962. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3963. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3964. msm_routing_put_audio_mixer),
  3965. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3966. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3967. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3968. msm_routing_put_audio_mixer),
  3969. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3970. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3971. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3972. msm_routing_put_audio_mixer),
  3973. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  3974. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3975. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  3976. msm_routing_put_audio_mixer),
  3977. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3978. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3979. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3980. msm_routing_put_audio_mixer),
  3981. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3982. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3983. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3984. msm_routing_put_audio_mixer),
  3985. };
  3986. static const struct snd_kcontrol_new sec_spdif_rx_mixer_controls[] = {
  3987. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3988. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3989. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3990. msm_routing_put_audio_mixer),
  3991. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3992. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3993. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3994. msm_routing_put_audio_mixer),
  3995. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3996. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  3997. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3998. msm_routing_put_audio_mixer),
  3999. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4000. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4001. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4002. msm_routing_put_audio_mixer),
  4003. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4004. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4005. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4006. msm_routing_put_audio_mixer),
  4007. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4008. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4009. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4010. msm_routing_put_audio_mixer),
  4011. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4012. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4013. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4014. msm_routing_put_audio_mixer),
  4015. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4016. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4017. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4018. msm_routing_put_audio_mixer),
  4019. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4020. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4021. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4022. msm_routing_put_audio_mixer),
  4023. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4024. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4025. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4026. msm_routing_put_audio_mixer),
  4027. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4028. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4029. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4030. msm_routing_put_audio_mixer),
  4031. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4032. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4033. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4034. msm_routing_put_audio_mixer),
  4035. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4036. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4037. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4038. msm_routing_put_audio_mixer),
  4039. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4040. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4041. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4042. msm_routing_put_audio_mixer),
  4043. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4044. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4045. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4046. msm_routing_put_audio_mixer),
  4047. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4048. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4049. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4050. msm_routing_put_audio_mixer),
  4051. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4052. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4053. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4054. msm_routing_put_audio_mixer),
  4055. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4056. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4057. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4058. msm_routing_put_audio_mixer),
  4059. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4060. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4061. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4062. msm_routing_put_audio_mixer),
  4063. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4064. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4065. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4066. msm_routing_put_audio_mixer),
  4067. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4068. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4069. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4070. msm_routing_put_audio_mixer),
  4071. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4072. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4073. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4074. msm_routing_put_audio_mixer),
  4075. };
  4076. static const struct snd_kcontrol_new slimbus_2_rx_mixer_controls[] = {
  4077. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4078. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4079. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4080. msm_routing_put_audio_mixer),
  4081. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4082. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4083. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4084. msm_routing_put_audio_mixer),
  4085. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4086. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4087. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4088. msm_routing_put_audio_mixer),
  4089. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4090. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4091. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4092. msm_routing_put_audio_mixer),
  4093. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4094. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4095. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4096. msm_routing_put_audio_mixer),
  4097. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4098. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4099. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4100. msm_routing_put_audio_mixer),
  4101. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4102. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4103. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4104. msm_routing_put_audio_mixer),
  4105. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4106. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4107. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4108. msm_routing_put_audio_mixer),
  4109. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4110. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4111. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4112. msm_routing_put_audio_mixer),
  4113. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4114. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4115. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4116. msm_routing_put_audio_mixer),
  4117. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4118. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4119. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4120. msm_routing_put_audio_mixer),
  4121. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4122. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4123. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4124. msm_routing_put_audio_mixer),
  4125. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4126. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4127. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4128. msm_routing_put_audio_mixer),
  4129. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4130. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4131. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4132. msm_routing_put_audio_mixer),
  4133. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4134. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4135. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4136. msm_routing_put_audio_mixer),
  4137. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4138. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4139. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4140. msm_routing_put_audio_mixer),
  4141. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4142. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4143. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4144. msm_routing_put_audio_mixer),
  4145. };
  4146. static const struct snd_kcontrol_new slimbus_5_rx_mixer_controls[] = {
  4147. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4148. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4149. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4150. msm_routing_put_audio_mixer),
  4151. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4152. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4153. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4154. msm_routing_put_audio_mixer),
  4155. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4156. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4157. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4158. msm_routing_put_audio_mixer),
  4159. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4160. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4161. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4162. msm_routing_put_audio_mixer),
  4163. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4164. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4165. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4166. msm_routing_put_audio_mixer),
  4167. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4168. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4169. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4170. msm_routing_put_audio_mixer),
  4171. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4172. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4173. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4174. msm_routing_put_audio_mixer),
  4175. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4176. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4177. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4178. msm_routing_put_audio_mixer),
  4179. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4180. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4181. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4182. msm_routing_put_audio_mixer),
  4183. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4184. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4185. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4186. msm_routing_put_audio_mixer),
  4187. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4188. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4189. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4190. msm_routing_put_audio_mixer),
  4191. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4192. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4193. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4194. msm_routing_put_audio_mixer),
  4195. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4196. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4197. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4198. msm_routing_put_audio_mixer),
  4199. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4200. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4201. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4202. msm_routing_put_audio_mixer),
  4203. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4204. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4205. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4206. msm_routing_put_audio_mixer),
  4207. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4208. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4209. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4210. msm_routing_put_audio_mixer),
  4211. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4212. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4213. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4214. msm_routing_put_audio_mixer),
  4215. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4216. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4217. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4218. msm_routing_put_audio_mixer),
  4219. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4220. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4221. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4222. msm_routing_put_audio_mixer),
  4223. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4224. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4225. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4226. msm_routing_put_audio_mixer),
  4227. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4228. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4229. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4230. msm_routing_put_audio_mixer),
  4231. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4232. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4233. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4234. msm_routing_put_audio_mixer),
  4235. };
  4236. static const struct snd_kcontrol_new slimbus_rx_mixer_controls[] = {
  4237. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4238. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4239. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4240. msm_routing_put_audio_mixer),
  4241. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4242. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4243. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4244. msm_routing_put_audio_mixer),
  4245. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4246. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4247. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4248. msm_routing_put_audio_mixer),
  4249. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4250. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4251. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4252. msm_routing_put_audio_mixer),
  4253. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4254. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4255. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4256. msm_routing_put_audio_mixer),
  4257. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4258. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4259. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4260. msm_routing_put_audio_mixer),
  4261. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4262. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4263. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4264. msm_routing_put_audio_mixer),
  4265. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4266. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4267. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4268. msm_routing_put_audio_mixer),
  4269. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4270. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4271. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4272. msm_routing_put_audio_mixer),
  4273. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4274. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4275. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4276. msm_routing_put_audio_mixer),
  4277. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4278. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4279. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4280. msm_routing_put_audio_mixer),
  4281. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4282. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4283. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4284. msm_routing_put_audio_mixer),
  4285. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4286. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4287. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4288. msm_routing_put_audio_mixer),
  4289. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4290. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4291. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4292. msm_routing_put_audio_mixer),
  4293. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4294. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4295. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4296. msm_routing_put_audio_mixer),
  4297. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4298. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4299. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4300. msm_routing_put_audio_mixer),
  4301. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4302. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4303. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4304. msm_routing_put_audio_mixer),
  4305. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4306. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4307. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4308. msm_routing_put_audio_mixer),
  4309. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4310. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4311. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4312. msm_routing_put_audio_mixer),
  4313. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4314. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4315. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4316. msm_routing_put_audio_mixer),
  4317. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4318. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4319. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4320. msm_routing_put_audio_mixer),
  4321. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4322. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4323. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4324. msm_routing_put_audio_mixer),
  4325. };
  4326. static const struct snd_kcontrol_new mi2s_rx_mixer_controls[] = {
  4327. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4328. MSM_BACKEND_DAI_MI2S_RX,
  4329. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4330. msm_routing_put_audio_mixer),
  4331. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4332. MSM_BACKEND_DAI_MI2S_RX,
  4333. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4334. msm_routing_put_audio_mixer),
  4335. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4336. MSM_BACKEND_DAI_MI2S_RX,
  4337. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4338. msm_routing_put_audio_mixer),
  4339. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4340. MSM_BACKEND_DAI_MI2S_RX,
  4341. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4342. msm_routing_put_audio_mixer),
  4343. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4344. MSM_BACKEND_DAI_MI2S_RX,
  4345. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4346. msm_routing_put_audio_mixer),
  4347. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4348. MSM_BACKEND_DAI_MI2S_RX,
  4349. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4350. msm_routing_put_audio_mixer),
  4351. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4352. MSM_BACKEND_DAI_MI2S_RX,
  4353. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4354. msm_routing_put_audio_mixer),
  4355. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4356. MSM_BACKEND_DAI_MI2S_RX,
  4357. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4358. msm_routing_put_audio_mixer),
  4359. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4360. MSM_BACKEND_DAI_MI2S_RX,
  4361. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4362. msm_routing_put_audio_mixer),
  4363. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4364. MSM_BACKEND_DAI_MI2S_RX,
  4365. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4366. msm_routing_put_audio_mixer),
  4367. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4368. MSM_BACKEND_DAI_MI2S_RX,
  4369. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4370. msm_routing_put_audio_mixer),
  4371. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4372. MSM_BACKEND_DAI_MI2S_RX,
  4373. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4374. msm_routing_put_audio_mixer),
  4375. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4376. MSM_BACKEND_DAI_MI2S_RX,
  4377. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4378. msm_routing_put_audio_mixer),
  4379. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4380. MSM_BACKEND_DAI_MI2S_RX,
  4381. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4382. msm_routing_put_audio_mixer),
  4383. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4384. MSM_BACKEND_DAI_MI2S_RX,
  4385. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4386. msm_routing_put_audio_mixer),
  4387. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4388. MSM_BACKEND_DAI_MI2S_RX,
  4389. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4390. msm_routing_put_audio_mixer),
  4391. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4392. MSM_BACKEND_DAI_MI2S_RX,
  4393. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4394. msm_routing_put_audio_mixer),
  4395. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4396. MSM_BACKEND_DAI_MI2S_RX,
  4397. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4398. msm_routing_put_audio_mixer),
  4399. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4400. MSM_BACKEND_DAI_MI2S_RX,
  4401. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4402. msm_routing_put_audio_mixer),
  4403. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4404. MSM_BACKEND_DAI_MI2S_RX,
  4405. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4406. msm_routing_put_audio_mixer),
  4407. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4408. MSM_BACKEND_DAI_MI2S_RX,
  4409. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4410. msm_routing_put_audio_mixer),
  4411. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4412. MSM_BACKEND_DAI_MI2S_RX,
  4413. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4414. msm_routing_put_audio_mixer),
  4415. };
  4416. static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
  4417. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4418. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4419. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4420. msm_routing_put_audio_mixer),
  4421. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4422. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4423. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4424. msm_routing_put_audio_mixer),
  4425. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4426. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4427. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4428. msm_routing_put_audio_mixer),
  4429. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4430. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4431. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4432. msm_routing_put_audio_mixer),
  4433. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4434. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4435. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4436. msm_routing_put_audio_mixer),
  4437. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4438. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4439. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4440. msm_routing_put_audio_mixer),
  4441. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4442. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4443. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4444. msm_routing_put_audio_mixer),
  4445. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4446. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4447. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4448. msm_routing_put_audio_mixer),
  4449. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4450. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4451. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4452. msm_routing_put_audio_mixer),
  4453. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4454. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4455. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4456. msm_routing_put_audio_mixer),
  4457. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4458. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4459. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4460. msm_routing_put_audio_mixer),
  4461. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4462. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4463. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4464. msm_routing_put_audio_mixer),
  4465. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4466. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4467. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4468. msm_routing_put_audio_mixer),
  4469. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4470. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4471. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4472. msm_routing_put_audio_mixer),
  4473. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4474. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4475. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4476. msm_routing_put_audio_mixer),
  4477. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4478. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4479. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4480. msm_routing_put_audio_mixer),
  4481. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4482. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4483. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4484. msm_routing_put_audio_mixer),
  4485. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4486. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4487. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4488. msm_routing_put_audio_mixer),
  4489. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4490. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4491. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4492. msm_routing_put_audio_mixer),
  4493. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4494. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4495. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4496. msm_routing_put_audio_mixer),
  4497. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4498. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4499. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4500. msm_routing_put_audio_mixer),
  4501. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4502. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4503. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4504. msm_routing_put_audio_mixer),
  4505. };
  4506. static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
  4507. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4508. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4509. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4510. msm_routing_put_audio_mixer),
  4511. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4512. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4513. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4514. msm_routing_put_audio_mixer),
  4515. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4516. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4517. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4518. msm_routing_put_audio_mixer),
  4519. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4520. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4521. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4522. msm_routing_put_audio_mixer),
  4523. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4524. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4525. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4526. msm_routing_put_audio_mixer),
  4527. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4528. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4529. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4530. msm_routing_put_audio_mixer),
  4531. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4532. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4533. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4534. msm_routing_put_audio_mixer),
  4535. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4536. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4537. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4538. msm_routing_put_audio_mixer),
  4539. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4540. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4541. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4542. msm_routing_put_audio_mixer),
  4543. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4544. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4545. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4546. msm_routing_put_audio_mixer),
  4547. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4548. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4549. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4550. msm_routing_put_audio_mixer),
  4551. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4552. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4553. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4554. msm_routing_put_audio_mixer),
  4555. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4556. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4557. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4558. msm_routing_put_audio_mixer),
  4559. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4560. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4561. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4562. msm_routing_put_audio_mixer),
  4563. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4564. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4565. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4566. msm_routing_put_audio_mixer),
  4567. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4568. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4569. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4570. msm_routing_put_audio_mixer),
  4571. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4572. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4573. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4574. msm_routing_put_audio_mixer),
  4575. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4576. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4577. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4578. msm_routing_put_audio_mixer),
  4579. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4580. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4581. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4582. msm_routing_put_audio_mixer),
  4583. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4584. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4585. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4586. msm_routing_put_audio_mixer),
  4587. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4588. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4589. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4590. msm_routing_put_audio_mixer),
  4591. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4592. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4593. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4594. msm_routing_put_audio_mixer),
  4595. };
  4596. static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
  4597. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4598. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4599. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4600. msm_routing_put_audio_mixer),
  4601. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4602. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4603. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4604. msm_routing_put_audio_mixer),
  4605. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4606. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4607. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4608. msm_routing_put_audio_mixer),
  4609. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4610. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4611. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4612. msm_routing_put_audio_mixer),
  4613. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4614. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4615. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4616. msm_routing_put_audio_mixer),
  4617. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4618. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4619. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4620. msm_routing_put_audio_mixer),
  4621. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4622. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4623. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4624. msm_routing_put_audio_mixer),
  4625. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4626. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4627. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4628. msm_routing_put_audio_mixer),
  4629. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4630. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4631. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4632. msm_routing_put_audio_mixer),
  4633. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4634. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4635. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4636. msm_routing_put_audio_mixer),
  4637. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4638. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4639. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4640. msm_routing_put_audio_mixer),
  4641. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4642. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4643. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4644. msm_routing_put_audio_mixer),
  4645. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4646. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4647. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4648. msm_routing_put_audio_mixer),
  4649. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4650. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4651. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4652. msm_routing_put_audio_mixer),
  4653. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4654. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4655. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4656. msm_routing_put_audio_mixer),
  4657. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4658. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4659. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4660. msm_routing_put_audio_mixer),
  4661. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4662. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4663. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4664. msm_routing_put_audio_mixer),
  4665. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4666. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4667. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4668. msm_routing_put_audio_mixer),
  4669. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4670. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4671. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4672. msm_routing_put_audio_mixer),
  4673. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4674. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4675. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4676. msm_routing_put_audio_mixer),
  4677. };
  4678. static const struct snd_kcontrol_new secondary_mi2s_rx2_mixer_controls[] = {
  4679. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4680. MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
  4681. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4682. msm_routing_put_audio_mixer),
  4683. };
  4684. static const struct snd_kcontrol_new secondary_mi2s_rx_mixer_controls[] = {
  4685. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4686. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4687. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4688. msm_routing_put_audio_mixer),
  4689. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4690. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4691. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4692. msm_routing_put_audio_mixer),
  4693. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4694. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4695. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4696. msm_routing_put_audio_mixer),
  4697. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4698. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4699. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4700. msm_routing_put_audio_mixer),
  4701. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4702. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4703. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4704. msm_routing_put_audio_mixer),
  4705. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4706. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4707. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4708. msm_routing_put_audio_mixer),
  4709. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4710. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4711. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4712. msm_routing_put_audio_mixer),
  4713. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4714. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4715. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4716. msm_routing_put_audio_mixer),
  4717. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4718. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4719. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4720. msm_routing_put_audio_mixer),
  4721. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4722. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4723. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4724. msm_routing_put_audio_mixer),
  4725. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4726. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4727. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4728. msm_routing_put_audio_mixer),
  4729. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4730. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4731. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4732. msm_routing_put_audio_mixer),
  4733. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4734. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4735. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4736. msm_routing_put_audio_mixer),
  4737. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4738. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4739. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4740. msm_routing_put_audio_mixer),
  4741. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4742. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4743. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4744. msm_routing_put_audio_mixer),
  4745. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4746. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4747. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4748. msm_routing_put_audio_mixer),
  4749. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4750. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4751. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4752. msm_routing_put_audio_mixer),
  4753. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4754. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4755. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4756. msm_routing_put_audio_mixer),
  4757. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4758. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4759. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4760. msm_routing_put_audio_mixer),
  4761. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4762. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4763. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4764. msm_routing_put_audio_mixer),
  4765. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4766. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4767. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4768. msm_routing_put_audio_mixer),
  4769. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4770. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4771. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4772. msm_routing_put_audio_mixer),
  4773. };
  4774. static const struct snd_kcontrol_new primary_mi2s_rx_mixer_controls[] = {
  4775. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4776. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4777. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4778. msm_routing_put_audio_mixer),
  4779. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4780. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4781. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4782. msm_routing_put_audio_mixer),
  4783. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4784. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4785. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4786. msm_routing_put_audio_mixer),
  4787. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4788. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4789. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4790. msm_routing_put_audio_mixer),
  4791. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4792. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4793. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4794. msm_routing_put_audio_mixer),
  4795. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4796. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4797. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4798. msm_routing_put_audio_mixer),
  4799. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4800. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4801. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4802. msm_routing_put_audio_mixer),
  4803. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4804. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4805. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4806. msm_routing_put_audio_mixer),
  4807. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4808. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4809. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4810. msm_routing_put_audio_mixer),
  4811. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4812. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4813. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4814. msm_routing_put_audio_mixer),
  4815. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4816. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4817. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4818. msm_routing_put_audio_mixer),
  4819. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4820. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4821. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4822. msm_routing_put_audio_mixer),
  4823. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4824. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4825. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4826. msm_routing_put_audio_mixer),
  4827. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4828. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4829. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4830. msm_routing_put_audio_mixer),
  4831. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4832. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4833. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4834. msm_routing_put_audio_mixer),
  4835. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4836. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4837. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4838. msm_routing_put_audio_mixer),
  4839. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4840. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4841. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4842. msm_routing_put_audio_mixer),
  4843. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4844. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4845. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4846. msm_routing_put_audio_mixer),
  4847. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4848. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4849. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4850. msm_routing_put_audio_mixer),
  4851. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4852. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4853. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4854. msm_routing_put_audio_mixer),
  4855. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4856. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4857. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4858. msm_routing_put_audio_mixer),
  4859. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4860. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4861. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4862. msm_routing_put_audio_mixer),
  4863. };
  4864. static const struct snd_kcontrol_new int0_mi2s_rx_mixer_controls[] = {
  4865. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4866. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4867. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4868. msm_routing_put_audio_mixer),
  4869. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4870. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4871. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4872. msm_routing_put_audio_mixer),
  4873. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4874. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4875. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4876. msm_routing_put_audio_mixer),
  4877. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4878. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4879. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4880. msm_routing_put_audio_mixer),
  4881. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4882. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4883. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4884. msm_routing_put_audio_mixer),
  4885. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4886. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4887. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4888. msm_routing_put_audio_mixer),
  4889. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4890. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4891. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4892. msm_routing_put_audio_mixer),
  4893. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4894. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4895. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4896. msm_routing_put_audio_mixer),
  4897. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4898. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4899. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4900. msm_routing_put_audio_mixer),
  4901. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4902. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4903. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4904. msm_routing_put_audio_mixer),
  4905. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4906. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4907. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4908. msm_routing_put_audio_mixer),
  4909. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4910. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4911. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4912. msm_routing_put_audio_mixer),
  4913. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4914. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4915. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4916. msm_routing_put_audio_mixer),
  4917. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4918. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4919. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4920. msm_routing_put_audio_mixer),
  4921. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4922. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4923. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4924. msm_routing_put_audio_mixer),
  4925. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4926. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4927. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4928. msm_routing_put_audio_mixer),
  4929. };
  4930. static const struct snd_kcontrol_new int4_mi2s_rx_mixer_controls[] = {
  4931. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4932. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4933. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4934. msm_routing_put_audio_mixer),
  4935. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4936. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4937. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4938. msm_routing_put_audio_mixer),
  4939. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4940. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4941. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4942. msm_routing_put_audio_mixer),
  4943. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4944. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4945. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4946. msm_routing_put_audio_mixer),
  4947. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4948. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4949. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4950. msm_routing_put_audio_mixer),
  4951. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4952. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4953. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4954. msm_routing_put_audio_mixer),
  4955. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4956. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4957. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4958. msm_routing_put_audio_mixer),
  4959. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4960. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4961. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4962. msm_routing_put_audio_mixer),
  4963. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4964. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4965. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4966. msm_routing_put_audio_mixer),
  4967. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4968. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4969. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4970. msm_routing_put_audio_mixer),
  4971. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4972. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4973. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4974. msm_routing_put_audio_mixer),
  4975. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4976. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4977. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4978. msm_routing_put_audio_mixer),
  4979. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4980. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4981. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4982. msm_routing_put_audio_mixer),
  4983. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4984. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4985. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4986. msm_routing_put_audio_mixer),
  4987. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4988. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4989. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4990. msm_routing_put_audio_mixer),
  4991. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4992. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4993. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4994. msm_routing_put_audio_mixer),
  4995. };
  4996. static const struct snd_kcontrol_new hdmi_mixer_controls[] = {
  4997. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4998. MSM_BACKEND_DAI_HDMI_RX,
  4999. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5000. msm_routing_put_audio_mixer),
  5001. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5002. MSM_BACKEND_DAI_HDMI_RX,
  5003. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5004. msm_routing_put_audio_mixer),
  5005. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5006. MSM_BACKEND_DAI_HDMI_RX,
  5007. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5008. msm_routing_put_audio_mixer),
  5009. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5010. MSM_BACKEND_DAI_HDMI_RX,
  5011. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5012. msm_routing_put_audio_mixer),
  5013. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5014. MSM_BACKEND_DAI_HDMI_RX,
  5015. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5016. msm_routing_put_audio_mixer),
  5017. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5018. MSM_BACKEND_DAI_HDMI_RX,
  5019. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5020. msm_routing_put_audio_mixer),
  5021. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5022. MSM_BACKEND_DAI_HDMI_RX,
  5023. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5024. msm_routing_put_audio_mixer),
  5025. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5026. MSM_BACKEND_DAI_HDMI_RX,
  5027. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5028. msm_routing_put_audio_mixer),
  5029. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5030. MSM_BACKEND_DAI_HDMI_RX,
  5031. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5032. msm_routing_put_audio_mixer),
  5033. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5034. MSM_BACKEND_DAI_HDMI_RX,
  5035. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5036. msm_routing_put_audio_mixer),
  5037. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5038. MSM_BACKEND_DAI_HDMI_RX,
  5039. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5040. msm_routing_put_audio_mixer),
  5041. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5042. MSM_BACKEND_DAI_HDMI_RX,
  5043. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5044. msm_routing_put_audio_mixer),
  5045. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5046. MSM_BACKEND_DAI_HDMI_RX,
  5047. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5048. msm_routing_put_audio_mixer),
  5049. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5050. MSM_BACKEND_DAI_HDMI_RX,
  5051. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5052. msm_routing_put_audio_mixer),
  5053. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5054. MSM_BACKEND_DAI_HDMI_RX,
  5055. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5056. msm_routing_put_audio_mixer),
  5057. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5058. MSM_BACKEND_DAI_HDMI_RX,
  5059. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5060. msm_routing_put_audio_mixer),
  5061. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5062. MSM_BACKEND_DAI_HDMI_RX,
  5063. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5064. msm_routing_put_audio_mixer),
  5065. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5066. MSM_BACKEND_DAI_HDMI_RX,
  5067. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5068. msm_routing_put_audio_mixer),
  5069. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5070. MSM_BACKEND_DAI_HDMI_RX,
  5071. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5072. msm_routing_put_audio_mixer),
  5073. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5074. MSM_BACKEND_DAI_HDMI_RX,
  5075. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5076. msm_routing_put_audio_mixer),
  5077. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5078. MSM_BACKEND_DAI_HDMI_RX,
  5079. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5080. msm_routing_put_audio_mixer),
  5081. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5082. MSM_BACKEND_DAI_HDMI_RX,
  5083. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5084. msm_routing_put_audio_mixer),
  5085. };
  5086. static const struct snd_kcontrol_new display_port_mixer_controls[] = {
  5087. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5088. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5089. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5090. msm_routing_put_audio_mixer),
  5091. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5092. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5093. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5094. msm_routing_put_audio_mixer),
  5095. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5096. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5097. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5098. msm_routing_put_audio_mixer),
  5099. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5100. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5101. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5102. msm_routing_put_audio_mixer),
  5103. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5104. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5105. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5106. msm_routing_put_audio_mixer),
  5107. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5108. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5109. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5110. msm_routing_put_audio_mixer),
  5111. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5112. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5113. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5114. msm_routing_put_audio_mixer),
  5115. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5116. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5117. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5118. msm_routing_put_audio_mixer),
  5119. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5120. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5121. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5122. msm_routing_put_audio_mixer),
  5123. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5124. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5125. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5126. msm_routing_put_audio_mixer),
  5127. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5128. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5129. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5130. msm_routing_put_audio_mixer),
  5131. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5132. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5133. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5134. msm_routing_put_audio_mixer),
  5135. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5136. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5137. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5138. msm_routing_put_audio_mixer),
  5139. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5140. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5141. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5142. msm_routing_put_audio_mixer),
  5143. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5144. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5145. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5146. msm_routing_put_audio_mixer),
  5147. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5148. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5149. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5150. msm_routing_put_audio_mixer),
  5151. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5152. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5153. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5154. msm_routing_put_audio_mixer),
  5155. };
  5156. static const struct snd_kcontrol_new display_port1_mixer_controls[] = {
  5157. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5158. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5159. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5160. msm_routing_put_audio_mixer),
  5161. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5162. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5163. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5164. msm_routing_put_audio_mixer),
  5165. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5166. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5167. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5168. msm_routing_put_audio_mixer),
  5169. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5170. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5171. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5172. msm_routing_put_audio_mixer),
  5173. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5174. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5175. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5176. msm_routing_put_audio_mixer),
  5177. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5178. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5179. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5180. msm_routing_put_audio_mixer),
  5181. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5182. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5183. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5184. msm_routing_put_audio_mixer),
  5185. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5186. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5187. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5188. msm_routing_put_audio_mixer),
  5189. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5190. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5191. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5192. msm_routing_put_audio_mixer),
  5193. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5194. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5195. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5196. msm_routing_put_audio_mixer),
  5197. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5198. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5199. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5200. msm_routing_put_audio_mixer),
  5201. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5202. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5203. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5204. msm_routing_put_audio_mixer),
  5205. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5206. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5207. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5208. msm_routing_put_audio_mixer),
  5209. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5210. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5211. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5212. msm_routing_put_audio_mixer),
  5213. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5214. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5215. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5216. msm_routing_put_audio_mixer),
  5217. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5218. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5219. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5220. msm_routing_put_audio_mixer),
  5221. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5222. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5223. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5224. msm_routing_put_audio_mixer),
  5225. };
  5226. /* incall music delivery mixer */
  5227. static const struct snd_kcontrol_new incall_music_delivery_mixer_controls[] = {
  5228. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5229. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5230. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5231. msm_routing_put_audio_mixer),
  5232. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5233. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5234. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5235. msm_routing_put_audio_mixer),
  5236. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5237. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5238. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5239. msm_routing_put_audio_mixer),
  5240. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5241. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5242. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5243. msm_routing_put_audio_mixer),
  5244. };
  5245. static const struct snd_kcontrol_new incall_music2_delivery_mixer_controls[] = {
  5246. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5247. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5248. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5249. msm_routing_put_audio_mixer),
  5250. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5251. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5252. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5253. msm_routing_put_audio_mixer),
  5254. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5255. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5256. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5257. msm_routing_put_audio_mixer),
  5258. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5259. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5260. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5261. msm_routing_put_audio_mixer),
  5262. };
  5263. static const struct snd_kcontrol_new slimbus_4_rx_mixer_controls[] = {
  5264. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5265. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5266. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5267. msm_routing_put_audio_mixer),
  5268. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5269. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5270. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5271. msm_routing_put_audio_mixer),
  5272. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5273. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5274. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5275. msm_routing_put_audio_mixer),
  5276. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5277. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5278. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5279. msm_routing_put_audio_mixer),
  5280. };
  5281. static const struct snd_kcontrol_new slimbus_6_rx_mixer_controls[] = {
  5282. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5283. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5284. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5285. msm_routing_put_audio_mixer),
  5286. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5287. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5288. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5289. msm_routing_put_audio_mixer),
  5290. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5291. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5292. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5293. msm_routing_put_audio_mixer),
  5294. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5295. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5296. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5297. msm_routing_put_audio_mixer),
  5298. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5299. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5300. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5301. msm_routing_put_audio_mixer),
  5302. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5303. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5304. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5305. msm_routing_put_audio_mixer),
  5306. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5307. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5308. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5309. msm_routing_put_audio_mixer),
  5310. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5311. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5312. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5313. msm_routing_put_audio_mixer),
  5314. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5315. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5316. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5317. msm_routing_put_audio_mixer),
  5318. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5319. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5320. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5321. msm_routing_put_audio_mixer),
  5322. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5323. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5324. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5325. msm_routing_put_audio_mixer),
  5326. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5327. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5328. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5329. msm_routing_put_audio_mixer),
  5330. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5331. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5332. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5333. msm_routing_put_audio_mixer),
  5334. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5335. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5336. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5337. msm_routing_put_audio_mixer),
  5338. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5339. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5340. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5341. msm_routing_put_audio_mixer),
  5342. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5343. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5344. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5345. msm_routing_put_audio_mixer),
  5346. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5347. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5348. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5349. msm_routing_put_audio_mixer),
  5350. };
  5351. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_mixer_controls[] = {
  5352. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5353. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5354. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5355. msm_routing_put_audio_mixer),
  5356. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5357. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5358. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5359. msm_routing_put_audio_mixer),
  5360. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5361. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5362. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5363. msm_routing_put_audio_mixer),
  5364. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5365. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5366. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5367. msm_routing_put_audio_mixer),
  5368. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5369. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5370. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5371. msm_routing_put_audio_mixer),
  5372. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5373. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5374. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5375. msm_routing_put_audio_mixer),
  5376. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5377. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5378. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5379. msm_routing_put_audio_mixer),
  5380. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5381. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5382. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5383. msm_routing_put_audio_mixer),
  5384. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5385. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5386. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5387. msm_routing_put_audio_mixer),
  5388. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5389. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5390. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5391. msm_routing_put_audio_mixer),
  5392. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5393. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5394. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5395. msm_routing_put_audio_mixer),
  5396. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5397. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5398. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5399. msm_routing_put_audio_mixer),
  5400. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5401. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5402. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5403. msm_routing_put_audio_mixer),
  5404. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5405. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5406. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5407. msm_routing_put_audio_mixer),
  5408. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5409. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5410. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5411. msm_routing_put_audio_mixer),
  5412. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5413. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5414. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5415. msm_routing_put_audio_mixer),
  5416. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5417. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5418. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5419. msm_routing_put_audio_mixer),
  5420. };
  5421. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_mixer_controls[] = {
  5422. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5423. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5424. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5425. msm_routing_put_audio_mixer),
  5426. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5427. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5428. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5429. msm_routing_put_audio_mixer),
  5430. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5431. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5432. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5433. msm_routing_put_audio_mixer),
  5434. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5435. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5436. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5437. msm_routing_put_audio_mixer),
  5438. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5439. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5440. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5441. msm_routing_put_audio_mixer),
  5442. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5443. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5444. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5445. msm_routing_put_audio_mixer),
  5446. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5447. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5448. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5449. msm_routing_put_audio_mixer),
  5450. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5451. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5452. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5453. msm_routing_put_audio_mixer),
  5454. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5455. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5456. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5457. msm_routing_put_audio_mixer),
  5458. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5459. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5460. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5461. msm_routing_put_audio_mixer),
  5462. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5463. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5464. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5465. msm_routing_put_audio_mixer),
  5466. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5467. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5468. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5469. msm_routing_put_audio_mixer),
  5470. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5471. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5472. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5473. msm_routing_put_audio_mixer),
  5474. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5475. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5476. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5477. msm_routing_put_audio_mixer),
  5478. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5479. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5480. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5481. msm_routing_put_audio_mixer),
  5482. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5483. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5484. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5485. msm_routing_put_audio_mixer),
  5486. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5487. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5488. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5489. msm_routing_put_audio_mixer),
  5490. };
  5491. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_mixer_controls[] = {
  5492. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5493. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5494. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5495. msm_routing_put_audio_mixer),
  5496. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5497. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5498. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5499. msm_routing_put_audio_mixer),
  5500. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5501. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5502. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5503. msm_routing_put_audio_mixer),
  5504. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5505. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5506. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5507. msm_routing_put_audio_mixer),
  5508. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5509. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5510. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5511. msm_routing_put_audio_mixer),
  5512. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5513. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5514. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5515. msm_routing_put_audio_mixer),
  5516. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5517. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5518. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5519. msm_routing_put_audio_mixer),
  5520. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5521. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5522. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5523. msm_routing_put_audio_mixer),
  5524. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5525. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5526. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5527. msm_routing_put_audio_mixer),
  5528. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5529. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5530. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5531. msm_routing_put_audio_mixer),
  5532. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5533. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5534. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5535. msm_routing_put_audio_mixer),
  5536. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5537. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5538. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5539. msm_routing_put_audio_mixer),
  5540. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5541. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5542. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5543. msm_routing_put_audio_mixer),
  5544. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5545. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5546. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5547. msm_routing_put_audio_mixer),
  5548. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5549. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5550. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5551. msm_routing_put_audio_mixer),
  5552. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5553. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5554. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5555. msm_routing_put_audio_mixer),
  5556. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5557. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5558. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5559. msm_routing_put_audio_mixer),
  5560. };
  5561. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_mixer_controls[] = {
  5562. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5563. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5564. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5565. msm_routing_put_audio_mixer),
  5566. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5567. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5568. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5569. msm_routing_put_audio_mixer),
  5570. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5571. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5572. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5573. msm_routing_put_audio_mixer),
  5574. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5575. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5576. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5577. msm_routing_put_audio_mixer),
  5578. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5579. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5580. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5581. msm_routing_put_audio_mixer),
  5582. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5583. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5584. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5585. msm_routing_put_audio_mixer),
  5586. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5587. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5588. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5589. msm_routing_put_audio_mixer),
  5590. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5591. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5592. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5593. msm_routing_put_audio_mixer),
  5594. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5595. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5596. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5597. msm_routing_put_audio_mixer),
  5598. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5599. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5600. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5601. msm_routing_put_audio_mixer),
  5602. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5603. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5604. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5605. msm_routing_put_audio_mixer),
  5606. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5607. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5608. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5609. msm_routing_put_audio_mixer),
  5610. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5611. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5612. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5613. msm_routing_put_audio_mixer),
  5614. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5615. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5616. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5617. msm_routing_put_audio_mixer),
  5618. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5619. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5620. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5621. msm_routing_put_audio_mixer),
  5622. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5623. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5624. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5625. msm_routing_put_audio_mixer),
  5626. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5627. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5628. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5629. msm_routing_put_audio_mixer),
  5630. };
  5631. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_mixer_controls[] = {
  5632. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5633. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5634. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5635. msm_routing_put_audio_mixer),
  5636. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5637. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5638. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5639. msm_routing_put_audio_mixer),
  5640. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5641. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5642. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5643. msm_routing_put_audio_mixer),
  5644. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5645. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5646. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5647. msm_routing_put_audio_mixer),
  5648. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5649. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5650. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5651. msm_routing_put_audio_mixer),
  5652. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5653. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5654. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5655. msm_routing_put_audio_mixer),
  5656. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5657. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5658. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5659. msm_routing_put_audio_mixer),
  5660. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5661. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5662. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5663. msm_routing_put_audio_mixer),
  5664. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5665. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5666. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5667. msm_routing_put_audio_mixer),
  5668. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5669. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5670. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5671. msm_routing_put_audio_mixer),
  5672. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5673. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5674. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5675. msm_routing_put_audio_mixer),
  5676. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5677. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5678. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5679. msm_routing_put_audio_mixer),
  5680. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5681. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5682. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5683. msm_routing_put_audio_mixer),
  5684. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5685. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5686. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5687. msm_routing_put_audio_mixer),
  5688. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5689. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5690. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5691. msm_routing_put_audio_mixer),
  5692. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5693. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5694. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5695. msm_routing_put_audio_mixer),
  5696. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5697. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5698. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5699. msm_routing_put_audio_mixer),
  5700. };
  5701. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_mixer_controls[] = {
  5702. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5703. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5704. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5705. msm_routing_put_audio_mixer),
  5706. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5707. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5708. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5709. msm_routing_put_audio_mixer),
  5710. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5711. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5712. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5713. msm_routing_put_audio_mixer),
  5714. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5715. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5716. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5717. msm_routing_put_audio_mixer),
  5718. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5719. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5720. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5721. msm_routing_put_audio_mixer),
  5722. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5723. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5724. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5725. msm_routing_put_audio_mixer),
  5726. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5727. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5728. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5729. msm_routing_put_audio_mixer),
  5730. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5731. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5732. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5733. msm_routing_put_audio_mixer),
  5734. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5735. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5736. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5737. msm_routing_put_audio_mixer),
  5738. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5739. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5740. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5741. msm_routing_put_audio_mixer),
  5742. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5743. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5744. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5745. msm_routing_put_audio_mixer),
  5746. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5747. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5748. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5749. msm_routing_put_audio_mixer),
  5750. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5751. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5752. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5753. msm_routing_put_audio_mixer),
  5754. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5755. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5756. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5757. msm_routing_put_audio_mixer),
  5758. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5759. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5760. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5761. msm_routing_put_audio_mixer),
  5762. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5763. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5764. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5765. msm_routing_put_audio_mixer),
  5766. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5767. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5768. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5769. msm_routing_put_audio_mixer),
  5770. };
  5771. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_mixer_controls[] = {
  5772. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5773. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5774. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5775. msm_routing_put_audio_mixer),
  5776. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5777. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5778. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5779. msm_routing_put_audio_mixer),
  5780. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5781. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5782. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5783. msm_routing_put_audio_mixer),
  5784. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5785. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5786. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5787. msm_routing_put_audio_mixer),
  5788. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5789. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5790. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5791. msm_routing_put_audio_mixer),
  5792. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5793. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5794. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5795. msm_routing_put_audio_mixer),
  5796. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5797. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5798. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5799. msm_routing_put_audio_mixer),
  5800. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5801. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5802. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5803. msm_routing_put_audio_mixer),
  5804. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5805. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5806. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5807. msm_routing_put_audio_mixer),
  5808. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5809. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5810. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5811. msm_routing_put_audio_mixer),
  5812. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5813. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5814. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5815. msm_routing_put_audio_mixer),
  5816. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5817. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5818. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5819. msm_routing_put_audio_mixer),
  5820. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5821. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5822. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5823. msm_routing_put_audio_mixer),
  5824. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5825. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5826. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5827. msm_routing_put_audio_mixer),
  5828. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5829. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5830. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5831. msm_routing_put_audio_mixer),
  5832. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5833. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5834. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5835. msm_routing_put_audio_mixer),
  5836. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5837. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5838. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5839. msm_routing_put_audio_mixer),
  5840. };
  5841. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_mixer_controls[] = {
  5842. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5843. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5844. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5845. msm_routing_put_audio_mixer),
  5846. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5847. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5848. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5849. msm_routing_put_audio_mixer),
  5850. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5851. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5852. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5853. msm_routing_put_audio_mixer),
  5854. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5855. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5856. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5857. msm_routing_put_audio_mixer),
  5858. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5859. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5860. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5861. msm_routing_put_audio_mixer),
  5862. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5863. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5864. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5865. msm_routing_put_audio_mixer),
  5866. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5867. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5868. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5869. msm_routing_put_audio_mixer),
  5870. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5871. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5872. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5873. msm_routing_put_audio_mixer),
  5874. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5875. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5876. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5877. msm_routing_put_audio_mixer),
  5878. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5879. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5880. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5881. msm_routing_put_audio_mixer),
  5882. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5883. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5884. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5885. msm_routing_put_audio_mixer),
  5886. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5887. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5888. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5889. msm_routing_put_audio_mixer),
  5890. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5891. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5892. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5893. msm_routing_put_audio_mixer),
  5894. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5895. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5896. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5897. msm_routing_put_audio_mixer),
  5898. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5899. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5900. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5901. msm_routing_put_audio_mixer),
  5902. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5903. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5904. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5905. msm_routing_put_audio_mixer),
  5906. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5907. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5908. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5909. msm_routing_put_audio_mixer),
  5910. };
  5911. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_mixer_controls[] = {
  5912. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5913. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5914. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5915. msm_routing_put_audio_mixer),
  5916. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5917. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5918. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5919. msm_routing_put_audio_mixer),
  5920. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5921. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5922. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5923. msm_routing_put_audio_mixer),
  5924. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5925. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5926. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5927. msm_routing_put_audio_mixer),
  5928. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5929. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5930. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5931. msm_routing_put_audio_mixer),
  5932. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5933. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5934. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5935. msm_routing_put_audio_mixer),
  5936. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5937. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5938. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5939. msm_routing_put_audio_mixer),
  5940. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5941. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5942. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5943. msm_routing_put_audio_mixer),
  5944. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5945. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5946. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5947. msm_routing_put_audio_mixer),
  5948. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5949. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5950. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5951. msm_routing_put_audio_mixer),
  5952. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5953. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5954. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5955. msm_routing_put_audio_mixer),
  5956. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5957. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5958. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5959. msm_routing_put_audio_mixer),
  5960. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5961. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5962. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5963. msm_routing_put_audio_mixer),
  5964. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5965. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5966. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5967. msm_routing_put_audio_mixer),
  5968. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5969. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5970. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5971. msm_routing_put_audio_mixer),
  5972. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5973. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5974. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5975. msm_routing_put_audio_mixer),
  5976. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5977. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5978. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5979. msm_routing_put_audio_mixer),
  5980. };
  5981. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_mixer_controls[] = {
  5982. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5983. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5984. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5985. msm_routing_put_audio_mixer),
  5986. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5987. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5988. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5989. msm_routing_put_audio_mixer),
  5990. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5991. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5992. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5993. msm_routing_put_audio_mixer),
  5994. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5995. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  5996. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5997. msm_routing_put_audio_mixer),
  5998. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5999. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6000. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6001. msm_routing_put_audio_mixer),
  6002. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6003. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6004. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6005. msm_routing_put_audio_mixer),
  6006. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6007. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6008. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6009. msm_routing_put_audio_mixer),
  6010. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6011. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6012. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6013. msm_routing_put_audio_mixer),
  6014. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6015. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6016. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6017. msm_routing_put_audio_mixer),
  6018. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6019. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6020. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6021. msm_routing_put_audio_mixer),
  6022. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6023. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6024. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6025. msm_routing_put_audio_mixer),
  6026. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6027. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6028. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6029. msm_routing_put_audio_mixer),
  6030. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6031. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6032. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6033. msm_routing_put_audio_mixer),
  6034. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6035. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6036. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6037. msm_routing_put_audio_mixer),
  6038. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6039. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6040. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6041. msm_routing_put_audio_mixer),
  6042. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6043. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6044. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6045. msm_routing_put_audio_mixer),
  6046. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6047. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6048. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6049. msm_routing_put_audio_mixer),
  6050. };
  6051. static const struct snd_kcontrol_new slimbus_7_rx_mixer_controls[] = {
  6052. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6053. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6054. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6055. msm_routing_put_audio_mixer),
  6056. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6057. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6058. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6059. msm_routing_put_audio_mixer),
  6060. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6061. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6062. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6063. msm_routing_put_audio_mixer),
  6064. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6065. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6066. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6067. msm_routing_put_audio_mixer),
  6068. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6069. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6070. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6071. msm_routing_put_audio_mixer),
  6072. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6073. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6074. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6075. msm_routing_put_audio_mixer),
  6076. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6077. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6078. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6079. msm_routing_put_audio_mixer),
  6080. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6081. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6082. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6083. msm_routing_put_audio_mixer),
  6084. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6085. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6086. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6087. msm_routing_put_audio_mixer),
  6088. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6089. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6090. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6091. msm_routing_put_audio_mixer),
  6092. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6093. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6094. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6095. msm_routing_put_audio_mixer),
  6096. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6097. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6098. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6099. msm_routing_put_audio_mixer),
  6100. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6101. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6102. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6103. msm_routing_put_audio_mixer),
  6104. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6105. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6106. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6107. msm_routing_put_audio_mixer),
  6108. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6109. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6110. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6111. msm_routing_put_audio_mixer),
  6112. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6113. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6114. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6115. msm_routing_put_audio_mixer),
  6116. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6117. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6118. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6119. msm_routing_put_audio_mixer),
  6120. };
  6121. static const struct snd_kcontrol_new slimbus_9_rx_mixer_controls[] = {
  6122. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6123. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6124. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6125. msm_routing_put_audio_mixer),
  6126. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6127. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6128. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6129. msm_routing_put_audio_mixer),
  6130. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6131. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6132. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6133. msm_routing_put_audio_mixer),
  6134. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6135. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6136. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6137. msm_routing_put_audio_mixer),
  6138. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6139. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6140. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6141. msm_routing_put_audio_mixer),
  6142. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6143. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6144. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6145. msm_routing_put_audio_mixer),
  6146. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6147. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6148. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6149. msm_routing_put_audio_mixer),
  6150. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6151. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6152. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6153. msm_routing_put_audio_mixer),
  6154. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6155. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6156. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6157. msm_routing_put_audio_mixer),
  6158. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6159. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6160. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6161. msm_routing_put_audio_mixer),
  6162. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6163. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6164. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6165. msm_routing_put_audio_mixer),
  6166. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6167. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6168. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6169. msm_routing_put_audio_mixer),
  6170. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6171. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6172. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6173. msm_routing_put_audio_mixer),
  6174. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6175. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6176. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6177. msm_routing_put_audio_mixer),
  6178. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6179. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6180. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6181. msm_routing_put_audio_mixer),
  6182. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6183. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6184. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6185. msm_routing_put_audio_mixer),
  6186. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6187. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6188. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6189. msm_routing_put_audio_mixer),
  6190. };
  6191. static const struct snd_kcontrol_new usb_audio_rx_mixer_controls[] = {
  6192. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6193. MSM_BACKEND_DAI_USB_RX,
  6194. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6195. msm_routing_put_audio_mixer),
  6196. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6197. MSM_BACKEND_DAI_USB_RX,
  6198. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6199. msm_routing_put_audio_mixer),
  6200. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6201. MSM_BACKEND_DAI_USB_RX,
  6202. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6203. msm_routing_put_audio_mixer),
  6204. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6205. MSM_BACKEND_DAI_USB_RX,
  6206. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6207. msm_routing_put_audio_mixer),
  6208. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6209. MSM_BACKEND_DAI_USB_RX,
  6210. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6211. msm_routing_put_audio_mixer),
  6212. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6213. MSM_BACKEND_DAI_USB_RX,
  6214. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6215. msm_routing_put_audio_mixer),
  6216. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6217. MSM_BACKEND_DAI_USB_RX,
  6218. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6219. msm_routing_put_audio_mixer),
  6220. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6221. MSM_BACKEND_DAI_USB_RX,
  6222. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6223. msm_routing_put_audio_mixer),
  6224. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6225. MSM_BACKEND_DAI_USB_RX,
  6226. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6227. msm_routing_put_audio_mixer),
  6228. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6229. MSM_BACKEND_DAI_USB_RX,
  6230. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6231. msm_routing_put_audio_mixer),
  6232. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6233. MSM_BACKEND_DAI_USB_RX,
  6234. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6235. msm_routing_put_audio_mixer),
  6236. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6237. MSM_BACKEND_DAI_USB_RX,
  6238. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6239. msm_routing_put_audio_mixer),
  6240. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6241. MSM_BACKEND_DAI_USB_RX,
  6242. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6243. msm_routing_put_audio_mixer),
  6244. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6245. MSM_BACKEND_DAI_USB_RX,
  6246. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6247. msm_routing_put_audio_mixer),
  6248. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6249. MSM_BACKEND_DAI_USB_RX,
  6250. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6251. msm_routing_put_audio_mixer),
  6252. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6253. MSM_BACKEND_DAI_USB_RX,
  6254. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6255. msm_routing_put_audio_mixer),
  6256. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6257. MSM_BACKEND_DAI_USB_RX,
  6258. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6259. msm_routing_put_audio_mixer),
  6260. };
  6261. static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
  6262. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6263. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6264. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6265. msm_routing_put_audio_mixer),
  6266. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6267. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6268. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6269. msm_routing_put_audio_mixer),
  6270. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6271. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6272. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6273. msm_routing_put_audio_mixer),
  6274. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6275. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6276. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6277. msm_routing_put_audio_mixer),
  6278. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6279. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6280. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6281. msm_routing_put_audio_mixer),
  6282. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6283. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6284. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6285. msm_routing_put_audio_mixer),
  6286. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6287. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6288. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6289. msm_routing_put_audio_mixer),
  6290. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6291. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6292. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6293. msm_routing_put_audio_mixer),
  6294. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6295. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6296. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6297. msm_routing_put_audio_mixer),
  6298. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6299. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6300. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6301. msm_routing_put_audio_mixer),
  6302. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6303. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6304. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6305. msm_routing_put_audio_mixer),
  6306. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6307. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6308. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6309. msm_routing_put_audio_mixer),
  6310. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6311. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6312. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6313. msm_routing_put_audio_mixer),
  6314. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6315. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6316. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6317. msm_routing_put_audio_mixer),
  6318. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6319. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6320. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6321. msm_routing_put_audio_mixer),
  6322. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6323. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6324. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6325. msm_routing_put_audio_mixer),
  6326. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6327. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6328. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6329. msm_routing_put_audio_mixer),
  6330. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6331. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6332. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6333. msm_routing_put_audio_mixer),
  6334. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6335. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6336. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6337. msm_routing_put_audio_mixer),
  6338. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6339. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6340. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6341. msm_routing_put_audio_mixer),
  6342. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6343. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6344. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6345. msm_routing_put_audio_mixer),
  6346. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6347. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6348. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6349. msm_routing_put_audio_mixer),
  6350. };
  6351. static const struct snd_kcontrol_new int_bt_a2dp_rx_mixer_controls[] = {
  6352. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6353. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6354. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6355. msm_routing_put_audio_mixer),
  6356. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6357. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6358. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6359. msm_routing_put_audio_mixer),
  6360. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6361. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6362. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6363. msm_routing_put_audio_mixer),
  6364. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6365. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6366. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6367. msm_routing_put_audio_mixer),
  6368. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6369. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6370. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6371. msm_routing_put_audio_mixer),
  6372. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6373. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6374. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6375. msm_routing_put_audio_mixer),
  6376. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6377. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6378. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6379. msm_routing_put_audio_mixer),
  6380. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6381. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6382. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6383. msm_routing_put_audio_mixer),
  6384. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6385. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6386. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6387. msm_routing_put_audio_mixer),
  6388. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6389. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6390. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6391. msm_routing_put_audio_mixer),
  6392. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6393. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6394. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6395. msm_routing_put_audio_mixer),
  6396. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6397. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6398. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6399. msm_routing_put_audio_mixer),
  6400. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6401. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6402. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6403. msm_routing_put_audio_mixer),
  6404. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6405. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6406. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6407. msm_routing_put_audio_mixer),
  6408. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6409. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6410. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6411. msm_routing_put_audio_mixer),
  6412. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6413. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6414. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6415. msm_routing_put_audio_mixer),
  6416. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6417. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6418. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6419. msm_routing_put_audio_mixer),
  6420. };
  6421. static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
  6422. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6423. MSM_BACKEND_DAI_INT_FM_RX,
  6424. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6425. msm_routing_put_audio_mixer),
  6426. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6427. MSM_BACKEND_DAI_INT_FM_RX,
  6428. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6429. msm_routing_put_audio_mixer),
  6430. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6431. MSM_BACKEND_DAI_INT_FM_RX,
  6432. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6433. msm_routing_put_audio_mixer),
  6434. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6435. MSM_BACKEND_DAI_INT_FM_RX,
  6436. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6437. msm_routing_put_audio_mixer),
  6438. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6439. MSM_BACKEND_DAI_INT_FM_RX,
  6440. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6441. msm_routing_put_audio_mixer),
  6442. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6443. MSM_BACKEND_DAI_INT_FM_RX,
  6444. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6445. msm_routing_put_audio_mixer),
  6446. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6447. MSM_BACKEND_DAI_INT_FM_RX,
  6448. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6449. msm_routing_put_audio_mixer),
  6450. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6451. MSM_BACKEND_DAI_INT_FM_RX,
  6452. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6453. msm_routing_put_audio_mixer),
  6454. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6455. MSM_BACKEND_DAI_INT_FM_RX,
  6456. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6457. msm_routing_put_audio_mixer),
  6458. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6459. MSM_BACKEND_DAI_INT_FM_RX,
  6460. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6461. msm_routing_put_audio_mixer),
  6462. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6463. MSM_BACKEND_DAI_INT_FM_RX,
  6464. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6465. msm_routing_put_audio_mixer),
  6466. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6467. MSM_BACKEND_DAI_INT_FM_RX,
  6468. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6469. msm_routing_put_audio_mixer),
  6470. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6471. MSM_BACKEND_DAI_INT_FM_RX,
  6472. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6473. msm_routing_put_audio_mixer),
  6474. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6475. MSM_BACKEND_DAI_INT_FM_RX,
  6476. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6477. msm_routing_put_audio_mixer),
  6478. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6479. MSM_BACKEND_DAI_INT_FM_RX,
  6480. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6481. msm_routing_put_audio_mixer),
  6482. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6483. MSM_BACKEND_DAI_INT_FM_RX,
  6484. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6485. msm_routing_put_audio_mixer),
  6486. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6487. MSM_BACKEND_DAI_INT_FM_RX,
  6488. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6489. msm_routing_put_audio_mixer),
  6490. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6491. MSM_BACKEND_DAI_INT_FM_RX,
  6492. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6493. msm_routing_put_audio_mixer),
  6494. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6495. MSM_BACKEND_DAI_INT_FM_RX,
  6496. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6497. msm_routing_put_audio_mixer),
  6498. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6499. MSM_BACKEND_DAI_INT_FM_RX,
  6500. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6501. msm_routing_put_audio_mixer),
  6502. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6503. MSM_BACKEND_DAI_INT_FM_RX,
  6504. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6505. msm_routing_put_audio_mixer),
  6506. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6507. MSM_BACKEND_DAI_INT_FM_RX,
  6508. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6509. msm_routing_put_audio_mixer),
  6510. };
  6511. static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
  6512. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6513. MSM_BACKEND_DAI_AFE_PCM_RX,
  6514. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6515. msm_routing_put_audio_mixer),
  6516. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6517. MSM_BACKEND_DAI_AFE_PCM_RX,
  6518. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6519. msm_routing_put_audio_mixer),
  6520. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6521. MSM_BACKEND_DAI_AFE_PCM_RX,
  6522. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6523. msm_routing_put_audio_mixer),
  6524. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6525. MSM_BACKEND_DAI_AFE_PCM_RX,
  6526. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6527. msm_routing_put_audio_mixer),
  6528. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6529. MSM_BACKEND_DAI_AFE_PCM_RX,
  6530. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6531. msm_routing_put_audio_mixer),
  6532. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6533. MSM_BACKEND_DAI_AFE_PCM_RX,
  6534. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6535. msm_routing_put_audio_mixer),
  6536. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6537. MSM_BACKEND_DAI_AFE_PCM_RX,
  6538. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6539. msm_routing_put_audio_mixer),
  6540. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6541. MSM_BACKEND_DAI_AFE_PCM_RX,
  6542. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6543. msm_routing_put_audio_mixer),
  6544. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6545. MSM_BACKEND_DAI_AFE_PCM_RX,
  6546. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6547. msm_routing_put_audio_mixer),
  6548. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6549. MSM_BACKEND_DAI_AFE_PCM_RX,
  6550. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6551. msm_routing_put_audio_mixer),
  6552. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6553. MSM_BACKEND_DAI_AFE_PCM_RX,
  6554. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6555. msm_routing_put_audio_mixer),
  6556. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6557. MSM_BACKEND_DAI_AFE_PCM_RX,
  6558. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6559. msm_routing_put_audio_mixer),
  6560. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6561. MSM_BACKEND_DAI_AFE_PCM_RX,
  6562. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6563. msm_routing_put_audio_mixer),
  6564. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6565. MSM_BACKEND_DAI_AFE_PCM_RX,
  6566. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6567. msm_routing_put_audio_mixer),
  6568. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6569. MSM_BACKEND_DAI_AFE_PCM_RX,
  6570. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6571. msm_routing_put_audio_mixer),
  6572. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6573. MSM_BACKEND_DAI_AFE_PCM_RX,
  6574. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6575. msm_routing_put_audio_mixer),
  6576. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6577. MSM_BACKEND_DAI_AFE_PCM_RX,
  6578. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6579. msm_routing_put_audio_mixer),
  6580. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6581. MSM_BACKEND_DAI_AFE_PCM_RX,
  6582. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6583. msm_routing_put_audio_mixer),
  6584. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6585. MSM_BACKEND_DAI_AFE_PCM_RX,
  6586. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6587. msm_routing_put_audio_mixer),
  6588. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6589. MSM_BACKEND_DAI_AFE_PCM_RX,
  6590. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6591. msm_routing_put_audio_mixer),
  6592. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6593. MSM_BACKEND_DAI_AFE_PCM_RX,
  6594. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6595. msm_routing_put_audio_mixer),
  6596. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6597. MSM_BACKEND_DAI_AFE_PCM_RX,
  6598. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6599. msm_routing_put_audio_mixer),
  6600. };
  6601. static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
  6602. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6603. MSM_BACKEND_DAI_AUXPCM_RX,
  6604. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6605. msm_routing_put_audio_mixer),
  6606. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6607. MSM_BACKEND_DAI_AUXPCM_RX,
  6608. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6609. msm_routing_put_audio_mixer),
  6610. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6611. MSM_BACKEND_DAI_AUXPCM_RX,
  6612. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6613. msm_routing_put_audio_mixer),
  6614. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6615. MSM_BACKEND_DAI_AUXPCM_RX,
  6616. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6617. msm_routing_put_audio_mixer),
  6618. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6619. MSM_BACKEND_DAI_AUXPCM_RX,
  6620. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6621. msm_routing_put_audio_mixer),
  6622. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6623. MSM_BACKEND_DAI_AUXPCM_RX,
  6624. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6625. msm_routing_put_audio_mixer),
  6626. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6627. MSM_BACKEND_DAI_AUXPCM_RX,
  6628. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6629. msm_routing_put_audio_mixer),
  6630. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6631. MSM_BACKEND_DAI_AUXPCM_RX,
  6632. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6633. msm_routing_put_audio_mixer),
  6634. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6635. MSM_BACKEND_DAI_AUXPCM_RX,
  6636. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6637. msm_routing_put_audio_mixer),
  6638. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6639. MSM_BACKEND_DAI_AUXPCM_RX,
  6640. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6641. msm_routing_put_audio_mixer),
  6642. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6643. MSM_BACKEND_DAI_AUXPCM_RX,
  6644. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6645. msm_routing_put_audio_mixer),
  6646. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6647. MSM_BACKEND_DAI_AUXPCM_RX,
  6648. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6649. msm_routing_put_audio_mixer),
  6650. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6651. MSM_BACKEND_DAI_AUXPCM_RX,
  6652. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6653. msm_routing_put_audio_mixer),
  6654. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6655. MSM_BACKEND_DAI_AUXPCM_RX,
  6656. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6657. msm_routing_put_audio_mixer),
  6658. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6659. MSM_BACKEND_DAI_AUXPCM_RX,
  6660. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6661. msm_routing_put_audio_mixer),
  6662. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6663. MSM_BACKEND_DAI_AUXPCM_RX,
  6664. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6665. msm_routing_put_audio_mixer),
  6666. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6667. MSM_BACKEND_DAI_AUXPCM_RX,
  6668. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6669. msm_routing_put_audio_mixer),
  6670. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6671. MSM_BACKEND_DAI_AUXPCM_RX,
  6672. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6673. msm_routing_put_audio_mixer),
  6674. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6675. MSM_BACKEND_DAI_AUXPCM_RX,
  6676. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6677. msm_routing_put_audio_mixer),
  6678. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  6679. MSM_BACKEND_DAI_AUXPCM_RX,
  6680. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  6681. msm_routing_put_audio_mixer),
  6682. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6683. MSM_BACKEND_DAI_AUXPCM_RX,
  6684. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6685. msm_routing_put_audio_mixer),
  6686. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6687. MSM_BACKEND_DAI_AUXPCM_RX,
  6688. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6689. msm_routing_put_audio_mixer),
  6690. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6691. MSM_BACKEND_DAI_AUXPCM_RX,
  6692. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6693. msm_routing_put_audio_mixer),
  6694. };
  6695. static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
  6696. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6697. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6698. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6699. msm_routing_put_audio_mixer),
  6700. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6701. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6702. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6703. msm_routing_put_audio_mixer),
  6704. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6705. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6706. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6707. msm_routing_put_audio_mixer),
  6708. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6709. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6710. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6711. msm_routing_put_audio_mixer),
  6712. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6713. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6714. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6715. msm_routing_put_audio_mixer),
  6716. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6717. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6718. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6719. msm_routing_put_audio_mixer),
  6720. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6721. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6722. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6723. msm_routing_put_audio_mixer),
  6724. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6725. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6726. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6727. msm_routing_put_audio_mixer),
  6728. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6729. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6730. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6731. msm_routing_put_audio_mixer),
  6732. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6733. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6734. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6735. msm_routing_put_audio_mixer),
  6736. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6737. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6738. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6739. msm_routing_put_audio_mixer),
  6740. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6741. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6742. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6743. msm_routing_put_audio_mixer),
  6744. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6745. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6746. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6747. msm_routing_put_audio_mixer),
  6748. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6749. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6750. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6751. msm_routing_put_audio_mixer),
  6752. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6753. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6754. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6755. msm_routing_put_audio_mixer),
  6756. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6757. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6758. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6759. msm_routing_put_audio_mixer),
  6760. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6761. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6762. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6763. msm_routing_put_audio_mixer),
  6764. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6765. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6766. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6767. msm_routing_put_audio_mixer),
  6768. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6769. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6770. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6771. msm_routing_put_audio_mixer),
  6772. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  6773. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6774. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  6775. msm_routing_put_audio_mixer),
  6776. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6777. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6778. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6779. msm_routing_put_audio_mixer),
  6780. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6781. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6782. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6783. msm_routing_put_audio_mixer),
  6784. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6785. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6786. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6787. msm_routing_put_audio_mixer),
  6788. };
  6789. static const struct snd_kcontrol_new tert_auxpcm_rx_mixer_controls[] = {
  6790. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6791. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6792. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6793. msm_routing_put_audio_mixer),
  6794. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6795. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6796. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6797. msm_routing_put_audio_mixer),
  6798. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6799. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6800. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6801. msm_routing_put_audio_mixer),
  6802. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6803. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6804. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6805. msm_routing_put_audio_mixer),
  6806. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6807. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6808. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6809. msm_routing_put_audio_mixer),
  6810. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6811. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6812. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6813. msm_routing_put_audio_mixer),
  6814. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6815. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6816. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6817. msm_routing_put_audio_mixer),
  6818. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6819. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6820. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6821. msm_routing_put_audio_mixer),
  6822. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6823. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6824. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6825. msm_routing_put_audio_mixer),
  6826. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6827. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6828. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6829. msm_routing_put_audio_mixer),
  6830. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6831. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6832. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6833. msm_routing_put_audio_mixer),
  6834. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6835. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6836. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6837. msm_routing_put_audio_mixer),
  6838. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6839. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6840. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6841. msm_routing_put_audio_mixer),
  6842. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6843. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6844. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6845. msm_routing_put_audio_mixer),
  6846. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6847. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6848. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6849. msm_routing_put_audio_mixer),
  6850. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6851. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6852. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6853. msm_routing_put_audio_mixer),
  6854. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6855. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6856. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6857. msm_routing_put_audio_mixer),
  6858. };
  6859. static const struct snd_kcontrol_new quat_auxpcm_rx_mixer_controls[] = {
  6860. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6861. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6862. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6863. msm_routing_put_audio_mixer),
  6864. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6865. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6866. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6867. msm_routing_put_audio_mixer),
  6868. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6869. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6870. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6871. msm_routing_put_audio_mixer),
  6872. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6873. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6874. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6875. msm_routing_put_audio_mixer),
  6876. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6877. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6878. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6879. msm_routing_put_audio_mixer),
  6880. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6881. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6882. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6883. msm_routing_put_audio_mixer),
  6884. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6885. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6886. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6887. msm_routing_put_audio_mixer),
  6888. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6889. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6890. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6891. msm_routing_put_audio_mixer),
  6892. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6893. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6894. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6895. msm_routing_put_audio_mixer),
  6896. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6897. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6898. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6899. msm_routing_put_audio_mixer),
  6900. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6901. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6902. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6903. msm_routing_put_audio_mixer),
  6904. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6905. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6906. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6907. msm_routing_put_audio_mixer),
  6908. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6909. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6910. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6911. msm_routing_put_audio_mixer),
  6912. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6913. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6914. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6915. msm_routing_put_audio_mixer),
  6916. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6917. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6918. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6919. msm_routing_put_audio_mixer),
  6920. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6921. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6922. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6923. msm_routing_put_audio_mixer),
  6924. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6925. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6926. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6927. msm_routing_put_audio_mixer),
  6928. };
  6929. static const struct snd_kcontrol_new quin_auxpcm_rx_mixer_controls[] = {
  6930. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6931. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6932. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6933. msm_routing_put_audio_mixer),
  6934. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6935. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6936. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6937. msm_routing_put_audio_mixer),
  6938. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6939. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6940. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6941. msm_routing_put_audio_mixer),
  6942. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6943. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6944. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6945. msm_routing_put_audio_mixer),
  6946. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6947. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6948. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6949. msm_routing_put_audio_mixer),
  6950. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6951. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6952. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6953. msm_routing_put_audio_mixer),
  6954. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6955. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6956. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6957. msm_routing_put_audio_mixer),
  6958. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6959. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6960. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6961. msm_routing_put_audio_mixer),
  6962. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6963. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6964. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6965. msm_routing_put_audio_mixer),
  6966. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6967. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6968. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6969. msm_routing_put_audio_mixer),
  6970. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6971. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6972. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6973. msm_routing_put_audio_mixer),
  6974. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6975. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6976. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6977. msm_routing_put_audio_mixer),
  6978. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6979. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6980. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6981. msm_routing_put_audio_mixer),
  6982. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6983. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6984. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6985. msm_routing_put_audio_mixer),
  6986. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6987. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6988. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6989. msm_routing_put_audio_mixer),
  6990. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6991. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6992. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6993. msm_routing_put_audio_mixer),
  6994. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6995. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6996. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6997. msm_routing_put_audio_mixer),
  6998. };
  6999. static const struct snd_kcontrol_new pri_tdm_rx_0_mixer_controls[] = {
  7000. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7001. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7002. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7003. msm_routing_put_audio_mixer),
  7004. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7005. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7006. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7007. msm_routing_put_audio_mixer),
  7008. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7009. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7010. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7011. msm_routing_put_audio_mixer),
  7012. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7013. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7014. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7015. msm_routing_put_audio_mixer),
  7016. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7017. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7018. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7019. msm_routing_put_audio_mixer),
  7020. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7021. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7022. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7023. msm_routing_put_audio_mixer),
  7024. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7025. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7026. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7027. msm_routing_put_audio_mixer),
  7028. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7029. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7030. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7031. msm_routing_put_audio_mixer),
  7032. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7033. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7034. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7035. msm_routing_put_audio_mixer),
  7036. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7037. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7038. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7039. msm_routing_put_audio_mixer),
  7040. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7041. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7042. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7043. msm_routing_put_audio_mixer),
  7044. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7045. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7046. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7047. msm_routing_put_audio_mixer),
  7048. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7049. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7050. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7051. msm_routing_put_audio_mixer),
  7052. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7053. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7054. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7055. msm_routing_put_audio_mixer),
  7056. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7057. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7058. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7059. msm_routing_put_audio_mixer),
  7060. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7061. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7062. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7063. msm_routing_put_audio_mixer),
  7064. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7065. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7066. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7067. msm_routing_put_audio_mixer),
  7068. };
  7069. static const struct snd_kcontrol_new pri_tdm_rx_1_mixer_controls[] = {
  7070. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7071. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7072. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7073. msm_routing_put_audio_mixer),
  7074. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7075. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7076. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7077. msm_routing_put_audio_mixer),
  7078. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7079. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7080. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7081. msm_routing_put_audio_mixer),
  7082. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7083. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7084. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7085. msm_routing_put_audio_mixer),
  7086. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7087. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7088. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7089. msm_routing_put_audio_mixer),
  7090. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7091. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7092. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7093. msm_routing_put_audio_mixer),
  7094. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7095. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7096. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7097. msm_routing_put_audio_mixer),
  7098. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7099. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7100. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7101. msm_routing_put_audio_mixer),
  7102. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7103. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7104. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7105. msm_routing_put_audio_mixer),
  7106. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7107. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7108. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7109. msm_routing_put_audio_mixer),
  7110. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7111. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7112. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7113. msm_routing_put_audio_mixer),
  7114. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7115. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7116. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7117. msm_routing_put_audio_mixer),
  7118. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7119. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7120. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7121. msm_routing_put_audio_mixer),
  7122. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7123. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7124. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7125. msm_routing_put_audio_mixer),
  7126. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7127. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7128. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7129. msm_routing_put_audio_mixer),
  7130. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7131. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7132. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7133. msm_routing_put_audio_mixer),
  7134. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7135. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7136. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7137. msm_routing_put_audio_mixer),
  7138. };
  7139. static const struct snd_kcontrol_new pri_tdm_rx_2_mixer_controls[] = {
  7140. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7141. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7142. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7143. msm_routing_put_audio_mixer),
  7144. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7145. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7146. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7147. msm_routing_put_audio_mixer),
  7148. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7149. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7150. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7151. msm_routing_put_audio_mixer),
  7152. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7153. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7154. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7155. msm_routing_put_audio_mixer),
  7156. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7157. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7158. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7159. msm_routing_put_audio_mixer),
  7160. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7161. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7162. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7163. msm_routing_put_audio_mixer),
  7164. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7165. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7166. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7167. msm_routing_put_audio_mixer),
  7168. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7169. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7170. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7171. msm_routing_put_audio_mixer),
  7172. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7173. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7174. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7175. msm_routing_put_audio_mixer),
  7176. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7177. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7178. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7179. msm_routing_put_audio_mixer),
  7180. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7181. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7182. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7183. msm_routing_put_audio_mixer),
  7184. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7185. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7186. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7187. msm_routing_put_audio_mixer),
  7188. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7189. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7190. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7191. msm_routing_put_audio_mixer),
  7192. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7193. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7194. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7195. msm_routing_put_audio_mixer),
  7196. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7197. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7198. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7199. msm_routing_put_audio_mixer),
  7200. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7201. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7202. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7203. msm_routing_put_audio_mixer),
  7204. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7205. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7206. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7207. msm_routing_put_audio_mixer),
  7208. };
  7209. static const struct snd_kcontrol_new pri_tdm_rx_3_mixer_controls[] = {
  7210. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7211. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7212. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7213. msm_routing_put_audio_mixer),
  7214. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7215. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7216. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7217. msm_routing_put_audio_mixer),
  7218. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7219. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7220. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7221. msm_routing_put_audio_mixer),
  7222. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7223. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7224. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7225. msm_routing_put_audio_mixer),
  7226. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7227. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7228. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7229. msm_routing_put_audio_mixer),
  7230. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7231. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7232. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7233. msm_routing_put_audio_mixer),
  7234. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7235. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7236. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7237. msm_routing_put_audio_mixer),
  7238. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7239. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7240. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7241. msm_routing_put_audio_mixer),
  7242. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7243. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7244. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7245. msm_routing_put_audio_mixer),
  7246. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7247. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7248. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7249. msm_routing_put_audio_mixer),
  7250. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7251. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7252. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7253. msm_routing_put_audio_mixer),
  7254. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7255. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7256. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7257. msm_routing_put_audio_mixer),
  7258. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7259. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7260. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7261. msm_routing_put_audio_mixer),
  7262. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7263. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7264. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7265. msm_routing_put_audio_mixer),
  7266. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7267. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7268. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7269. msm_routing_put_audio_mixer),
  7270. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7271. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7272. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7273. msm_routing_put_audio_mixer),
  7274. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7275. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7276. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7277. msm_routing_put_audio_mixer),
  7278. };
  7279. static const struct snd_kcontrol_new pri_tdm_tx_0_mixer_controls[] = {
  7280. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7281. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7282. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7283. msm_routing_put_audio_mixer),
  7284. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7285. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7286. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7287. msm_routing_put_audio_mixer),
  7288. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7289. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7290. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7291. msm_routing_put_audio_mixer),
  7292. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7293. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7294. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7295. msm_routing_put_audio_mixer),
  7296. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7297. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7298. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7299. msm_routing_put_audio_mixer),
  7300. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7301. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7302. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7303. msm_routing_put_audio_mixer),
  7304. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7305. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7306. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7307. msm_routing_put_audio_mixer),
  7308. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7309. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7310. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7311. msm_routing_put_audio_mixer),
  7312. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7313. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7314. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7315. msm_routing_put_audio_mixer),
  7316. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7317. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7318. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7319. msm_routing_put_audio_mixer),
  7320. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7321. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7322. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7323. msm_routing_put_audio_mixer),
  7324. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7325. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7326. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7327. msm_routing_put_audio_mixer),
  7328. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7329. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7330. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7331. msm_routing_put_audio_mixer),
  7332. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7333. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7334. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7335. msm_routing_put_audio_mixer),
  7336. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7337. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7338. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7339. msm_routing_put_audio_mixer),
  7340. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7341. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7342. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7343. msm_routing_put_audio_mixer),
  7344. };
  7345. static const struct snd_kcontrol_new sec_tdm_rx_0_mixer_controls[] = {
  7346. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7347. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7348. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7349. msm_routing_put_audio_mixer),
  7350. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7351. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7352. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7353. msm_routing_put_audio_mixer),
  7354. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7355. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7356. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7357. msm_routing_put_audio_mixer),
  7358. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7359. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7360. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7361. msm_routing_put_audio_mixer),
  7362. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7363. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7364. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7365. msm_routing_put_audio_mixer),
  7366. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7367. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7368. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7369. msm_routing_put_audio_mixer),
  7370. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7371. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7372. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7373. msm_routing_put_audio_mixer),
  7374. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7375. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7376. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7377. msm_routing_put_audio_mixer),
  7378. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7379. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7380. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7381. msm_routing_put_audio_mixer),
  7382. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7383. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7384. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7385. msm_routing_put_audio_mixer),
  7386. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7387. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7388. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7389. msm_routing_put_audio_mixer),
  7390. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7391. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7392. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7393. msm_routing_put_audio_mixer),
  7394. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7395. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7396. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7397. msm_routing_put_audio_mixer),
  7398. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7399. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7400. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7401. msm_routing_put_audio_mixer),
  7402. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7403. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7404. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7405. msm_routing_put_audio_mixer),
  7406. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7407. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7408. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7409. msm_routing_put_audio_mixer),
  7410. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7411. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7412. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7413. msm_routing_put_audio_mixer),
  7414. };
  7415. static const struct snd_kcontrol_new sec_tdm_rx_1_mixer_controls[] = {
  7416. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7417. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7418. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7419. msm_routing_put_audio_mixer),
  7420. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7421. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7422. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7423. msm_routing_put_audio_mixer),
  7424. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7425. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7426. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7427. msm_routing_put_audio_mixer),
  7428. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7429. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7430. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7431. msm_routing_put_audio_mixer),
  7432. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7433. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7434. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7435. msm_routing_put_audio_mixer),
  7436. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7437. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7438. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7439. msm_routing_put_audio_mixer),
  7440. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7441. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7442. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7443. msm_routing_put_audio_mixer),
  7444. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7445. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7446. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7447. msm_routing_put_audio_mixer),
  7448. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7449. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7450. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7451. msm_routing_put_audio_mixer),
  7452. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7453. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7454. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7455. msm_routing_put_audio_mixer),
  7456. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7457. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7458. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7459. msm_routing_put_audio_mixer),
  7460. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7461. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7462. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7463. msm_routing_put_audio_mixer),
  7464. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7465. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7466. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7467. msm_routing_put_audio_mixer),
  7468. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7469. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7470. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7471. msm_routing_put_audio_mixer),
  7472. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7473. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7474. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7475. msm_routing_put_audio_mixer),
  7476. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7477. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7478. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7479. msm_routing_put_audio_mixer),
  7480. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7481. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7482. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7483. msm_routing_put_audio_mixer),
  7484. };
  7485. static const struct snd_kcontrol_new sec_tdm_rx_2_mixer_controls[] = {
  7486. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7487. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7488. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7489. msm_routing_put_audio_mixer),
  7490. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7491. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7492. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7493. msm_routing_put_audio_mixer),
  7494. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7495. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7496. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7497. msm_routing_put_audio_mixer),
  7498. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7499. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7500. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7501. msm_routing_put_audio_mixer),
  7502. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7503. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7504. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7505. msm_routing_put_audio_mixer),
  7506. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7507. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7508. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7509. msm_routing_put_audio_mixer),
  7510. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7511. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7512. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7513. msm_routing_put_audio_mixer),
  7514. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7515. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7516. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7517. msm_routing_put_audio_mixer),
  7518. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7519. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7520. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7521. msm_routing_put_audio_mixer),
  7522. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7523. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7524. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7525. msm_routing_put_audio_mixer),
  7526. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7527. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7528. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7529. msm_routing_put_audio_mixer),
  7530. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7531. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7532. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7533. msm_routing_put_audio_mixer),
  7534. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7535. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7536. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7537. msm_routing_put_audio_mixer),
  7538. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7539. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7540. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7541. msm_routing_put_audio_mixer),
  7542. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7543. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7544. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7545. msm_routing_put_audio_mixer),
  7546. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7547. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7548. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7549. msm_routing_put_audio_mixer),
  7550. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7551. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7552. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7553. msm_routing_put_audio_mixer),
  7554. };
  7555. static const struct snd_kcontrol_new sec_tdm_rx_3_mixer_controls[] = {
  7556. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7557. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7558. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7559. msm_routing_put_audio_mixer),
  7560. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7561. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7562. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7563. msm_routing_put_audio_mixer),
  7564. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7565. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7566. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7567. msm_routing_put_audio_mixer),
  7568. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7569. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7570. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7571. msm_routing_put_audio_mixer),
  7572. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7573. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7574. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7575. msm_routing_put_audio_mixer),
  7576. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7577. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7578. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7579. msm_routing_put_audio_mixer),
  7580. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7581. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7582. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7583. msm_routing_put_audio_mixer),
  7584. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7585. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7586. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7587. msm_routing_put_audio_mixer),
  7588. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7589. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7590. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7591. msm_routing_put_audio_mixer),
  7592. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7593. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7594. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7595. msm_routing_put_audio_mixer),
  7596. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7597. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7598. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7599. msm_routing_put_audio_mixer),
  7600. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7601. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7602. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7603. msm_routing_put_audio_mixer),
  7604. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7605. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7606. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7607. msm_routing_put_audio_mixer),
  7608. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7609. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7610. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7611. msm_routing_put_audio_mixer),
  7612. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7613. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7614. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7615. msm_routing_put_audio_mixer),
  7616. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7617. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7618. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7619. msm_routing_put_audio_mixer),
  7620. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7621. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7622. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7623. msm_routing_put_audio_mixer),
  7624. };
  7625. static const struct snd_kcontrol_new sec_tdm_tx_0_mixer_controls[] = {
  7626. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7627. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7628. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7629. msm_routing_put_audio_mixer),
  7630. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7631. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7632. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7633. msm_routing_put_audio_mixer),
  7634. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7635. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7636. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7637. msm_routing_put_audio_mixer),
  7638. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7639. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7640. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7641. msm_routing_put_audio_mixer),
  7642. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7643. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7644. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7645. msm_routing_put_audio_mixer),
  7646. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7647. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7648. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7649. msm_routing_put_audio_mixer),
  7650. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7651. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7652. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7653. msm_routing_put_audio_mixer),
  7654. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7655. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7656. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7657. msm_routing_put_audio_mixer),
  7658. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7659. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7660. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7661. msm_routing_put_audio_mixer),
  7662. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7663. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7664. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7665. msm_routing_put_audio_mixer),
  7666. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7667. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7668. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7669. msm_routing_put_audio_mixer),
  7670. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7671. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7672. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7673. msm_routing_put_audio_mixer),
  7674. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7675. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7676. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7677. msm_routing_put_audio_mixer),
  7678. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7679. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7680. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7681. msm_routing_put_audio_mixer),
  7682. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7683. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7684. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7685. msm_routing_put_audio_mixer),
  7686. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7687. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7688. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7689. msm_routing_put_audio_mixer),
  7690. };
  7691. static const struct snd_kcontrol_new tert_tdm_rx_0_mixer_controls[] = {
  7692. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7693. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7694. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7695. msm_routing_put_audio_mixer),
  7696. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7697. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7698. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7699. msm_routing_put_audio_mixer),
  7700. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7701. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7702. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7703. msm_routing_put_audio_mixer),
  7704. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7705. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7706. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7707. msm_routing_put_audio_mixer),
  7708. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7709. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7710. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7711. msm_routing_put_audio_mixer),
  7712. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7713. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7714. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7715. msm_routing_put_audio_mixer),
  7716. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7717. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7718. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7719. msm_routing_put_audio_mixer),
  7720. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7721. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7722. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7723. msm_routing_put_audio_mixer),
  7724. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7725. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7726. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7727. msm_routing_put_audio_mixer),
  7728. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7729. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7730. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7731. msm_routing_put_audio_mixer),
  7732. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7733. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7734. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7735. msm_routing_put_audio_mixer),
  7736. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7737. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7738. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7739. msm_routing_put_audio_mixer),
  7740. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7741. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7742. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7743. msm_routing_put_audio_mixer),
  7744. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7745. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7746. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7747. msm_routing_put_audio_mixer),
  7748. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7749. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7750. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7751. msm_routing_put_audio_mixer),
  7752. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7753. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7754. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7755. msm_routing_put_audio_mixer),
  7756. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7757. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7758. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7759. msm_routing_put_audio_mixer),
  7760. };
  7761. static const struct snd_kcontrol_new tert_tdm_tx_0_mixer_controls[] = {
  7762. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7763. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7764. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7765. msm_routing_put_audio_mixer),
  7766. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7767. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7768. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7769. msm_routing_put_audio_mixer),
  7770. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7771. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7772. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7773. msm_routing_put_audio_mixer),
  7774. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7775. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7776. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7777. msm_routing_put_audio_mixer),
  7778. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7779. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7780. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7781. msm_routing_put_audio_mixer),
  7782. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7783. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7784. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7785. msm_routing_put_audio_mixer),
  7786. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7787. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7788. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7789. msm_routing_put_audio_mixer),
  7790. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7791. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7792. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7793. msm_routing_put_audio_mixer),
  7794. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7795. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7796. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7797. msm_routing_put_audio_mixer),
  7798. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7799. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7800. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7801. msm_routing_put_audio_mixer),
  7802. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7803. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7804. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7805. msm_routing_put_audio_mixer),
  7806. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7807. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7808. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7809. msm_routing_put_audio_mixer),
  7810. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7811. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7812. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7813. msm_routing_put_audio_mixer),
  7814. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7815. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7816. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7817. msm_routing_put_audio_mixer),
  7818. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7819. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7820. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7821. msm_routing_put_audio_mixer),
  7822. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7823. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7824. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7825. msm_routing_put_audio_mixer),
  7826. };
  7827. static const struct snd_kcontrol_new tert_tdm_rx_1_mixer_controls[] = {
  7828. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7829. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7830. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7831. msm_routing_put_audio_mixer),
  7832. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7833. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7834. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7835. msm_routing_put_audio_mixer),
  7836. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7837. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7838. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7839. msm_routing_put_audio_mixer),
  7840. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7841. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7842. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7843. msm_routing_put_audio_mixer),
  7844. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7845. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7846. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7847. msm_routing_put_audio_mixer),
  7848. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7849. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7850. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7851. msm_routing_put_audio_mixer),
  7852. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7853. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7854. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7855. msm_routing_put_audio_mixer),
  7856. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7857. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7858. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7859. msm_routing_put_audio_mixer),
  7860. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7861. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7862. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7863. msm_routing_put_audio_mixer),
  7864. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7865. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7866. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7867. msm_routing_put_audio_mixer),
  7868. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7869. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7870. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7871. msm_routing_put_audio_mixer),
  7872. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7873. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7874. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7875. msm_routing_put_audio_mixer),
  7876. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7877. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7878. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7879. msm_routing_put_audio_mixer),
  7880. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7881. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7882. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7883. msm_routing_put_audio_mixer),
  7884. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7885. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7886. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7887. msm_routing_put_audio_mixer),
  7888. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7889. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7890. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7891. msm_routing_put_audio_mixer),
  7892. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7893. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7894. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7895. msm_routing_put_audio_mixer),
  7896. };
  7897. static const struct snd_kcontrol_new tert_tdm_rx_2_mixer_controls[] = {
  7898. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7899. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7900. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7901. msm_routing_put_audio_mixer),
  7902. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7903. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7904. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7905. msm_routing_put_audio_mixer),
  7906. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7907. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7908. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7909. msm_routing_put_audio_mixer),
  7910. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7911. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7912. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7913. msm_routing_put_audio_mixer),
  7914. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7915. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7916. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7917. msm_routing_put_audio_mixer),
  7918. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7919. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7920. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7921. msm_routing_put_audio_mixer),
  7922. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7923. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7924. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7925. msm_routing_put_audio_mixer),
  7926. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7927. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7928. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7929. msm_routing_put_audio_mixer),
  7930. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7931. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7932. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7933. msm_routing_put_audio_mixer),
  7934. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7935. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7936. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7937. msm_routing_put_audio_mixer),
  7938. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7939. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7940. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7941. msm_routing_put_audio_mixer),
  7942. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7943. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7944. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7945. msm_routing_put_audio_mixer),
  7946. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7947. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7948. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7949. msm_routing_put_audio_mixer),
  7950. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7951. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7952. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7953. msm_routing_put_audio_mixer),
  7954. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7955. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7956. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7957. msm_routing_put_audio_mixer),
  7958. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7959. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7960. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7961. msm_routing_put_audio_mixer),
  7962. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7963. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7964. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7965. msm_routing_put_audio_mixer),
  7966. };
  7967. static const struct snd_kcontrol_new tert_tdm_rx_3_mixer_controls[] = {
  7968. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7969. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7970. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7971. msm_routing_put_audio_mixer),
  7972. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7973. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7974. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7975. msm_routing_put_audio_mixer),
  7976. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7977. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7978. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7979. msm_routing_put_audio_mixer),
  7980. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7981. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7982. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7983. msm_routing_put_audio_mixer),
  7984. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7985. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7986. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7987. msm_routing_put_audio_mixer),
  7988. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7989. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7990. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7991. msm_routing_put_audio_mixer),
  7992. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7993. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7994. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7995. msm_routing_put_audio_mixer),
  7996. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7997. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7998. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7999. msm_routing_put_audio_mixer),
  8000. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8001. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8002. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8003. msm_routing_put_audio_mixer),
  8004. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8005. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8006. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8007. msm_routing_put_audio_mixer),
  8008. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8009. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8010. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8011. msm_routing_put_audio_mixer),
  8012. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8013. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8014. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8015. msm_routing_put_audio_mixer),
  8016. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8017. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8018. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8019. msm_routing_put_audio_mixer),
  8020. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8021. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8022. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8023. msm_routing_put_audio_mixer),
  8024. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8025. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8026. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8027. msm_routing_put_audio_mixer),
  8028. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8029. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8030. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8031. msm_routing_put_audio_mixer),
  8032. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8033. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8034. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8035. msm_routing_put_audio_mixer),
  8036. };
  8037. static const struct snd_kcontrol_new tert_tdm_rx_4_mixer_controls[] = {
  8038. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8039. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8040. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8041. msm_routing_put_audio_mixer),
  8042. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8043. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8044. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8045. msm_routing_put_audio_mixer),
  8046. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8047. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8048. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8049. msm_routing_put_audio_mixer),
  8050. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8051. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8052. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8053. msm_routing_put_audio_mixer),
  8054. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8055. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8056. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8057. msm_routing_put_audio_mixer),
  8058. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8059. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8060. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8061. msm_routing_put_audio_mixer),
  8062. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8063. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8064. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8065. msm_routing_put_audio_mixer),
  8066. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8067. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8068. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8069. msm_routing_put_audio_mixer),
  8070. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8071. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8072. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8073. msm_routing_put_audio_mixer),
  8074. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8075. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8076. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8077. msm_routing_put_audio_mixer),
  8078. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8079. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8080. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8081. msm_routing_put_audio_mixer),
  8082. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8083. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8084. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8085. msm_routing_put_audio_mixer),
  8086. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8087. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8088. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8089. msm_routing_put_audio_mixer),
  8090. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8091. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8092. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8093. msm_routing_put_audio_mixer),
  8094. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8095. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8096. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8097. msm_routing_put_audio_mixer),
  8098. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8099. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8100. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8101. msm_routing_put_audio_mixer),
  8102. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8103. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8104. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8105. msm_routing_put_audio_mixer),
  8106. };
  8107. static const struct snd_kcontrol_new quat_tdm_rx_0_mixer_controls[] = {
  8108. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8109. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8110. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8111. msm_routing_put_audio_mixer),
  8112. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8113. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8114. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8115. msm_routing_put_audio_mixer),
  8116. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8117. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8118. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8119. msm_routing_put_audio_mixer),
  8120. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8121. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8122. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8123. msm_routing_put_audio_mixer),
  8124. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8125. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8126. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8127. msm_routing_put_audio_mixer),
  8128. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8129. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8130. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8131. msm_routing_put_audio_mixer),
  8132. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8133. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8134. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8135. msm_routing_put_audio_mixer),
  8136. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8137. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8138. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8139. msm_routing_put_audio_mixer),
  8140. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8141. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8142. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8143. msm_routing_put_audio_mixer),
  8144. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8145. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8146. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8147. msm_routing_put_audio_mixer),
  8148. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8149. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8150. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8151. msm_routing_put_audio_mixer),
  8152. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8153. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8154. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8155. msm_routing_put_audio_mixer),
  8156. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8157. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8158. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8159. msm_routing_put_audio_mixer),
  8160. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8161. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8162. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8163. msm_routing_put_audio_mixer),
  8164. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8165. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8166. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8167. msm_routing_put_audio_mixer),
  8168. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8169. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8170. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8171. msm_routing_put_audio_mixer),
  8172. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8173. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8174. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8175. msm_routing_put_audio_mixer),
  8176. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8177. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8178. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8179. msm_routing_put_audio_mixer),
  8180. };
  8181. static const struct snd_kcontrol_new quat_tdm_tx_0_mixer_controls[] = {
  8182. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8183. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8184. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8185. msm_routing_put_audio_mixer),
  8186. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8187. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8188. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8189. msm_routing_put_audio_mixer),
  8190. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8191. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8192. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8193. msm_routing_put_audio_mixer),
  8194. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8195. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8196. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8197. msm_routing_put_audio_mixer),
  8198. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8199. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8200. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8201. msm_routing_put_audio_mixer),
  8202. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8203. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8204. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8205. msm_routing_put_audio_mixer),
  8206. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8207. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8208. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8209. msm_routing_put_audio_mixer),
  8210. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8211. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8212. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8213. msm_routing_put_audio_mixer),
  8214. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8215. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8216. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8217. msm_routing_put_audio_mixer),
  8218. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8219. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8220. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8221. msm_routing_put_audio_mixer),
  8222. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8223. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8224. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8225. msm_routing_put_audio_mixer),
  8226. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8227. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8228. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8229. msm_routing_put_audio_mixer),
  8230. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8231. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8232. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8233. msm_routing_put_audio_mixer),
  8234. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8235. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8236. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8237. msm_routing_put_audio_mixer),
  8238. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8239. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8240. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8241. msm_routing_put_audio_mixer),
  8242. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8243. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8244. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8245. msm_routing_put_audio_mixer),
  8246. };
  8247. static const struct snd_kcontrol_new quat_tdm_rx_1_mixer_controls[] = {
  8248. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8249. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8250. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8251. msm_routing_put_audio_mixer),
  8252. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8253. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8254. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8255. msm_routing_put_audio_mixer),
  8256. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8257. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8258. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8259. msm_routing_put_audio_mixer),
  8260. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8261. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8262. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8263. msm_routing_put_audio_mixer),
  8264. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8265. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8266. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8267. msm_routing_put_audio_mixer),
  8268. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8269. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8270. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8271. msm_routing_put_audio_mixer),
  8272. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8273. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8274. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8275. msm_routing_put_audio_mixer),
  8276. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8277. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8278. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8279. msm_routing_put_audio_mixer),
  8280. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8281. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8282. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8283. msm_routing_put_audio_mixer),
  8284. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8285. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8286. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8287. msm_routing_put_audio_mixer),
  8288. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8289. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8290. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8291. msm_routing_put_audio_mixer),
  8292. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8293. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8294. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8295. msm_routing_put_audio_mixer),
  8296. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8297. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8298. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8299. msm_routing_put_audio_mixer),
  8300. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8301. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8302. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8303. msm_routing_put_audio_mixer),
  8304. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8305. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8306. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8307. msm_routing_put_audio_mixer),
  8308. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8309. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8310. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8311. msm_routing_put_audio_mixer),
  8312. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8313. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8314. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8315. msm_routing_put_audio_mixer),
  8316. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8317. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8318. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8319. msm_routing_put_audio_mixer),
  8320. };
  8321. static const struct snd_kcontrol_new quat_tdm_rx_2_mixer_controls[] = {
  8322. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8323. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8324. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8325. msm_routing_put_audio_mixer),
  8326. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8327. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8328. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8329. msm_routing_put_audio_mixer),
  8330. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8331. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8332. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8333. msm_routing_put_audio_mixer),
  8334. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8335. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8336. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8337. msm_routing_put_audio_mixer),
  8338. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8339. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8340. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8341. msm_routing_put_audio_mixer),
  8342. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8343. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8344. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8345. msm_routing_put_audio_mixer),
  8346. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8347. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8348. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8349. msm_routing_put_audio_mixer),
  8350. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8351. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8352. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8353. msm_routing_put_audio_mixer),
  8354. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8355. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8356. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8357. msm_routing_put_audio_mixer),
  8358. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8359. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8360. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8361. msm_routing_put_audio_mixer),
  8362. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8363. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8364. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8365. msm_routing_put_audio_mixer),
  8366. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8367. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8368. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8369. msm_routing_put_audio_mixer),
  8370. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8371. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8372. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8373. msm_routing_put_audio_mixer),
  8374. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8375. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8376. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8377. msm_routing_put_audio_mixer),
  8378. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8379. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8380. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8381. msm_routing_put_audio_mixer),
  8382. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8383. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8384. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8385. msm_routing_put_audio_mixer),
  8386. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8387. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8388. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8389. msm_routing_put_audio_mixer),
  8390. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8391. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8392. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8393. msm_routing_put_audio_mixer),
  8394. };
  8395. static const struct snd_kcontrol_new quat_tdm_rx_3_mixer_controls[] = {
  8396. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8397. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8398. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8399. msm_routing_put_audio_mixer),
  8400. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8401. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8402. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8403. msm_routing_put_audio_mixer),
  8404. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8405. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8406. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8407. msm_routing_put_audio_mixer),
  8408. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8409. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8410. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8411. msm_routing_put_audio_mixer),
  8412. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8413. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8414. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8415. msm_routing_put_audio_mixer),
  8416. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8417. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8418. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8419. msm_routing_put_audio_mixer),
  8420. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8421. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8422. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8423. msm_routing_put_audio_mixer),
  8424. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8425. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8426. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8427. msm_routing_put_audio_mixer),
  8428. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8429. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8430. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8431. msm_routing_put_audio_mixer),
  8432. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8433. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8434. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8435. msm_routing_put_audio_mixer),
  8436. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8437. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8438. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8439. msm_routing_put_audio_mixer),
  8440. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8441. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8442. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8443. msm_routing_put_audio_mixer),
  8444. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8445. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8446. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8447. msm_routing_put_audio_mixer),
  8448. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8449. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8450. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8451. msm_routing_put_audio_mixer),
  8452. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8453. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8454. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8455. msm_routing_put_audio_mixer),
  8456. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8457. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8458. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8459. msm_routing_put_audio_mixer),
  8460. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8461. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8462. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8463. msm_routing_put_audio_mixer),
  8464. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8465. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8466. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8467. msm_routing_put_audio_mixer),
  8468. };
  8469. static const struct snd_kcontrol_new quin_tdm_rx_0_mixer_controls[] = {
  8470. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8471. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8472. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8473. msm_routing_put_audio_mixer),
  8474. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8475. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8476. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8477. msm_routing_put_audio_mixer),
  8478. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8479. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8480. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8481. msm_routing_put_audio_mixer),
  8482. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8483. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8484. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8485. msm_routing_put_audio_mixer),
  8486. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8487. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8488. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8489. msm_routing_put_audio_mixer),
  8490. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8491. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8492. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8493. msm_routing_put_audio_mixer),
  8494. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8495. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8496. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8497. msm_routing_put_audio_mixer),
  8498. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8499. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8500. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8501. msm_routing_put_audio_mixer),
  8502. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8503. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8504. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8505. msm_routing_put_audio_mixer),
  8506. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8507. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8508. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8509. msm_routing_put_audio_mixer),
  8510. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8511. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8512. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8513. msm_routing_put_audio_mixer),
  8514. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8515. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8516. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8517. msm_routing_put_audio_mixer),
  8518. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8519. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8520. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8521. msm_routing_put_audio_mixer),
  8522. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8523. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8524. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8525. msm_routing_put_audio_mixer),
  8526. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8527. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8528. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8529. msm_routing_put_audio_mixer),
  8530. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8531. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8532. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8533. msm_routing_put_audio_mixer),
  8534. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8535. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8536. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8537. msm_routing_put_audio_mixer),
  8538. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8539. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8540. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8541. msm_routing_put_audio_mixer),
  8542. };
  8543. static const struct snd_kcontrol_new quin_tdm_tx_0_mixer_controls[] = {
  8544. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8545. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8546. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8547. msm_routing_put_audio_mixer),
  8548. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8549. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8550. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8551. msm_routing_put_audio_mixer),
  8552. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8553. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8554. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8555. msm_routing_put_audio_mixer),
  8556. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8557. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8558. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8559. msm_routing_put_audio_mixer),
  8560. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8561. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8562. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8563. msm_routing_put_audio_mixer),
  8564. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8565. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8566. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8567. msm_routing_put_audio_mixer),
  8568. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8569. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8570. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8571. msm_routing_put_audio_mixer),
  8572. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8573. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8574. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8575. msm_routing_put_audio_mixer),
  8576. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8577. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8578. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8579. msm_routing_put_audio_mixer),
  8580. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8581. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8582. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8583. msm_routing_put_audio_mixer),
  8584. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8585. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8586. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8587. msm_routing_put_audio_mixer),
  8588. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8589. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8590. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8591. msm_routing_put_audio_mixer),
  8592. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8593. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8594. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8595. msm_routing_put_audio_mixer),
  8596. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8597. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8598. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8599. msm_routing_put_audio_mixer),
  8600. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8601. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8602. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8603. msm_routing_put_audio_mixer),
  8604. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8605. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8606. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8607. msm_routing_put_audio_mixer),
  8608. };
  8609. static const struct snd_kcontrol_new quin_tdm_rx_1_mixer_controls[] = {
  8610. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8611. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8612. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8613. msm_routing_put_audio_mixer),
  8614. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8615. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8616. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8617. msm_routing_put_audio_mixer),
  8618. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8619. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8620. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8621. msm_routing_put_audio_mixer),
  8622. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8623. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8624. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8625. msm_routing_put_audio_mixer),
  8626. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8627. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8628. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8629. msm_routing_put_audio_mixer),
  8630. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8631. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8632. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8633. msm_routing_put_audio_mixer),
  8634. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8635. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8636. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8637. msm_routing_put_audio_mixer),
  8638. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8639. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8640. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8641. msm_routing_put_audio_mixer),
  8642. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8643. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8644. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8645. msm_routing_put_audio_mixer),
  8646. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8647. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8648. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8649. msm_routing_put_audio_mixer),
  8650. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8651. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8652. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8653. msm_routing_put_audio_mixer),
  8654. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8655. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8656. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8657. msm_routing_put_audio_mixer),
  8658. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8659. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8660. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8661. msm_routing_put_audio_mixer),
  8662. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8663. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8664. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8665. msm_routing_put_audio_mixer),
  8666. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8667. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8668. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8669. msm_routing_put_audio_mixer),
  8670. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8671. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8672. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8673. msm_routing_put_audio_mixer),
  8674. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8675. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8676. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8677. msm_routing_put_audio_mixer),
  8678. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8679. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8680. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8681. msm_routing_put_audio_mixer),
  8682. };
  8683. static const struct snd_kcontrol_new quin_tdm_rx_2_mixer_controls[] = {
  8684. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8685. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8686. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8687. msm_routing_put_audio_mixer),
  8688. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8689. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8690. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8691. msm_routing_put_audio_mixer),
  8692. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8693. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8694. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8695. msm_routing_put_audio_mixer),
  8696. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8697. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8698. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8699. msm_routing_put_audio_mixer),
  8700. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8701. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8702. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8703. msm_routing_put_audio_mixer),
  8704. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8705. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8706. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8707. msm_routing_put_audio_mixer),
  8708. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8709. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8710. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8711. msm_routing_put_audio_mixer),
  8712. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8713. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8714. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8715. msm_routing_put_audio_mixer),
  8716. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8717. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8718. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8719. msm_routing_put_audio_mixer),
  8720. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8721. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8722. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8723. msm_routing_put_audio_mixer),
  8724. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8725. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8726. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8727. msm_routing_put_audio_mixer),
  8728. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8729. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8730. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8731. msm_routing_put_audio_mixer),
  8732. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8733. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8734. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8735. msm_routing_put_audio_mixer),
  8736. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8737. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8738. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8739. msm_routing_put_audio_mixer),
  8740. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8741. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8742. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8743. msm_routing_put_audio_mixer),
  8744. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8745. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8746. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8747. msm_routing_put_audio_mixer),
  8748. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8749. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8750. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8751. msm_routing_put_audio_mixer),
  8752. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8753. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8754. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8755. msm_routing_put_audio_mixer),
  8756. };
  8757. static const struct snd_kcontrol_new quin_tdm_rx_3_mixer_controls[] = {
  8758. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8759. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8760. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8761. msm_routing_put_audio_mixer),
  8762. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8763. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8764. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8765. msm_routing_put_audio_mixer),
  8766. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8767. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8768. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8769. msm_routing_put_audio_mixer),
  8770. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8771. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8772. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8773. msm_routing_put_audio_mixer),
  8774. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8775. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8776. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8777. msm_routing_put_audio_mixer),
  8778. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8779. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8780. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8781. msm_routing_put_audio_mixer),
  8782. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8783. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8784. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8785. msm_routing_put_audio_mixer),
  8786. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8787. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8788. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8789. msm_routing_put_audio_mixer),
  8790. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8791. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8792. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8793. msm_routing_put_audio_mixer),
  8794. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8795. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8796. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8797. msm_routing_put_audio_mixer),
  8798. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8799. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8800. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8801. msm_routing_put_audio_mixer),
  8802. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8803. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8804. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8805. msm_routing_put_audio_mixer),
  8806. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8807. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8808. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8809. msm_routing_put_audio_mixer),
  8810. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8811. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8812. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8813. msm_routing_put_audio_mixer),
  8814. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8815. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8816. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8817. msm_routing_put_audio_mixer),
  8818. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8819. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8820. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8821. msm_routing_put_audio_mixer),
  8822. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8823. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8824. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8825. msm_routing_put_audio_mixer),
  8826. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8827. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8828. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8829. msm_routing_put_audio_mixer),
  8830. };
  8831. static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
  8832. SOC_DOUBLE_EXT("PRI_TX", SND_SOC_NOPM,
  8833. MSM_BACKEND_DAI_PRI_I2S_TX,
  8834. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8835. msm_routing_put_audio_mixer),
  8836. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  8837. MSM_BACKEND_DAI_MI2S_TX,
  8838. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8839. msm_routing_put_audio_mixer),
  8840. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8841. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8842. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8843. msm_routing_put_audio_mixer),
  8844. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8845. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8846. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8847. msm_routing_put_audio_mixer),
  8848. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8849. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8850. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8851. msm_routing_put_audio_mixer),
  8852. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8853. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8854. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8855. msm_routing_put_audio_mixer),
  8856. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8857. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8858. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8859. msm_routing_put_audio_mixer),
  8860. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8861. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8862. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8863. msm_routing_put_audio_mixer),
  8864. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8865. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8866. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8867. msm_routing_put_audio_mixer),
  8868. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  8869. MSM_BACKEND_DAI_AUXPCM_TX,
  8870. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8871. msm_routing_put_audio_mixer),
  8872. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  8873. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8874. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8875. msm_routing_put_audio_mixer),
  8876. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  8877. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8878. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8879. msm_routing_put_audio_mixer),
  8880. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  8881. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8882. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8883. msm_routing_put_audio_mixer),
  8884. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  8885. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8886. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8887. msm_routing_put_audio_mixer),
  8888. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  8889. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8890. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8891. msm_routing_put_audio_mixer),
  8892. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8893. MSM_BACKEND_DAI_INT_FM_TX,
  8894. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8895. msm_routing_put_audio_mixer),
  8896. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  8897. MSM_BACKEND_DAI_AFE_PCM_TX,
  8898. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8899. msm_routing_put_audio_mixer),
  8900. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  8901. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  8902. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8903. msm_routing_put_audio_mixer),
  8904. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  8905. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  8906. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8907. msm_routing_put_audio_mixer),
  8908. SOC_DOUBLE_EXT("SLIM_4_TX", SND_SOC_NOPM,
  8909. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  8910. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8911. msm_routing_put_audio_mixer),
  8912. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  8913. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  8914. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8915. msm_routing_put_audio_mixer),
  8916. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  8917. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  8918. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8919. msm_routing_put_audio_mixer),
  8920. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8921. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8922. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8923. msm_routing_put_audio_mixer),
  8924. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8925. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8926. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8927. msm_routing_put_audio_mixer),
  8928. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8929. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8930. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8931. msm_routing_put_audio_mixer),
  8932. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8933. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8934. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8935. msm_routing_put_audio_mixer),
  8936. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8937. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8938. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8939. msm_routing_put_audio_mixer),
  8940. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8941. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8942. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8943. msm_routing_put_audio_mixer),
  8944. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8945. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8946. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8947. msm_routing_put_audio_mixer),
  8948. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8949. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8950. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8951. msm_routing_put_audio_mixer),
  8952. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8953. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8954. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8955. msm_routing_put_audio_mixer),
  8956. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8957. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8958. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8959. msm_routing_put_audio_mixer),
  8960. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8961. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8962. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8963. msm_routing_put_audio_mixer),
  8964. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8965. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8966. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8967. msm_routing_put_audio_mixer),
  8968. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8969. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8970. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8971. msm_routing_put_audio_mixer),
  8972. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8973. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8974. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8975. msm_routing_put_audio_mixer),
  8976. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8977. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8978. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8979. msm_routing_put_audio_mixer),
  8980. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8981. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8982. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8983. msm_routing_put_audio_mixer),
  8984. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8985. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8986. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8987. msm_routing_put_audio_mixer),
  8988. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8989. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8990. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8991. msm_routing_put_audio_mixer),
  8992. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8993. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8994. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8995. msm_routing_put_audio_mixer),
  8996. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8997. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8998. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8999. msm_routing_put_audio_mixer),
  9000. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  9001. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  9002. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9003. msm_routing_put_audio_mixer),
  9004. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  9005. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  9006. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9007. msm_routing_put_audio_mixer),
  9008. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9009. MSM_BACKEND_DAI_USB_TX,
  9010. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9011. msm_routing_put_audio_mixer),
  9012. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9013. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9014. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9015. msm_routing_put_audio_mixer),
  9016. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9017. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9018. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9019. msm_routing_put_audio_mixer),
  9020. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9021. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9022. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9023. msm_routing_put_audio_mixer),
  9024. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9025. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9026. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9027. msm_routing_put_audio_mixer),
  9028. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9029. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9030. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9031. msm_routing_put_audio_mixer),
  9032. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9033. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9034. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9035. msm_routing_put_audio_mixer),
  9036. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9037. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9038. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9039. msm_routing_put_audio_mixer),
  9040. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9041. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9042. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9043. msm_routing_put_audio_mixer),
  9044. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9045. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9046. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9047. msm_routing_put_audio_mixer),
  9048. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9049. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9050. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9051. msm_routing_put_audio_mixer),
  9052. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9053. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9054. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9055. msm_routing_put_audio_mixer),
  9056. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9057. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9058. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9059. msm_routing_put_audio_mixer),
  9060. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9061. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9062. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9063. msm_routing_put_audio_mixer),
  9064. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  9065. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  9066. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9067. msm_routing_put_audio_mixer),
  9068. };
  9069. static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
  9070. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9071. MSM_BACKEND_DAI_INT_FM_TX,
  9072. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9073. msm_routing_put_audio_mixer),
  9074. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  9075. MSM_BACKEND_DAI_MI2S_TX,
  9076. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9077. msm_routing_put_audio_mixer),
  9078. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9079. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9080. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9081. msm_routing_put_audio_mixer),
  9082. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9083. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9084. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9085. msm_routing_put_audio_mixer),
  9086. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9087. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9088. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9089. msm_routing_put_audio_mixer),
  9090. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9091. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9092. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9093. msm_routing_put_audio_mixer),
  9094. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9095. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9096. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9097. msm_routing_put_audio_mixer),
  9098. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9099. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9100. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9101. msm_routing_put_audio_mixer),
  9102. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9103. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9104. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9105. msm_routing_put_audio_mixer),
  9106. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  9107. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  9108. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9109. msm_routing_put_audio_mixer),
  9110. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  9111. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  9112. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9113. msm_routing_put_audio_mixer),
  9114. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  9115. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  9116. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9117. msm_routing_put_audio_mixer),
  9118. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9119. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9120. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9121. msm_routing_put_audio_mixer),
  9122. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9123. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9124. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9125. msm_routing_put_audio_mixer),
  9126. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9127. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9128. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9129. msm_routing_put_audio_mixer),
  9130. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9131. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9132. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9133. msm_routing_put_audio_mixer),
  9134. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9135. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9136. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9137. msm_routing_put_audio_mixer),
  9138. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9139. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9140. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9141. msm_routing_put_audio_mixer),
  9142. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9143. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9144. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9145. msm_routing_put_audio_mixer),
  9146. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9147. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9148. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9149. msm_routing_put_audio_mixer),
  9150. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9151. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9152. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9153. msm_routing_put_audio_mixer),
  9154. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9155. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9156. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9157. msm_routing_put_audio_mixer),
  9158. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9159. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9160. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9161. msm_routing_put_audio_mixer),
  9162. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9163. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9164. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9165. msm_routing_put_audio_mixer),
  9166. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9167. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9168. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9169. msm_routing_put_audio_mixer),
  9170. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9171. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9172. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9173. msm_routing_put_audio_mixer),
  9174. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9175. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9176. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9177. msm_routing_put_audio_mixer),
  9178. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9179. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9180. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9181. msm_routing_put_audio_mixer),
  9182. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9183. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9184. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9185. msm_routing_put_audio_mixer),
  9186. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9187. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9188. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9189. msm_routing_put_audio_mixer),
  9190. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9191. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9192. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9193. msm_routing_put_audio_mixer),
  9194. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9195. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9196. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9197. msm_routing_put_audio_mixer),
  9198. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  9199. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  9200. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9201. msm_routing_put_audio_mixer),
  9202. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9203. MSM_BACKEND_DAI_USB_TX,
  9204. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9205. msm_routing_put_audio_mixer),
  9206. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9207. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9208. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9209. msm_routing_put_audio_mixer),
  9210. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9211. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9212. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9213. msm_routing_put_audio_mixer),
  9214. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9215. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9216. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9217. msm_routing_put_audio_mixer),
  9218. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9219. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9220. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9221. msm_routing_put_audio_mixer),
  9222. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9223. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9224. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9225. msm_routing_put_audio_mixer),
  9226. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9227. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9228. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9229. msm_routing_put_audio_mixer),
  9230. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9231. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9232. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9233. msm_routing_put_audio_mixer),
  9234. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9235. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9236. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9237. msm_routing_put_audio_mixer),
  9238. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9239. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9240. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9241. msm_routing_put_audio_mixer),
  9242. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9243. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9244. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9245. msm_routing_put_audio_mixer),
  9246. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9247. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9248. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9249. msm_routing_put_audio_mixer),
  9250. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9251. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9252. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9253. msm_routing_put_audio_mixer),
  9254. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9255. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9256. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9257. msm_routing_put_audio_mixer),
  9258. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  9259. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  9260. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9261. msm_routing_put_audio_mixer),
  9262. };
  9263. static const struct snd_kcontrol_new mmul3_mixer_controls[] = {
  9264. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9265. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9266. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9267. msm_routing_put_audio_mixer),
  9268. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9269. MSM_BACKEND_DAI_INT_FM_TX,
  9270. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9271. msm_routing_put_audio_mixer),
  9272. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  9273. MSM_BACKEND_DAI_MI2S_TX,
  9274. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9275. msm_routing_put_audio_mixer),
  9276. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9277. MSM_BACKEND_DAI_AFE_PCM_TX,
  9278. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9279. msm_routing_put_audio_mixer),
  9280. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9281. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9282. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9283. msm_routing_put_audio_mixer),
  9284. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  9285. MSM_BACKEND_DAI_AUXPCM_TX,
  9286. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9287. msm_routing_put_audio_mixer),
  9288. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  9289. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  9290. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9291. msm_routing_put_audio_mixer),
  9292. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  9293. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  9294. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9295. msm_routing_put_audio_mixer),
  9296. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  9297. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  9298. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9299. msm_routing_put_audio_mixer),
  9300. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  9301. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  9302. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9303. msm_routing_put_audio_mixer),
  9304. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9305. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9306. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9307. msm_routing_put_audio_mixer),
  9308. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9309. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9310. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9311. msm_routing_put_audio_mixer),
  9312. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9313. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9314. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9315. msm_routing_put_audio_mixer),
  9316. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9317. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9318. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9319. msm_routing_put_audio_mixer),
  9320. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9321. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9322. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9323. msm_routing_put_audio_mixer),
  9324. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9325. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9326. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9327. msm_routing_put_audio_mixer),
  9328. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9329. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9330. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9331. msm_routing_put_audio_mixer),
  9332. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9333. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9334. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9335. msm_routing_put_audio_mixer),
  9336. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9337. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9338. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9339. msm_routing_put_audio_mixer),
  9340. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9341. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9342. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9343. msm_routing_put_audio_mixer),
  9344. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9345. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9346. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9347. msm_routing_put_audio_mixer),
  9348. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9349. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9350. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9351. msm_routing_put_audio_mixer),
  9352. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9353. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9354. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9355. msm_routing_put_audio_mixer),
  9356. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9357. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9358. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9359. msm_routing_put_audio_mixer),
  9360. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9361. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9362. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9363. msm_routing_put_audio_mixer),
  9364. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9365. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9366. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9367. msm_routing_put_audio_mixer),
  9368. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9369. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9370. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9371. msm_routing_put_audio_mixer),
  9372. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9373. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9374. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9375. msm_routing_put_audio_mixer),
  9376. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9377. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9378. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9379. msm_routing_put_audio_mixer),
  9380. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9381. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9382. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9383. msm_routing_put_audio_mixer),
  9384. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9385. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9386. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9387. msm_routing_put_audio_mixer),
  9388. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9389. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9390. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9391. msm_routing_put_audio_mixer),
  9392. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9393. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9394. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9395. msm_routing_put_audio_mixer),
  9396. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9397. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9398. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9399. msm_routing_put_audio_mixer),
  9400. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9401. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9402. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9403. msm_routing_put_audio_mixer),
  9404. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9405. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9406. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9407. msm_routing_put_audio_mixer),
  9408. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9409. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9410. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9411. msm_routing_put_audio_mixer),
  9412. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9413. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9414. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9415. msm_routing_put_audio_mixer),
  9416. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9417. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9418. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9419. msm_routing_put_audio_mixer),
  9420. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9421. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9422. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9423. msm_routing_put_audio_mixer),
  9424. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9425. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9426. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9427. msm_routing_put_audio_mixer),
  9428. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9429. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9430. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9431. msm_routing_put_audio_mixer),
  9432. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9433. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9434. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9435. msm_routing_put_audio_mixer),
  9436. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9437. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9438. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9439. msm_routing_put_audio_mixer),
  9440. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9441. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9442. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9443. msm_routing_put_audio_mixer),
  9444. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9445. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9446. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9447. msm_routing_put_audio_mixer),
  9448. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9449. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9450. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9451. msm_routing_put_audio_mixer),
  9452. };
  9453. static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
  9454. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9455. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9456. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9457. msm_routing_put_audio_mixer),
  9458. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9459. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9460. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9461. msm_routing_put_audio_mixer),
  9462. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9463. MSM_BACKEND_DAI_INT_FM_TX,
  9464. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9465. msm_routing_put_audio_mixer),
  9466. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9467. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9468. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9469. msm_routing_put_audio_mixer),
  9470. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9471. MSM_BACKEND_DAI_AFE_PCM_TX,
  9472. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9473. msm_routing_put_audio_mixer),
  9474. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9475. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9476. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9477. msm_routing_put_audio_mixer),
  9478. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9479. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9480. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9481. msm_routing_put_audio_mixer),
  9482. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9483. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9484. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9485. msm_routing_put_audio_mixer),
  9486. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9487. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9488. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9489. msm_routing_put_audio_mixer),
  9490. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9491. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9492. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9493. msm_routing_put_audio_mixer),
  9494. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9495. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9496. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9497. msm_routing_put_audio_mixer),
  9498. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9499. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9500. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9501. msm_routing_put_audio_mixer),
  9502. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9503. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9504. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9505. msm_routing_put_audio_mixer),
  9506. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9507. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9508. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9509. msm_routing_put_audio_mixer),
  9510. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9511. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9512. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9513. msm_routing_put_audio_mixer),
  9514. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9515. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9516. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9517. msm_routing_put_audio_mixer),
  9518. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9519. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9520. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9521. msm_routing_put_audio_mixer),
  9522. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9523. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9524. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9525. msm_routing_put_audio_mixer),
  9526. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9527. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9528. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9529. msm_routing_put_audio_mixer),
  9530. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9531. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9532. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9533. msm_routing_put_audio_mixer),
  9534. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9535. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9536. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9537. msm_routing_put_audio_mixer),
  9538. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9539. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9540. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9541. msm_routing_put_audio_mixer),
  9542. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9543. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9544. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9545. msm_routing_put_audio_mixer),
  9546. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9547. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9548. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9549. msm_routing_put_audio_mixer),
  9550. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9551. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9552. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9553. msm_routing_put_audio_mixer),
  9554. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9555. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9556. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9557. msm_routing_put_audio_mixer),
  9558. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9559. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9560. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9561. msm_routing_put_audio_mixer),
  9562. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9563. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9564. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9565. msm_routing_put_audio_mixer),
  9566. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9567. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9568. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9569. msm_routing_put_audio_mixer),
  9570. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9571. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9572. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9573. msm_routing_put_audio_mixer),
  9574. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9575. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9576. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9577. msm_routing_put_audio_mixer),
  9578. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9579. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9580. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9581. msm_routing_put_audio_mixer),
  9582. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9583. MSM_BACKEND_DAI_USB_TX,
  9584. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9585. msm_routing_put_audio_mixer),
  9586. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9587. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9588. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9589. msm_routing_put_audio_mixer),
  9590. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9591. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9592. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9593. msm_routing_put_audio_mixer),
  9594. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9595. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9596. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9597. msm_routing_put_audio_mixer),
  9598. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9599. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9600. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9601. msm_routing_put_audio_mixer),
  9602. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9603. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9604. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9605. msm_routing_put_audio_mixer),
  9606. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9607. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9608. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9609. msm_routing_put_audio_mixer),
  9610. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9611. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9612. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9613. msm_routing_put_audio_mixer),
  9614. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9615. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9616. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9617. msm_routing_put_audio_mixer),
  9618. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9619. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9620. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9621. msm_routing_put_audio_mixer),
  9622. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9623. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9624. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9625. msm_routing_put_audio_mixer),
  9626. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9627. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9628. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9629. msm_routing_put_audio_mixer),
  9630. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9631. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9632. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9633. msm_routing_put_audio_mixer),
  9634. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9635. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9636. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9637. msm_routing_put_audio_mixer),
  9638. };
  9639. static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
  9640. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9641. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9642. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9643. msm_routing_put_audio_mixer),
  9644. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9645. MSM_BACKEND_DAI_INT_FM_TX,
  9646. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9647. msm_routing_put_audio_mixer),
  9648. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  9649. MSM_BACKEND_DAI_MI2S_TX,
  9650. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9651. msm_routing_put_audio_mixer),
  9652. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9653. MSM_BACKEND_DAI_AFE_PCM_TX,
  9654. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9655. msm_routing_put_audio_mixer),
  9656. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9657. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9658. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9659. msm_routing_put_audio_mixer),
  9660. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  9661. MSM_BACKEND_DAI_AUXPCM_TX,
  9662. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9663. msm_routing_put_audio_mixer),
  9664. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  9665. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  9666. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9667. msm_routing_put_audio_mixer),
  9668. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  9669. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  9670. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9671. msm_routing_put_audio_mixer),
  9672. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  9673. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  9674. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9675. msm_routing_put_audio_mixer),
  9676. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  9677. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  9678. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9679. msm_routing_put_audio_mixer),
  9680. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9681. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9682. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9683. msm_routing_put_audio_mixer),
  9684. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9685. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9686. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9687. msm_routing_put_audio_mixer),
  9688. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9689. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9690. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9691. msm_routing_put_audio_mixer),
  9692. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9693. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9694. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9695. msm_routing_put_audio_mixer),
  9696. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9697. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9698. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9699. msm_routing_put_audio_mixer),
  9700. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9701. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9702. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9703. msm_routing_put_audio_mixer),
  9704. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9705. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9706. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9707. msm_routing_put_audio_mixer),
  9708. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9709. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9710. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9711. msm_routing_put_audio_mixer),
  9712. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9713. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9714. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9715. msm_routing_put_audio_mixer),
  9716. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9717. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9718. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9719. msm_routing_put_audio_mixer),
  9720. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9721. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9722. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9723. msm_routing_put_audio_mixer),
  9724. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9725. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9726. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9727. msm_routing_put_audio_mixer),
  9728. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9729. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9730. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9731. msm_routing_put_audio_mixer),
  9732. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9733. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9734. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9735. msm_routing_put_audio_mixer),
  9736. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9737. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9738. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9739. msm_routing_put_audio_mixer),
  9740. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9741. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9742. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9743. msm_routing_put_audio_mixer),
  9744. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9745. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9746. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9747. msm_routing_put_audio_mixer),
  9748. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9749. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9750. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9751. msm_routing_put_audio_mixer),
  9752. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9753. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9754. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9755. msm_routing_put_audio_mixer),
  9756. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9757. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9758. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9759. msm_routing_put_audio_mixer),
  9760. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9761. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9762. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9763. msm_routing_put_audio_mixer),
  9764. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9765. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9766. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9767. msm_routing_put_audio_mixer),
  9768. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9769. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9770. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9771. msm_routing_put_audio_mixer),
  9772. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9773. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9774. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9775. msm_routing_put_audio_mixer),
  9776. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9777. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9778. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9779. msm_routing_put_audio_mixer),
  9780. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9781. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9782. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9783. msm_routing_put_audio_mixer),
  9784. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  9785. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  9786. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9787. msm_routing_put_audio_mixer),
  9788. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  9789. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  9790. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9791. msm_routing_put_audio_mixer),
  9792. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9793. MSM_BACKEND_DAI_USB_TX,
  9794. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9795. msm_routing_put_audio_mixer),
  9796. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9797. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9798. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9799. msm_routing_put_audio_mixer),
  9800. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9801. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9802. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9803. msm_routing_put_audio_mixer),
  9804. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9805. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9806. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9807. msm_routing_put_audio_mixer),
  9808. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9809. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9810. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9811. msm_routing_put_audio_mixer),
  9812. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9813. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9814. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9815. msm_routing_put_audio_mixer),
  9816. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9817. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9818. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9819. msm_routing_put_audio_mixer),
  9820. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9821. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9822. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9823. msm_routing_put_audio_mixer),
  9824. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9825. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9826. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9827. msm_routing_put_audio_mixer),
  9828. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9829. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9830. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9831. msm_routing_put_audio_mixer),
  9832. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9833. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9834. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9835. msm_routing_put_audio_mixer),
  9836. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9837. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9838. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9839. msm_routing_put_audio_mixer),
  9840. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9841. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9842. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9843. msm_routing_put_audio_mixer),
  9844. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9845. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9846. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9847. msm_routing_put_audio_mixer),
  9848. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  9849. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  9850. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9851. msm_routing_put_audio_mixer),
  9852. };
  9853. static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
  9854. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9855. MSM_BACKEND_DAI_INT_FM_TX,
  9856. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9857. msm_routing_put_audio_mixer),
  9858. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9859. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9860. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9861. msm_routing_put_audio_mixer),
  9862. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9863. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9864. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9865. msm_routing_put_audio_mixer),
  9866. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9867. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9868. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9869. msm_routing_put_audio_mixer),
  9870. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9871. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9872. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9873. msm_routing_put_audio_mixer),
  9874. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9875. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9876. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9877. msm_routing_put_audio_mixer),
  9878. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9879. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9880. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9881. msm_routing_put_audio_mixer),
  9882. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9883. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9884. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9885. msm_routing_put_audio_mixer),
  9886. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  9887. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  9888. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9889. msm_routing_put_audio_mixer),
  9890. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  9891. MSM_BACKEND_DAI_AUXPCM_TX,
  9892. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9893. msm_routing_put_audio_mixer),
  9894. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  9895. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  9896. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9897. msm_routing_put_audio_mixer),
  9898. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  9899. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  9900. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9901. msm_routing_put_audio_mixer),
  9902. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  9903. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  9904. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9905. msm_routing_put_audio_mixer),
  9906. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9907. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9908. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9909. msm_routing_put_audio_mixer),
  9910. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9911. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9912. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9913. msm_routing_put_audio_mixer),
  9914. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9915. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9916. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9917. msm_routing_put_audio_mixer),
  9918. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9919. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9920. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9921. msm_routing_put_audio_mixer),
  9922. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9923. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9924. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9925. msm_routing_put_audio_mixer),
  9926. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9927. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9928. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9929. msm_routing_put_audio_mixer),
  9930. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9931. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9932. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9933. msm_routing_put_audio_mixer),
  9934. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9935. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9936. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9937. msm_routing_put_audio_mixer),
  9938. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9939. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9940. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9941. msm_routing_put_audio_mixer),
  9942. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9943. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9944. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9945. msm_routing_put_audio_mixer),
  9946. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9947. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9948. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9949. msm_routing_put_audio_mixer),
  9950. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9951. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9952. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9953. msm_routing_put_audio_mixer),
  9954. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9955. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9956. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9957. msm_routing_put_audio_mixer),
  9958. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9959. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9960. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9961. msm_routing_put_audio_mixer),
  9962. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9963. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9964. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9965. msm_routing_put_audio_mixer),
  9966. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9967. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9968. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9969. msm_routing_put_audio_mixer),
  9970. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9971. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9972. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9973. msm_routing_put_audio_mixer),
  9974. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9975. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9976. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9977. msm_routing_put_audio_mixer),
  9978. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9979. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9980. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9981. msm_routing_put_audio_mixer),
  9982. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9983. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9984. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9985. msm_routing_put_audio_mixer),
  9986. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9987. MSM_BACKEND_DAI_USB_TX,
  9988. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9989. msm_routing_put_audio_mixer),
  9990. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9991. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9992. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9993. msm_routing_put_audio_mixer),
  9994. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9995. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9996. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9997. msm_routing_put_audio_mixer),
  9998. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9999. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10000. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10001. msm_routing_put_audio_mixer),
  10002. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10003. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10004. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10005. msm_routing_put_audio_mixer),
  10006. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10007. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10008. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10009. msm_routing_put_audio_mixer),
  10010. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10011. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10012. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10013. msm_routing_put_audio_mixer),
  10014. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10015. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10016. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10017. msm_routing_put_audio_mixer),
  10018. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10019. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10020. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10021. msm_routing_put_audio_mixer),
  10022. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10023. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10024. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10025. msm_routing_put_audio_mixer),
  10026. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10027. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10028. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10029. msm_routing_put_audio_mixer),
  10030. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10031. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10032. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10033. msm_routing_put_audio_mixer),
  10034. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10035. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10036. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10037. msm_routing_put_audio_mixer),
  10038. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10039. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10040. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10041. msm_routing_put_audio_mixer),
  10042. };
  10043. static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
  10044. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10045. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10046. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10047. msm_routing_put_audio_mixer),
  10048. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10049. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10050. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10051. msm_routing_put_audio_mixer),
  10052. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10053. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  10054. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10055. msm_routing_put_audio_mixer),
  10056. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10057. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10058. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10059. msm_routing_put_audio_mixer),
  10060. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  10061. MSM_BACKEND_DAI_INT2_MI2S_TX,
  10062. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10063. msm_routing_put_audio_mixer),
  10064. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10065. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10066. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10067. msm_routing_put_audio_mixer),
  10068. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10069. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10070. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10071. msm_routing_put_audio_mixer),
  10072. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10073. MSM_BACKEND_DAI_INT_FM_TX,
  10074. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10075. msm_routing_put_audio_mixer),
  10076. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10077. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10078. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10079. msm_routing_put_audio_mixer),
  10080. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10081. MSM_BACKEND_DAI_AFE_PCM_TX,
  10082. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10083. msm_routing_put_audio_mixer),
  10084. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10085. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10086. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10087. msm_routing_put_audio_mixer),
  10088. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10089. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10090. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10091. msm_routing_put_audio_mixer),
  10092. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  10093. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  10094. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10095. msm_routing_put_audio_mixer),
  10096. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  10097. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  10098. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10099. msm_routing_put_audio_mixer),
  10100. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  10101. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  10102. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10103. msm_routing_put_audio_mixer),
  10104. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  10105. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  10106. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10107. msm_routing_put_audio_mixer),
  10108. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  10109. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  10110. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10111. msm_routing_put_audio_mixer),
  10112. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  10113. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10114. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10115. msm_routing_put_audio_mixer),
  10116. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  10117. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  10118. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10119. msm_routing_put_audio_mixer),
  10120. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  10121. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  10122. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10123. msm_routing_put_audio_mixer),
  10124. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  10125. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  10126. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10127. msm_routing_put_audio_mixer),
  10128. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10129. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10130. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10131. msm_routing_put_audio_mixer),
  10132. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10133. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10134. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10135. msm_routing_put_audio_mixer),
  10136. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10137. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10138. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10139. msm_routing_put_audio_mixer),
  10140. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10141. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10142. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10143. msm_routing_put_audio_mixer),
  10144. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10145. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10146. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10147. msm_routing_put_audio_mixer),
  10148. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10149. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10150. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10151. msm_routing_put_audio_mixer),
  10152. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10153. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10154. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10155. msm_routing_put_audio_mixer),
  10156. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10157. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10158. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10159. msm_routing_put_audio_mixer),
  10160. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  10161. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10162. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10163. msm_routing_put_audio_mixer),
  10164. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  10165. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10166. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10167. msm_routing_put_audio_mixer),
  10168. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  10169. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10170. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10171. msm_routing_put_audio_mixer),
  10172. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  10173. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10174. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10175. msm_routing_put_audio_mixer),
  10176. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10177. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10178. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10179. msm_routing_put_audio_mixer),
  10180. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  10181. MSM_BACKEND_DAI_USB_TX,
  10182. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10183. msm_routing_put_audio_mixer),
  10184. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10185. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10186. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10187. msm_routing_put_audio_mixer),
  10188. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10189. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10190. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10191. msm_routing_put_audio_mixer),
  10192. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10193. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10194. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10195. msm_routing_put_audio_mixer),
  10196. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10197. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10198. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10199. msm_routing_put_audio_mixer),
  10200. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10201. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10202. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10203. msm_routing_put_audio_mixer),
  10204. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10205. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10206. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10207. msm_routing_put_audio_mixer),
  10208. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10209. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10210. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10211. msm_routing_put_audio_mixer),
  10212. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10213. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10214. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10215. msm_routing_put_audio_mixer),
  10216. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10217. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10218. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10219. msm_routing_put_audio_mixer),
  10220. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10221. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10222. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10223. msm_routing_put_audio_mixer),
  10224. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10225. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10226. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10227. msm_routing_put_audio_mixer),
  10228. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10229. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10230. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10231. msm_routing_put_audio_mixer),
  10232. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10233. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10234. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10235. msm_routing_put_audio_mixer),
  10236. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  10237. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  10238. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10239. msm_routing_put_audio_mixer),
  10240. };
  10241. static const struct snd_kcontrol_new mmul16_mixer_controls[] = {
  10242. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10243. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10244. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10245. msm_routing_put_audio_mixer),
  10246. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10247. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10248. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10249. msm_routing_put_audio_mixer),
  10250. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10251. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  10252. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10253. msm_routing_put_audio_mixer),
  10254. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10255. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10256. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10257. msm_routing_put_audio_mixer),
  10258. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  10259. MSM_BACKEND_DAI_INT2_MI2S_TX,
  10260. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10261. msm_routing_put_audio_mixer),
  10262. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10263. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10264. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10265. msm_routing_put_audio_mixer),
  10266. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10267. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10268. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10269. msm_routing_put_audio_mixer),
  10270. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10271. MSM_BACKEND_DAI_INT_FM_TX,
  10272. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10273. msm_routing_put_audio_mixer),
  10274. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10275. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10276. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10277. msm_routing_put_audio_mixer),
  10278. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10279. MSM_BACKEND_DAI_AFE_PCM_TX,
  10280. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10281. msm_routing_put_audio_mixer),
  10282. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10283. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10284. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10285. msm_routing_put_audio_mixer),
  10286. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10287. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10288. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10289. msm_routing_put_audio_mixer),
  10290. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  10291. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  10292. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10293. msm_routing_put_audio_mixer),
  10294. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  10295. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  10296. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10297. msm_routing_put_audio_mixer),
  10298. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  10299. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  10300. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10301. msm_routing_put_audio_mixer),
  10302. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  10303. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  10304. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10305. msm_routing_put_audio_mixer),
  10306. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  10307. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  10308. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10309. msm_routing_put_audio_mixer),
  10310. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  10311. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10312. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10313. msm_routing_put_audio_mixer),
  10314. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  10315. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  10316. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10317. msm_routing_put_audio_mixer),
  10318. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  10319. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  10320. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10321. msm_routing_put_audio_mixer),
  10322. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  10323. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  10324. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10325. msm_routing_put_audio_mixer),
  10326. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10327. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10328. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10329. msm_routing_put_audio_mixer),
  10330. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10331. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10332. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10333. msm_routing_put_audio_mixer),
  10334. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10335. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10336. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10337. msm_routing_put_audio_mixer),
  10338. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10339. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10340. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10341. msm_routing_put_audio_mixer),
  10342. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10343. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10344. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10345. msm_routing_put_audio_mixer),
  10346. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10347. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10348. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10349. msm_routing_put_audio_mixer),
  10350. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10351. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10352. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10353. msm_routing_put_audio_mixer),
  10354. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10355. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10356. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10357. msm_routing_put_audio_mixer),
  10358. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10359. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10360. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10361. msm_routing_put_audio_mixer),
  10362. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  10363. MSM_BACKEND_DAI_USB_TX,
  10364. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10365. msm_routing_put_audio_mixer),
  10366. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  10367. MSM_BACKEND_DAI_MI2S_TX,
  10368. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10369. msm_routing_put_audio_mixer),
  10370. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  10371. MSM_BACKEND_DAI_AUXPCM_TX,
  10372. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10373. msm_routing_put_audio_mixer),
  10374. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  10375. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10376. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10377. msm_routing_put_audio_mixer),
  10378. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  10379. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10380. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10381. msm_routing_put_audio_mixer),
  10382. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10383. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10384. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10385. msm_routing_put_audio_mixer),
  10386. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10387. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10388. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10389. msm_routing_put_audio_mixer),
  10390. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10391. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10392. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10393. msm_routing_put_audio_mixer),
  10394. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10395. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10396. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10397. msm_routing_put_audio_mixer),
  10398. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10399. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10400. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10401. msm_routing_put_audio_mixer),
  10402. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10403. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10404. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10405. msm_routing_get_audio_mixer,
  10406. msm_routing_put_audio_mixer),
  10407. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10408. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10409. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10410. msm_routing_get_audio_mixer,
  10411. msm_routing_put_audio_mixer),
  10412. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10413. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10414. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10415. msm_routing_get_audio_mixer,
  10416. msm_routing_put_audio_mixer),
  10417. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10418. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10419. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10420. msm_routing_get_audio_mixer,
  10421. msm_routing_put_audio_mixer),
  10422. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10423. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10424. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10425. msm_routing_get_audio_mixer,
  10426. msm_routing_put_audio_mixer),
  10427. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10428. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10429. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10430. msm_routing_get_audio_mixer,
  10431. msm_routing_put_audio_mixer),
  10432. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10433. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10434. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10435. msm_routing_put_audio_mixer),
  10436. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10437. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10438. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10439. msm_routing_put_audio_mixer),
  10440. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  10441. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  10442. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10443. msm_routing_put_audio_mixer),
  10444. };
  10445. static const struct snd_kcontrol_new mmul9_mixer_controls[] = {
  10446. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10447. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10448. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10449. msm_routing_put_audio_mixer),
  10450. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10451. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10452. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10453. msm_routing_put_audio_mixer),
  10454. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10455. MSM_BACKEND_DAI_INT_FM_TX,
  10456. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10457. msm_routing_put_audio_mixer),
  10458. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10459. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10460. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10461. msm_routing_put_audio_mixer),
  10462. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10463. MSM_BACKEND_DAI_AFE_PCM_TX,
  10464. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10465. msm_routing_put_audio_mixer),
  10466. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10467. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10468. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10469. msm_routing_put_audio_mixer),
  10470. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10471. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10472. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10473. msm_routing_put_audio_mixer),
  10474. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  10475. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  10476. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10477. msm_routing_put_audio_mixer),
  10478. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10479. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10480. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10481. msm_routing_put_audio_mixer),
  10482. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10483. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10484. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10485. msm_routing_put_audio_mixer),
  10486. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10487. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10488. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10489. msm_routing_put_audio_mixer),
  10490. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10491. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10492. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10493. msm_routing_put_audio_mixer),
  10494. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10495. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10496. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10497. msm_routing_put_audio_mixer),
  10498. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10499. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10500. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10501. msm_routing_put_audio_mixer),
  10502. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10503. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10504. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10505. msm_routing_put_audio_mixer),
  10506. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10507. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10508. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10509. msm_routing_put_audio_mixer),
  10510. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  10511. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10512. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10513. msm_routing_put_audio_mixer),
  10514. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  10515. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10516. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10517. msm_routing_put_audio_mixer),
  10518. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  10519. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10520. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10521. msm_routing_put_audio_mixer),
  10522. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  10523. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10524. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10525. msm_routing_put_audio_mixer),
  10526. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10527. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10528. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10529. msm_routing_put_audio_mixer),
  10530. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10531. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10532. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10533. msm_routing_put_audio_mixer),
  10534. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10535. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10536. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10537. msm_routing_put_audio_mixer),
  10538. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10539. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10540. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10541. msm_routing_put_audio_mixer),
  10542. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10543. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10544. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10545. msm_routing_put_audio_mixer),
  10546. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10547. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10548. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10549. msm_routing_put_audio_mixer),
  10550. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10551. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10552. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10553. msm_routing_put_audio_mixer),
  10554. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10555. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10556. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10557. msm_routing_put_audio_mixer),
  10558. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10559. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10560. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10561. msm_routing_put_audio_mixer),
  10562. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10563. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10564. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10565. msm_routing_put_audio_mixer),
  10566. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10567. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10568. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10569. msm_routing_put_audio_mixer),
  10570. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10571. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10572. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10573. msm_routing_put_audio_mixer),
  10574. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10575. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10576. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10577. msm_routing_put_audio_mixer),
  10578. };
  10579. static const struct snd_kcontrol_new mmul10_mixer_controls[] = {
  10580. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10581. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10582. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10583. msm_routing_put_audio_mixer),
  10584. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10585. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10586. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10587. msm_routing_put_audio_mixer),
  10588. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10589. MSM_BACKEND_DAI_INT_FM_TX,
  10590. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10591. msm_routing_put_audio_mixer),
  10592. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10593. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10594. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10595. msm_routing_put_audio_mixer),
  10596. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10597. MSM_BACKEND_DAI_AFE_PCM_TX,
  10598. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10599. msm_routing_put_audio_mixer),
  10600. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10601. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10602. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10603. msm_routing_put_audio_mixer),
  10604. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10605. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10606. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10607. msm_routing_put_audio_mixer),
  10608. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  10609. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  10610. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10611. msm_routing_put_audio_mixer),
  10612. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10613. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10614. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10615. msm_routing_put_audio_mixer),
  10616. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10617. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10618. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10619. msm_routing_put_audio_mixer),
  10620. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10621. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10622. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10623. msm_routing_put_audio_mixer),
  10624. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10625. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10626. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10627. msm_routing_put_audio_mixer),
  10628. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10629. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10630. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10631. msm_routing_put_audio_mixer),
  10632. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10633. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10634. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10635. msm_routing_put_audio_mixer),
  10636. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10637. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10638. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10639. msm_routing_put_audio_mixer),
  10640. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10641. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10642. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10643. msm_routing_put_audio_mixer),
  10644. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10645. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10646. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10647. msm_routing_put_audio_mixer),
  10648. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  10649. MSM_BACKEND_DAI_USB_TX,
  10650. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10651. msm_routing_put_audio_mixer),
  10652. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  10653. MSM_BACKEND_DAI_MI2S_TX,
  10654. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10655. msm_routing_put_audio_mixer),
  10656. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  10657. MSM_BACKEND_DAI_AUXPCM_TX,
  10658. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10659. msm_routing_put_audio_mixer),
  10660. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  10661. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10662. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10663. msm_routing_put_audio_mixer),
  10664. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  10665. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10666. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10667. msm_routing_put_audio_mixer),
  10668. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  10669. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10670. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10671. msm_routing_put_audio_mixer),
  10672. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10673. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10674. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10675. msm_routing_put_audio_mixer),
  10676. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  10677. MSM_BACKEND_DAI_INT2_MI2S_TX,
  10678. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10679. msm_routing_put_audio_mixer),
  10680. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10681. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10682. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10683. msm_routing_put_audio_mixer),
  10684. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10685. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10686. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10687. msm_routing_put_audio_mixer),
  10688. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10689. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10690. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10691. msm_routing_put_audio_mixer),
  10692. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10693. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10694. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10695. msm_routing_put_audio_mixer),
  10696. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10697. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10698. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10699. msm_routing_put_audio_mixer),
  10700. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10701. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10702. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10703. msm_routing_put_audio_mixer),
  10704. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10705. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10706. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10707. msm_routing_get_audio_mixer,
  10708. msm_routing_put_audio_mixer),
  10709. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10710. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10711. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10712. msm_routing_get_audio_mixer,
  10713. msm_routing_put_audio_mixer),
  10714. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10715. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10716. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10717. msm_routing_get_audio_mixer,
  10718. msm_routing_put_audio_mixer),
  10719. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10720. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10721. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10722. msm_routing_get_audio_mixer,
  10723. msm_routing_put_audio_mixer),
  10724. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10725. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10726. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10727. msm_routing_get_audio_mixer,
  10728. msm_routing_put_audio_mixer),
  10729. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10730. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10731. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10732. msm_routing_get_audio_mixer,
  10733. msm_routing_put_audio_mixer),
  10734. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10735. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10736. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10737. msm_routing_put_audio_mixer),
  10738. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10739. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10740. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10741. msm_routing_put_audio_mixer),
  10742. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  10743. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  10744. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10745. msm_routing_put_audio_mixer),
  10746. };
  10747. static const struct snd_kcontrol_new mmul17_mixer_controls[] = {
  10748. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10749. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10750. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10751. msm_routing_put_audio_mixer),
  10752. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10753. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10754. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10755. msm_routing_put_audio_mixer),
  10756. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10757. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10758. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10759. msm_routing_put_audio_mixer),
  10760. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10761. MSM_BACKEND_DAI_INT_FM_TX,
  10762. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10763. msm_routing_put_audio_mixer),
  10764. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10765. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10766. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10767. msm_routing_put_audio_mixer),
  10768. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10769. MSM_BACKEND_DAI_AFE_PCM_TX,
  10770. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10771. msm_routing_put_audio_mixer),
  10772. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10773. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10774. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10775. msm_routing_put_audio_mixer),
  10776. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10777. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10778. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10779. msm_routing_put_audio_mixer),
  10780. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10781. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10782. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10783. msm_routing_put_audio_mixer),
  10784. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10785. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10786. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10787. msm_routing_put_audio_mixer),
  10788. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10789. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10790. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10791. msm_routing_put_audio_mixer),
  10792. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10793. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10794. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10795. msm_routing_put_audio_mixer),
  10796. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10797. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10798. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10799. msm_routing_put_audio_mixer),
  10800. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10801. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10802. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10803. msm_routing_put_audio_mixer),
  10804. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10805. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10806. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10807. msm_routing_put_audio_mixer),
  10808. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10809. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10810. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10811. msm_routing_get_audio_mixer,
  10812. msm_routing_put_audio_mixer),
  10813. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10814. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10815. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10816. msm_routing_get_audio_mixer,
  10817. msm_routing_put_audio_mixer),
  10818. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10819. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10820. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10821. msm_routing_get_audio_mixer,
  10822. msm_routing_put_audio_mixer),
  10823. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10824. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10825. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10826. msm_routing_get_audio_mixer,
  10827. msm_routing_put_audio_mixer),
  10828. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10829. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10830. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10831. msm_routing_get_audio_mixer,
  10832. msm_routing_put_audio_mixer),
  10833. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10834. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10835. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10836. msm_routing_get_audio_mixer,
  10837. msm_routing_put_audio_mixer),
  10838. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10839. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10840. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10841. msm_routing_put_audio_mixer),
  10842. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10843. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10844. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10845. msm_routing_put_audio_mixer),
  10846. };
  10847. static const struct snd_kcontrol_new mmul18_mixer_controls[] = {
  10848. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10849. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10850. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10851. msm_routing_put_audio_mixer),
  10852. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10853. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10854. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10855. msm_routing_put_audio_mixer),
  10856. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10857. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10858. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10859. msm_routing_put_audio_mixer),
  10860. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10861. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  10862. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10863. msm_routing_put_audio_mixer),
  10864. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10865. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10866. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10867. msm_routing_put_audio_mixer),
  10868. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10869. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10870. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10871. msm_routing_put_audio_mixer),
  10872. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10873. MSM_BACKEND_DAI_INT_FM_TX,
  10874. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10875. msm_routing_put_audio_mixer),
  10876. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10877. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10878. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10879. msm_routing_put_audio_mixer),
  10880. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10881. MSM_BACKEND_DAI_AFE_PCM_TX,
  10882. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10883. msm_routing_put_audio_mixer),
  10884. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10885. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10886. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10887. msm_routing_put_audio_mixer),
  10888. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10889. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10890. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10891. msm_routing_put_audio_mixer),
  10892. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10893. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10894. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10895. msm_routing_put_audio_mixer),
  10896. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10897. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10898. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10899. msm_routing_put_audio_mixer),
  10900. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10901. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10902. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10903. msm_routing_put_audio_mixer),
  10904. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10905. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10906. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10907. msm_routing_put_audio_mixer),
  10908. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10909. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10910. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10911. msm_routing_put_audio_mixer),
  10912. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10913. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10914. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10915. msm_routing_get_audio_mixer,
  10916. msm_routing_put_audio_mixer),
  10917. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10918. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10919. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10920. msm_routing_get_audio_mixer,
  10921. msm_routing_put_audio_mixer),
  10922. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10923. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10924. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10925. msm_routing_get_audio_mixer,
  10926. msm_routing_put_audio_mixer),
  10927. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10928. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10929. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10930. msm_routing_get_audio_mixer,
  10931. msm_routing_put_audio_mixer),
  10932. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10933. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10934. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10935. msm_routing_get_audio_mixer,
  10936. msm_routing_put_audio_mixer),
  10937. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10938. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10939. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10940. msm_routing_get_audio_mixer,
  10941. msm_routing_put_audio_mixer),
  10942. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10943. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10944. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10945. msm_routing_put_audio_mixer),
  10946. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10947. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10948. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10949. msm_routing_put_audio_mixer),
  10950. };
  10951. static const struct snd_kcontrol_new mmul19_mixer_controls[] = {
  10952. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10953. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10954. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10955. msm_routing_put_audio_mixer),
  10956. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10957. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10958. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10959. msm_routing_put_audio_mixer),
  10960. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10961. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10962. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10963. msm_routing_put_audio_mixer),
  10964. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10965. MSM_BACKEND_DAI_INT_FM_TX,
  10966. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10967. msm_routing_put_audio_mixer),
  10968. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10969. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10970. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10971. msm_routing_put_audio_mixer),
  10972. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10973. MSM_BACKEND_DAI_AFE_PCM_TX,
  10974. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10975. msm_routing_put_audio_mixer),
  10976. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10977. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10978. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10979. msm_routing_put_audio_mixer),
  10980. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10981. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10982. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10983. msm_routing_put_audio_mixer),
  10984. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10985. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10986. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10987. msm_routing_put_audio_mixer),
  10988. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10989. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10990. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10991. msm_routing_put_audio_mixer),
  10992. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10993. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10994. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10995. msm_routing_put_audio_mixer),
  10996. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10997. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10998. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  10999. msm_routing_put_audio_mixer),
  11000. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11001. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11002. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11003. msm_routing_put_audio_mixer),
  11004. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11005. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11006. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11007. msm_routing_put_audio_mixer),
  11008. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11009. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11010. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11011. msm_routing_put_audio_mixer),
  11012. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11013. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11014. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  11015. msm_routing_get_audio_mixer,
  11016. msm_routing_put_audio_mixer),
  11017. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11018. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11019. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  11020. msm_routing_get_audio_mixer,
  11021. msm_routing_put_audio_mixer),
  11022. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11023. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11024. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  11025. msm_routing_get_audio_mixer,
  11026. msm_routing_put_audio_mixer),
  11027. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11028. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11029. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  11030. msm_routing_get_audio_mixer,
  11031. msm_routing_put_audio_mixer),
  11032. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11033. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11034. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  11035. msm_routing_get_audio_mixer,
  11036. msm_routing_put_audio_mixer),
  11037. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11038. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11039. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  11040. msm_routing_get_audio_mixer,
  11041. msm_routing_put_audio_mixer),
  11042. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11043. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11044. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11045. msm_routing_put_audio_mixer),
  11046. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11047. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11048. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11049. msm_routing_put_audio_mixer),
  11050. };
  11051. static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
  11052. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11053. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11054. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11055. msm_routing_put_audio_mixer),
  11056. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11057. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11058. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11059. msm_routing_put_audio_mixer),
  11060. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11061. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11062. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11063. msm_routing_put_audio_mixer),
  11064. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11065. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11066. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11067. msm_routing_put_audio_mixer),
  11068. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11069. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  11070. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11071. msm_routing_put_audio_mixer),
  11072. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11073. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11074. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11075. msm_routing_put_audio_mixer),
  11076. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11077. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11078. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11079. msm_routing_put_audio_mixer),
  11080. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11081. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11082. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11083. msm_routing_put_audio_mixer),
  11084. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11085. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11086. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11087. msm_routing_put_audio_mixer),
  11088. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11089. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11090. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11091. msm_routing_put_audio_mixer),
  11092. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11093. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11094. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11095. msm_routing_put_audio_mixer),
  11096. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11097. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11098. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11099. msm_routing_put_audio_mixer),
  11100. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11101. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11102. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11103. msm_routing_put_audio_mixer),
  11104. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11105. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11106. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11107. msm_routing_put_audio_mixer),
  11108. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11109. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11110. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11111. msm_routing_put_audio_mixer),
  11112. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11113. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11114. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11115. msm_routing_put_audio_mixer),
  11116. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11117. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11118. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11119. msm_routing_put_audio_mixer),
  11120. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11121. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11122. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11123. msm_routing_put_audio_mixer),
  11124. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11125. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11126. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11127. msm_routing_put_audio_mixer),
  11128. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11129. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11130. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11131. msm_routing_put_audio_mixer),
  11132. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11133. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11134. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11135. msm_routing_put_audio_mixer),
  11136. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11137. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11138. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11139. msm_routing_put_audio_mixer),
  11140. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11141. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11142. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11143. msm_routing_put_audio_mixer),
  11144. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11145. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11146. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11147. msm_routing_put_audio_mixer),
  11148. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11149. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11150. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11151. msm_routing_put_audio_mixer),
  11152. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11153. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11154. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11155. msm_routing_put_audio_mixer),
  11156. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11157. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11158. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11159. msm_routing_put_audio_mixer),
  11160. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11161. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11162. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11163. msm_routing_put_audio_mixer),
  11164. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11165. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11166. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11167. msm_routing_put_audio_mixer),
  11168. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11169. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11170. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11171. msm_routing_put_audio_mixer),
  11172. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11173. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11174. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11175. msm_routing_put_audio_mixer),
  11176. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11177. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11178. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11179. msm_routing_put_audio_mixer),
  11180. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11181. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11182. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11183. msm_routing_put_audio_mixer),
  11184. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11185. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11186. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11187. msm_routing_put_audio_mixer),
  11188. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11189. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11190. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11191. msm_routing_put_audio_mixer),
  11192. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11193. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11194. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11195. msm_routing_put_audio_mixer),
  11196. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11197. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11198. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11199. msm_routing_put_audio_mixer),
  11200. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11201. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11202. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11203. msm_routing_put_audio_mixer),
  11204. };
  11205. static const struct snd_kcontrol_new mmul21_mixer_controls[] = {
  11206. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11207. MSM_BACKEND_DAI_AUXPCM_TX,
  11208. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11209. msm_routing_put_audio_mixer),
  11210. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11211. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11212. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11213. msm_routing_put_audio_mixer),
  11214. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11215. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11216. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11217. msm_routing_put_audio_mixer),
  11218. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11219. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11220. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11221. msm_routing_put_audio_mixer),
  11222. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11223. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11224. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11225. msm_routing_put_audio_mixer),
  11226. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11227. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11228. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11229. msm_routing_put_audio_mixer),
  11230. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11231. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11232. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11233. msm_routing_put_audio_mixer),
  11234. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11235. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11236. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11237. msm_routing_put_audio_mixer),
  11238. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11239. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11240. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11241. msm_routing_put_audio_mixer),
  11242. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11243. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11244. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11245. msm_routing_put_audio_mixer),
  11246. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11247. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11248. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11249. msm_routing_put_audio_mixer),
  11250. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11251. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11252. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11253. msm_routing_put_audio_mixer),
  11254. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11255. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11256. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11257. msm_routing_put_audio_mixer),
  11258. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11259. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11260. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11261. msm_routing_put_audio_mixer),
  11262. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11263. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11264. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11265. msm_routing_put_audio_mixer),
  11266. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11267. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11268. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11269. msm_routing_put_audio_mixer),
  11270. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11271. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11272. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11273. msm_routing_put_audio_mixer),
  11274. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11275. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11276. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11277. msm_routing_put_audio_mixer),
  11278. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11279. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11280. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11281. msm_routing_put_audio_mixer),
  11282. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11283. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11284. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11285. msm_routing_put_audio_mixer),
  11286. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11287. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11288. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11289. msm_routing_put_audio_mixer),
  11290. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11291. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11292. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11293. msm_routing_put_audio_mixer),
  11294. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11295. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11296. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11297. msm_routing_put_audio_mixer),
  11298. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11299. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11300. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11301. msm_routing_put_audio_mixer),
  11302. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11303. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11304. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11305. msm_routing_put_audio_mixer),
  11306. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11307. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11308. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11309. msm_routing_put_audio_mixer),
  11310. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11311. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11312. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11313. msm_routing_put_audio_mixer),
  11314. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11315. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11316. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11317. msm_routing_put_audio_mixer),
  11318. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11319. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11320. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11321. msm_routing_put_audio_mixer),
  11322. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11323. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11324. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11325. msm_routing_put_audio_mixer),
  11326. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11327. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11328. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11329. msm_routing_put_audio_mixer),
  11330. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11331. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11332. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11333. msm_routing_put_audio_mixer),
  11334. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11335. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11336. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11337. msm_routing_put_audio_mixer),
  11338. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11339. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11340. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11341. msm_routing_put_audio_mixer),
  11342. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11343. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11344. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11345. msm_routing_put_audio_mixer),
  11346. };
  11347. static const struct snd_kcontrol_new mmul27_mixer_controls[] = {
  11348. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11349. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11350. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11351. msm_routing_put_audio_mixer),
  11352. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  11353. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  11354. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11355. msm_routing_put_audio_mixer),
  11356. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  11357. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  11358. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11359. msm_routing_put_audio_mixer),
  11360. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11361. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11362. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11363. msm_routing_put_audio_mixer),
  11364. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11365. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11366. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11367. msm_routing_put_audio_mixer),
  11368. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11369. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11370. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11371. msm_routing_put_audio_mixer),
  11372. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11373. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11374. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11375. msm_routing_put_audio_mixer),
  11376. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11377. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  11378. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11379. msm_routing_put_audio_mixer),
  11380. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11381. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11382. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11383. msm_routing_put_audio_mixer),
  11384. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11385. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11386. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11387. msm_routing_put_audio_mixer),
  11388. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  11389. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  11390. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11391. msm_routing_put_audio_mixer),
  11392. };
  11393. static const struct snd_kcontrol_new mmul28_mixer_controls[] = {
  11394. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11395. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11396. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11397. msm_routing_put_audio_mixer),
  11398. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11399. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11400. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11401. msm_routing_put_audio_mixer),
  11402. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11403. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11404. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11405. msm_routing_put_audio_mixer),
  11406. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11407. MSM_BACKEND_DAI_INT_FM_TX,
  11408. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11409. msm_routing_put_audio_mixer),
  11410. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11411. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11412. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11413. msm_routing_put_audio_mixer),
  11414. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11415. MSM_BACKEND_DAI_AFE_PCM_TX,
  11416. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11417. msm_routing_put_audio_mixer),
  11418. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11419. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11420. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11421. msm_routing_put_audio_mixer),
  11422. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11423. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11424. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11425. msm_routing_put_audio_mixer),
  11426. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11427. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11428. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11429. msm_routing_put_audio_mixer),
  11430. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11431. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11432. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11433. msm_routing_put_audio_mixer),
  11434. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11435. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11436. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11437. msm_routing_put_audio_mixer),
  11438. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11439. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11440. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11441. msm_routing_put_audio_mixer),
  11442. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11443. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11444. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11445. msm_routing_put_audio_mixer),
  11446. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11447. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11448. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11449. msm_routing_put_audio_mixer),
  11450. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11451. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11452. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11453. msm_routing_put_audio_mixer),
  11454. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11455. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11456. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11457. msm_routing_get_audio_mixer,
  11458. msm_routing_put_audio_mixer),
  11459. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11460. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11461. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11462. msm_routing_get_audio_mixer,
  11463. msm_routing_put_audio_mixer),
  11464. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11465. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11466. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11467. msm_routing_get_audio_mixer,
  11468. msm_routing_put_audio_mixer),
  11469. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11470. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11471. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11472. msm_routing_get_audio_mixer,
  11473. msm_routing_put_audio_mixer),
  11474. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11475. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11476. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11477. msm_routing_get_audio_mixer,
  11478. msm_routing_put_audio_mixer),
  11479. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11480. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11481. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11482. msm_routing_get_audio_mixer,
  11483. msm_routing_put_audio_mixer),
  11484. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11485. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11486. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11487. msm_routing_put_audio_mixer),
  11488. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11489. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11490. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11491. msm_routing_put_audio_mixer),
  11492. };
  11493. static const struct snd_kcontrol_new mmul29_mixer_controls[] = {
  11494. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11495. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11496. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11497. msm_routing_put_audio_mixer),
  11498. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11499. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11500. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11501. msm_routing_put_audio_mixer),
  11502. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11503. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11504. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11505. msm_routing_put_audio_mixer),
  11506. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11507. MSM_BACKEND_DAI_INT_FM_TX,
  11508. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11509. msm_routing_put_audio_mixer),
  11510. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11511. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11512. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11513. msm_routing_put_audio_mixer),
  11514. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11515. MSM_BACKEND_DAI_AFE_PCM_TX,
  11516. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11517. msm_routing_put_audio_mixer),
  11518. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11519. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11520. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11521. msm_routing_put_audio_mixer),
  11522. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11523. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11524. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11525. msm_routing_put_audio_mixer),
  11526. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11527. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11528. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11529. msm_routing_put_audio_mixer),
  11530. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11531. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11532. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11533. msm_routing_put_audio_mixer),
  11534. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11535. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11536. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11537. msm_routing_put_audio_mixer),
  11538. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11539. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11540. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11541. msm_routing_put_audio_mixer),
  11542. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11543. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11544. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11545. msm_routing_put_audio_mixer),
  11546. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11547. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11548. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11549. msm_routing_put_audio_mixer),
  11550. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11551. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11552. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11553. msm_routing_put_audio_mixer),
  11554. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11555. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11556. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11557. msm_routing_get_audio_mixer,
  11558. msm_routing_put_audio_mixer),
  11559. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11560. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11561. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11562. msm_routing_get_audio_mixer,
  11563. msm_routing_put_audio_mixer),
  11564. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11565. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11566. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11567. msm_routing_get_audio_mixer,
  11568. msm_routing_put_audio_mixer),
  11569. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11570. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11571. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11572. msm_routing_get_audio_mixer,
  11573. msm_routing_put_audio_mixer),
  11574. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11575. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11576. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11577. msm_routing_get_audio_mixer,
  11578. msm_routing_put_audio_mixer),
  11579. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11580. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11581. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11582. msm_routing_get_audio_mixer,
  11583. msm_routing_put_audio_mixer),
  11584. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11585. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11586. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11587. msm_routing_put_audio_mixer),
  11588. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11589. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11590. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11591. msm_routing_put_audio_mixer),
  11592. };
  11593. static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
  11594. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11595. MSM_BACKEND_DAI_PRI_I2S_RX,
  11596. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11597. msm_routing_put_voice_mixer),
  11598. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11599. MSM_BACKEND_DAI_PRI_I2S_RX,
  11600. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11601. msm_routing_put_voice_mixer),
  11602. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11603. MSM_BACKEND_DAI_PRI_I2S_RX,
  11604. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11605. msm_routing_put_voice_mixer),
  11606. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11607. MSM_BACKEND_DAI_PRI_I2S_RX,
  11608. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11609. msm_routing_put_voice_mixer),
  11610. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11611. MSM_BACKEND_DAI_PRI_I2S_RX,
  11612. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11613. msm_routing_put_voice_mixer),
  11614. };
  11615. static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
  11616. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11617. MSM_BACKEND_DAI_SEC_I2S_RX,
  11618. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11619. msm_routing_put_voice_mixer),
  11620. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11621. MSM_BACKEND_DAI_SEC_I2S_RX,
  11622. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11623. msm_routing_put_voice_mixer),
  11624. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11625. MSM_BACKEND_DAI_SEC_I2S_RX,
  11626. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11627. msm_routing_put_voice_mixer),
  11628. };
  11629. static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
  11630. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11631. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  11632. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11633. msm_routing_put_voice_mixer),
  11634. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11635. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  11636. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11637. msm_routing_put_voice_mixer),
  11638. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11639. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  11640. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11641. msm_routing_put_voice_mixer),
  11642. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11643. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  11644. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11645. msm_routing_put_voice_mixer),
  11646. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11647. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  11648. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11649. msm_routing_put_voice_mixer),
  11650. };
  11651. static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
  11652. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11653. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11654. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11655. msm_routing_put_voice_mixer),
  11656. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11657. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11658. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11659. msm_routing_put_voice_mixer),
  11660. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11661. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11662. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11663. msm_routing_put_voice_mixer),
  11664. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11665. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11666. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11667. msm_routing_put_voice_mixer),
  11668. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11669. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11670. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11671. msm_routing_put_voice_mixer),
  11672. };
  11673. static const struct snd_kcontrol_new slimbus_6_rx_voice_mixer_controls[] = {
  11674. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11675. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11676. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11677. msm_routing_put_voice_mixer),
  11678. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11679. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11680. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11681. msm_routing_put_voice_mixer),
  11682. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11683. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11684. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11685. msm_routing_put_voice_mixer),
  11686. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11687. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11688. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11689. msm_routing_put_voice_mixer),
  11690. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11691. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11692. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11693. msm_routing_put_voice_mixer),
  11694. };
  11695. static const struct snd_kcontrol_new usb_audio_rx_voice_mixer_controls[] = {
  11696. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11697. MSM_BACKEND_DAI_USB_RX,
  11698. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11699. msm_routing_put_voice_mixer),
  11700. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11701. MSM_BACKEND_DAI_USB_RX,
  11702. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11703. msm_routing_put_voice_mixer),
  11704. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11705. MSM_BACKEND_DAI_USB_RX,
  11706. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11707. msm_routing_put_voice_mixer),
  11708. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11709. MSM_BACKEND_DAI_USB_RX,
  11710. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11711. msm_routing_put_voice_mixer),
  11712. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11713. MSM_BACKEND_DAI_USB_RX,
  11714. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11715. msm_routing_put_voice_mixer),
  11716. };
  11717. static const struct snd_kcontrol_new display_port_rx_voice_mixer_controls[] = {
  11718. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11719. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11720. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11721. msm_routing_put_voice_mixer),
  11722. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11723. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11724. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11725. msm_routing_put_voice_mixer),
  11726. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11727. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11728. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11729. msm_routing_put_voice_mixer),
  11730. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11731. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11732. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11733. msm_routing_put_voice_mixer),
  11734. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11735. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11736. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11737. msm_routing_put_voice_mixer),
  11738. };
  11739. static const struct snd_kcontrol_new display_port_rx1_voice_mixer_controls[] = {
  11740. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11741. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11742. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11743. msm_routing_put_voice_mixer),
  11744. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11745. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11746. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11747. msm_routing_put_voice_mixer),
  11748. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11749. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11750. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11751. msm_routing_put_voice_mixer),
  11752. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11753. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11754. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11755. msm_routing_put_voice_mixer),
  11756. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11757. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11758. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11759. msm_routing_put_voice_mixer),
  11760. };
  11761. static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
  11762. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11763. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11764. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11765. msm_routing_put_voice_mixer),
  11766. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11767. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11768. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11769. msm_routing_put_voice_mixer),
  11770. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11771. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11772. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11773. msm_routing_put_voice_mixer),
  11774. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11775. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11776. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11777. msm_routing_put_voice_mixer),
  11778. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11779. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11780. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11781. msm_routing_put_voice_mixer),
  11782. };
  11783. static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
  11784. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11785. MSM_BACKEND_DAI_MI2S_RX,
  11786. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11787. msm_routing_put_voice_mixer),
  11788. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11789. MSM_BACKEND_DAI_MI2S_RX,
  11790. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11791. msm_routing_put_voice_mixer),
  11792. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11793. MSM_BACKEND_DAI_MI2S_RX,
  11794. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11795. msm_routing_put_voice_mixer),
  11796. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11797. MSM_BACKEND_DAI_MI2S_RX,
  11798. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11799. msm_routing_put_voice_mixer),
  11800. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11801. MSM_BACKEND_DAI_MI2S_RX,
  11802. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11803. msm_routing_put_voice_mixer),
  11804. };
  11805. static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
  11806. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11807. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11808. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11809. msm_routing_put_voice_mixer),
  11810. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11811. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11812. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11813. msm_routing_put_voice_mixer),
  11814. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11815. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11816. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11817. msm_routing_put_voice_mixer),
  11818. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11819. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11820. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11821. msm_routing_put_voice_mixer),
  11822. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11823. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11824. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11825. msm_routing_put_voice_mixer),
  11826. };
  11827. static const struct snd_kcontrol_new int0_mi2s_rx_voice_mixer_controls[] = {
  11828. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11829. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11830. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11831. msm_routing_put_voice_mixer),
  11832. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11833. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11834. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11835. msm_routing_put_voice_mixer),
  11836. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11837. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11838. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11839. msm_routing_put_voice_mixer),
  11840. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11841. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11842. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11843. msm_routing_put_voice_mixer),
  11844. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11845. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11846. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11847. msm_routing_put_voice_mixer),
  11848. };
  11849. static const struct snd_kcontrol_new int4_mi2s_rx_voice_mixer_controls[] = {
  11850. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11851. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11852. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11853. msm_routing_put_voice_mixer),
  11854. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11855. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11856. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11857. msm_routing_put_voice_mixer),
  11858. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11859. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11860. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11861. msm_routing_put_voice_mixer),
  11862. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11863. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11864. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11865. msm_routing_put_voice_mixer),
  11866. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11867. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11868. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11869. msm_routing_put_voice_mixer),
  11870. };
  11871. static const struct snd_kcontrol_new tert_mi2s_rx_voice_mixer_controls[] = {
  11872. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11873. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  11874. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11875. msm_routing_put_voice_mixer),
  11876. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11877. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  11878. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11879. msm_routing_put_voice_mixer),
  11880. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11881. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  11882. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11883. msm_routing_put_voice_mixer),
  11884. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11885. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  11886. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11887. msm_routing_put_voice_mixer),
  11888. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11889. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  11890. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11891. msm_routing_put_voice_mixer),
  11892. };
  11893. static const struct snd_kcontrol_new quat_mi2s_rx_voice_mixer_controls[] = {
  11894. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11895. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11896. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11897. msm_routing_put_voice_mixer),
  11898. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11899. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11900. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11901. msm_routing_put_voice_mixer),
  11902. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11903. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11904. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11905. msm_routing_put_voice_mixer),
  11906. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11907. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11908. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11909. msm_routing_put_voice_mixer),
  11910. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11911. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11912. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11913. msm_routing_put_voice_mixer),
  11914. };
  11915. static const struct snd_kcontrol_new quin_mi2s_rx_voice_mixer_controls[] = {
  11916. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11917. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11918. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11919. msm_routing_put_voice_mixer),
  11920. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11921. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11922. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11923. msm_routing_put_voice_mixer),
  11924. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11925. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11926. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11927. msm_routing_put_voice_mixer),
  11928. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11929. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11930. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11931. msm_routing_put_voice_mixer),
  11932. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11933. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11934. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11935. msm_routing_put_voice_mixer),
  11936. };
  11937. static const struct snd_kcontrol_new afe_pcm_rx_voice_mixer_controls[] = {
  11938. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11939. MSM_BACKEND_DAI_AFE_PCM_RX,
  11940. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11941. msm_routing_put_voice_mixer),
  11942. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11943. MSM_BACKEND_DAI_AFE_PCM_RX,
  11944. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11945. msm_routing_put_voice_mixer),
  11946. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11947. MSM_BACKEND_DAI_AFE_PCM_RX,
  11948. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11949. msm_routing_put_voice_mixer),
  11950. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11951. MSM_BACKEND_DAI_AFE_PCM_RX,
  11952. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11953. msm_routing_put_voice_mixer),
  11954. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11955. MSM_BACKEND_DAI_AFE_PCM_RX,
  11956. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11957. msm_routing_put_voice_mixer),
  11958. };
  11959. static const struct snd_kcontrol_new aux_pcm_rx_voice_mixer_controls[] = {
  11960. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11961. MSM_BACKEND_DAI_AUXPCM_RX,
  11962. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11963. msm_routing_put_voice_mixer),
  11964. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11965. MSM_BACKEND_DAI_AUXPCM_RX,
  11966. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11967. msm_routing_put_voice_mixer),
  11968. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11969. MSM_BACKEND_DAI_AUXPCM_RX,
  11970. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11971. msm_routing_put_voice_mixer),
  11972. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11973. MSM_BACKEND_DAI_AUXPCM_RX,
  11974. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11975. msm_routing_put_voice_mixer),
  11976. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11977. MSM_BACKEND_DAI_AUXPCM_RX,
  11978. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11979. msm_routing_put_voice_mixer),
  11980. };
  11981. static const struct snd_kcontrol_new sec_aux_pcm_rx_voice_mixer_controls[] = {
  11982. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11983. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  11984. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11985. msm_routing_put_voice_mixer),
  11986. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11987. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  11988. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11989. msm_routing_put_voice_mixer),
  11990. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11991. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  11992. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11993. msm_routing_put_voice_mixer),
  11994. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11995. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  11996. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11997. msm_routing_put_voice_mixer),
  11998. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11999. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  12000. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12001. msm_routing_put_voice_mixer),
  12002. };
  12003. static const struct snd_kcontrol_new tert_aux_pcm_rx_voice_mixer_controls[] = {
  12004. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12005. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  12006. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12007. msm_routing_put_voice_mixer),
  12008. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12009. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  12010. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12011. msm_routing_put_voice_mixer),
  12012. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12013. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  12014. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12015. msm_routing_put_voice_mixer),
  12016. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12017. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  12018. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12019. msm_routing_put_voice_mixer),
  12020. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12021. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  12022. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12023. msm_routing_put_voice_mixer),
  12024. };
  12025. static const struct snd_kcontrol_new quat_aux_pcm_rx_voice_mixer_controls[] = {
  12026. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12027. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  12028. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12029. msm_routing_put_voice_mixer),
  12030. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12031. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  12032. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12033. msm_routing_put_voice_mixer),
  12034. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12035. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  12036. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12037. msm_routing_put_voice_mixer),
  12038. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12039. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  12040. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12041. msm_routing_put_voice_mixer),
  12042. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12043. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  12044. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12045. msm_routing_put_voice_mixer),
  12046. };
  12047. static const struct snd_kcontrol_new quin_aux_pcm_rx_voice_mixer_controls[] = {
  12048. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12049. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  12050. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12051. msm_routing_put_voice_mixer),
  12052. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12053. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  12054. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12055. msm_routing_put_voice_mixer),
  12056. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12057. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  12058. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12059. msm_routing_put_voice_mixer),
  12060. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12061. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  12062. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12063. msm_routing_put_voice_mixer),
  12064. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12065. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  12066. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12067. msm_routing_put_voice_mixer),
  12068. };
  12069. static const struct snd_kcontrol_new hdmi_rx_voice_mixer_controls[] = {
  12070. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12071. MSM_BACKEND_DAI_HDMI_RX,
  12072. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12073. msm_routing_put_voice_mixer),
  12074. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12075. MSM_BACKEND_DAI_HDMI_RX,
  12076. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12077. msm_routing_put_voice_mixer),
  12078. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12079. MSM_BACKEND_DAI_HDMI_RX,
  12080. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12081. msm_routing_put_voice_mixer),
  12082. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12083. MSM_BACKEND_DAI_HDMI_RX,
  12084. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12085. msm_routing_put_voice_mixer),
  12086. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12087. MSM_BACKEND_DAI_HDMI_RX,
  12088. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12089. msm_routing_put_voice_mixer),
  12090. };
  12091. static const struct snd_kcontrol_new slimbus_7_rx_voice_mixer_controls[] = {
  12092. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12093. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  12094. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12095. msm_routing_put_voice_mixer),
  12096. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12097. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  12098. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12099. msm_routing_put_voice_mixer),
  12100. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12101. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  12102. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12103. msm_routing_put_voice_mixer),
  12104. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12105. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  12106. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12107. msm_routing_put_voice_mixer),
  12108. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12109. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  12110. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12111. msm_routing_put_voice_mixer),
  12112. };
  12113. static const struct snd_kcontrol_new slimbus_8_rx_voice_mixer_controls[] = {
  12114. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12115. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  12116. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12117. msm_routing_put_voice_mixer),
  12118. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12119. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  12120. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12121. msm_routing_put_voice_mixer),
  12122. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12123. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  12124. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12125. msm_routing_put_voice_mixer),
  12126. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12127. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  12128. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12129. msm_routing_put_voice_mixer),
  12130. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12131. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  12132. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12133. msm_routing_put_voice_mixer),
  12134. };
  12135. static const struct snd_kcontrol_new quat_tdm_rx_2_voice_mixer_controls[] = {
  12136. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12137. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12138. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12139. msm_routing_put_voice_mixer),
  12140. };
  12141. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_voice_mixer_controls[] = {
  12142. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12143. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  12144. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12145. msm_routing_put_voice_mixer),
  12146. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12147. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  12148. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12149. msm_routing_put_voice_mixer),
  12150. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12151. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  12152. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12153. msm_routing_put_voice_mixer),
  12154. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12155. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  12156. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12157. msm_routing_put_voice_mixer),
  12158. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12159. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  12160. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12161. msm_routing_put_voice_mixer),
  12162. };
  12163. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_voice_mixer_controls[] = {
  12164. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12165. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  12166. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12167. msm_routing_put_voice_mixer),
  12168. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12169. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  12170. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12171. msm_routing_put_voice_mixer),
  12172. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12173. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  12174. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12175. msm_routing_put_voice_mixer),
  12176. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12177. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  12178. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12179. msm_routing_put_voice_mixer),
  12180. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12181. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  12182. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12183. msm_routing_put_voice_mixer),
  12184. };
  12185. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_voice_mixer_controls[] = {
  12186. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12187. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  12188. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12189. msm_routing_put_voice_mixer),
  12190. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12191. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  12192. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12193. msm_routing_put_voice_mixer),
  12194. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12195. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  12196. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12197. msm_routing_put_voice_mixer),
  12198. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12199. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  12200. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12201. msm_routing_put_voice_mixer),
  12202. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12203. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  12204. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12205. msm_routing_put_voice_mixer),
  12206. };
  12207. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_voice_mixer_controls[] = {
  12208. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12209. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  12210. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12211. msm_routing_put_voice_mixer),
  12212. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12213. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  12214. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12215. msm_routing_put_voice_mixer),
  12216. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12217. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  12218. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12219. msm_routing_put_voice_mixer),
  12220. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12221. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  12222. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12223. msm_routing_put_voice_mixer),
  12224. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12225. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  12226. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12227. msm_routing_put_voice_mixer),
  12228. };
  12229. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_voice_mixer_controls[] = {
  12230. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12231. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  12232. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12233. msm_routing_put_voice_mixer),
  12234. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12235. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  12236. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12237. msm_routing_put_voice_mixer),
  12238. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12239. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  12240. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12241. msm_routing_put_voice_mixer),
  12242. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12243. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  12244. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12245. msm_routing_put_voice_mixer),
  12246. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12247. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  12248. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12249. msm_routing_put_voice_mixer),
  12250. };
  12251. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_voice_mixer_controls[] = {
  12252. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12253. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  12254. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12255. msm_routing_put_voice_mixer),
  12256. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12257. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  12258. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12259. msm_routing_put_voice_mixer),
  12260. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12261. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  12262. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12263. msm_routing_put_voice_mixer),
  12264. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12265. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  12266. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12267. msm_routing_put_voice_mixer),
  12268. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12269. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  12270. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12271. msm_routing_put_voice_mixer),
  12272. };
  12273. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_voice_mixer_controls[] = {
  12274. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12275. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  12276. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12277. msm_routing_put_voice_mixer),
  12278. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12279. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  12280. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12281. msm_routing_put_voice_mixer),
  12282. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12283. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  12284. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12285. msm_routing_put_voice_mixer),
  12286. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12287. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  12288. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12289. msm_routing_put_voice_mixer),
  12290. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12291. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  12292. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12293. msm_routing_put_voice_mixer),
  12294. };
  12295. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_voice_mixer_controls[] = {
  12296. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12297. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  12298. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12299. msm_routing_put_voice_mixer),
  12300. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12301. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  12302. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12303. msm_routing_put_voice_mixer),
  12304. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12305. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  12306. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12307. msm_routing_put_voice_mixer),
  12308. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12309. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  12310. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12311. msm_routing_put_voice_mixer),
  12312. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12313. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  12314. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12315. msm_routing_put_voice_mixer),
  12316. };
  12317. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_voice_mixer_controls[] = {
  12318. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12319. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  12320. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12321. msm_routing_put_voice_mixer),
  12322. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12323. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  12324. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12325. msm_routing_put_voice_mixer),
  12326. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12327. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  12328. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12329. msm_routing_put_voice_mixer),
  12330. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12331. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  12332. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12333. msm_routing_put_voice_mixer),
  12334. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12335. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  12336. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12337. msm_routing_put_voice_mixer),
  12338. };
  12339. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_voice_mixer_controls[] = {
  12340. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12341. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  12342. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12343. msm_routing_put_voice_mixer),
  12344. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12345. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  12346. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12347. msm_routing_put_voice_mixer),
  12348. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12349. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  12350. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12351. msm_routing_put_voice_mixer),
  12352. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12353. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  12354. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12355. msm_routing_put_voice_mixer),
  12356. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12357. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  12358. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12359. msm_routing_put_voice_mixer),
  12360. };
  12361. static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
  12362. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12363. MSM_BACKEND_DAI_EXTPROC_RX,
  12364. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12365. msm_routing_put_voice_mixer),
  12366. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12367. MSM_BACKEND_DAI_EXTPROC_RX,
  12368. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12369. msm_routing_put_voice_mixer),
  12370. };
  12371. static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
  12372. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12373. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  12374. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12375. msm_routing_put_voice_mixer),
  12376. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12377. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  12378. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12379. msm_routing_put_voice_mixer),
  12380. };
  12381. static const struct snd_kcontrol_new slimbus_3_rx_mixer_controls[] = {
  12382. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12383. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  12384. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12385. msm_routing_put_voice_mixer),
  12386. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12387. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  12388. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12389. msm_routing_put_voice_mixer),
  12390. };
  12391. static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
  12392. SOC_DOUBLE_EXT("PRI_TX_MMode1", SND_SOC_NOPM,
  12393. MSM_BACKEND_DAI_PRI_I2S_TX,
  12394. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12395. msm_routing_put_voice_mixer),
  12396. SOC_DOUBLE_EXT("MI2S_TX_MMode1", SND_SOC_NOPM,
  12397. MSM_BACKEND_DAI_MI2S_TX,
  12398. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12399. msm_routing_put_voice_mixer),
  12400. SOC_DOUBLE_EXT("SLIM_0_TX_MMode1", SND_SOC_NOPM,
  12401. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12402. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12403. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode1", SND_SOC_NOPM,
  12404. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12405. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12406. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode1", SND_SOC_NOPM,
  12407. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  12408. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12409. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  12410. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  12411. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12412. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  12413. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12414. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12415. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  12416. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12417. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12418. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  12419. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12420. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12421. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  12422. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12423. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12424. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode1", SND_SOC_NOPM,
  12425. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  12426. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12427. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode1", SND_SOC_NOPM,
  12428. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  12429. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12430. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode1", SND_SOC_NOPM,
  12431. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  12432. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12433. SOC_DOUBLE_EXT("SLIM_7_TX_MMode1", SND_SOC_NOPM,
  12434. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12435. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12436. SOC_DOUBLE_EXT("SLIM_8_TX_MMode1", SND_SOC_NOPM,
  12437. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12438. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12439. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode1", SND_SOC_NOPM,
  12440. MSM_BACKEND_DAI_USB_TX,
  12441. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12442. msm_routing_put_voice_mixer),
  12443. SOC_DOUBLE_EXT("QUAT_TDM_TX_0_MMode1", SND_SOC_NOPM,
  12444. MSM_BACKEND_DAI_QUAT_TDM_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  12445. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12446. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  12447. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  12448. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12449. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  12450. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  12451. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12452. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  12453. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  12454. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12455. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  12456. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  12457. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12458. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  12459. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  12460. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12461. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode1", SND_SOC_NOPM,
  12462. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  12463. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12464. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode1", SND_SOC_NOPM,
  12465. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE1,
  12466. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12467. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode1", SND_SOC_NOPM,
  12468. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE1,
  12469. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12470. };
  12471. static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
  12472. SOC_DOUBLE_EXT("PRI_TX_MMode2", SND_SOC_NOPM,
  12473. MSM_BACKEND_DAI_PRI_I2S_TX,
  12474. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12475. msm_routing_put_voice_mixer),
  12476. SOC_DOUBLE_EXT("MI2S_TX_MMode2", SND_SOC_NOPM,
  12477. MSM_BACKEND_DAI_MI2S_TX,
  12478. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12479. msm_routing_put_voice_mixer),
  12480. SOC_DOUBLE_EXT("SLIM_0_TX_MMode2", SND_SOC_NOPM,
  12481. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12482. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12483. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode2", SND_SOC_NOPM,
  12484. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12485. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12486. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode2", SND_SOC_NOPM,
  12487. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  12488. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12489. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  12490. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  12491. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12492. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  12493. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12494. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12495. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  12496. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12497. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12498. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  12499. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12500. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12501. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  12502. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12503. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12504. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode2", SND_SOC_NOPM,
  12505. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  12506. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12507. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode2", SND_SOC_NOPM,
  12508. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  12509. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12510. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode2", SND_SOC_NOPM,
  12511. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  12512. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12513. SOC_DOUBLE_EXT("SLIM_7_TX_MMode2", SND_SOC_NOPM,
  12514. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12515. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12516. SOC_DOUBLE_EXT("SLIM_8_TX_MMode2", SND_SOC_NOPM,
  12517. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12518. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12519. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode2", SND_SOC_NOPM,
  12520. MSM_BACKEND_DAI_USB_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12521. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12522. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  12523. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  12524. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12525. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  12526. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  12527. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12528. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  12529. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  12530. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12531. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  12532. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  12533. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12534. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  12535. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  12536. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12537. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode2", SND_SOC_NOPM,
  12538. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  12539. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12540. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode2", SND_SOC_NOPM,
  12541. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE2,
  12542. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12543. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode2", SND_SOC_NOPM,
  12544. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE2,
  12545. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12546. };
  12547. static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
  12548. SOC_DOUBLE_EXT("PRI_TX_Voip", SND_SOC_NOPM,
  12549. MSM_BACKEND_DAI_PRI_I2S_TX,
  12550. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12551. msm_routing_put_voice_mixer),
  12552. SOC_DOUBLE_EXT("MI2S_TX_Voip", SND_SOC_NOPM,
  12553. MSM_BACKEND_DAI_MI2S_TX,
  12554. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12555. msm_routing_put_voice_mixer),
  12556. SOC_DOUBLE_EXT("SLIM_0_TX_Voip", SND_SOC_NOPM,
  12557. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12558. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12559. msm_routing_put_voice_mixer),
  12560. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_Voip", SND_SOC_NOPM,
  12561. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12562. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12563. msm_routing_put_voice_mixer),
  12564. SOC_DOUBLE_EXT("AFE_PCM_TX_Voip", SND_SOC_NOPM,
  12565. MSM_BACKEND_DAI_AFE_PCM_TX,
  12566. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12567. msm_routing_put_voice_mixer),
  12568. SOC_DOUBLE_EXT("AUX_PCM_TX_Voip", SND_SOC_NOPM,
  12569. MSM_BACKEND_DAI_AUXPCM_TX,
  12570. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12571. msm_routing_put_voice_mixer),
  12572. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  12573. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12574. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12575. msm_routing_put_voice_mixer),
  12576. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  12577. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12578. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12579. msm_routing_put_voice_mixer),
  12580. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  12581. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12582. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12583. msm_routing_put_voice_mixer),
  12584. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  12585. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12586. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12587. msm_routing_put_voice_mixer),
  12588. SOC_DOUBLE_EXT("PRI_MI2S_TX_Voip", SND_SOC_NOPM,
  12589. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12590. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12591. msm_routing_put_voice_mixer),
  12592. SOC_DOUBLE_EXT("TERT_MI2S_TX_Voip", SND_SOC_NOPM,
  12593. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12594. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12595. msm_routing_put_voice_mixer),
  12596. SOC_DOUBLE_EXT("INT3_MI2S_TX_Voip", SND_SOC_NOPM,
  12597. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12598. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12599. msm_routing_put_voice_mixer),
  12600. SOC_DOUBLE_EXT("SLIM_7_TX_Voip", SND_SOC_NOPM,
  12601. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12602. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12603. msm_routing_put_voice_mixer),
  12604. SOC_DOUBLE_EXT("SLIM_8_TX_Voip", SND_SOC_NOPM,
  12605. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12606. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12607. msm_routing_put_voice_mixer),
  12608. SOC_DOUBLE_EXT("USB_AUDIO_TX_Voip", SND_SOC_NOPM,
  12609. MSM_BACKEND_DAI_USB_TX,
  12610. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12611. msm_routing_put_voice_mixer),
  12612. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  12613. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  12614. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12615. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  12616. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  12617. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12618. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  12619. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  12620. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12621. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  12622. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  12623. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12624. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  12625. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  12626. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12627. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_Voip", SND_SOC_NOPM,
  12628. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOIP,
  12629. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12630. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_Voip", SND_SOC_NOPM,
  12631. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOIP,
  12632. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12633. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_Voip", SND_SOC_NOPM,
  12634. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOIP,
  12635. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12636. };
  12637. static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
  12638. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  12639. MSM_BACKEND_DAI_EXTPROC_TX,
  12640. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12641. msm_routing_put_voice_stub_mixer),
  12642. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12643. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12644. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12645. msm_routing_put_voice_stub_mixer),
  12646. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12647. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12648. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12649. msm_routing_put_voice_stub_mixer),
  12650. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  12651. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  12652. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12653. msm_routing_put_voice_stub_mixer),
  12654. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12655. MSM_BACKEND_DAI_MI2S_TX,
  12656. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12657. msm_routing_put_voice_stub_mixer),
  12658. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12659. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12660. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12661. msm_routing_put_voice_stub_mixer),
  12662. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12663. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12664. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12665. msm_routing_put_voice_stub_mixer),
  12666. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12667. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12668. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12669. msm_routing_put_voice_stub_mixer),
  12670. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12671. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12672. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12673. msm_routing_put_voice_stub_mixer),
  12674. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12675. MSM_BACKEND_DAI_AUXPCM_TX,
  12676. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12677. msm_routing_put_voice_stub_mixer),
  12678. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12679. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12680. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12681. msm_routing_put_voice_stub_mixer),
  12682. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12683. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12684. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12685. msm_routing_put_voice_stub_mixer),
  12686. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12687. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12688. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12689. msm_routing_put_voice_stub_mixer),
  12690. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  12691. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12692. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12693. msm_routing_put_voice_stub_mixer),
  12694. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12695. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12696. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12697. msm_routing_put_voice_stub_mixer),
  12698. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  12699. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  12700. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12701. msm_routing_put_voice_stub_mixer),
  12702. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12703. MSM_BACKEND_DAI_AFE_PCM_TX,
  12704. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12705. msm_routing_put_voice_stub_mixer),
  12706. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12707. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12708. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12709. msm_routing_put_voice_stub_mixer),
  12710. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12711. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12712. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12713. msm_routing_put_voice_stub_mixer),
  12714. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12715. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  12716. 1, 0, msm_routing_get_voice_stub_mixer,
  12717. msm_routing_put_voice_stub_mixer),
  12718. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12719. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  12720. 1, 0, msm_routing_get_voice_stub_mixer,
  12721. msm_routing_put_voice_stub_mixer),
  12722. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12723. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  12724. 1, 0, msm_routing_get_voice_stub_mixer,
  12725. msm_routing_put_voice_stub_mixer),
  12726. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12727. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  12728. 1, 0, msm_routing_get_voice_stub_mixer,
  12729. msm_routing_put_voice_stub_mixer),
  12730. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12731. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  12732. 1, 0, msm_routing_get_voice_stub_mixer,
  12733. msm_routing_put_voice_stub_mixer),
  12734. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12735. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE_STUB,
  12736. 1, 0, msm_routing_get_voice_stub_mixer,
  12737. msm_routing_put_voice_stub_mixer),
  12738. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12739. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE_STUB,
  12740. 1, 0, msm_routing_get_voice_stub_mixer,
  12741. msm_routing_put_voice_stub_mixer),
  12742. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12743. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE_STUB,
  12744. 1, 0, msm_routing_get_voice_stub_mixer,
  12745. msm_routing_put_voice_stub_mixer),
  12746. };
  12747. static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
  12748. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  12749. MSM_BACKEND_DAI_EXTPROC_TX,
  12750. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12751. msm_routing_put_voice_stub_mixer),
  12752. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12753. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12754. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12755. msm_routing_put_voice_stub_mixer),
  12756. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  12757. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  12758. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12759. msm_routing_put_voice_stub_mixer),
  12760. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12761. MSM_BACKEND_DAI_AUXPCM_TX,
  12762. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12763. msm_routing_put_voice_stub_mixer),
  12764. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12765. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12766. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12767. msm_routing_put_voice_stub_mixer),
  12768. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12769. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12770. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12771. msm_routing_put_voice_stub_mixer),
  12772. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12773. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12774. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12775. msm_routing_put_voice_stub_mixer),
  12776. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  12777. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12778. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12779. msm_routing_put_voice_stub_mixer),
  12780. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12781. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12782. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12783. msm_routing_put_voice_stub_mixer),
  12784. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  12785. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  12786. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12787. msm_routing_put_voice_stub_mixer),
  12788. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12789. MSM_BACKEND_DAI_AFE_PCM_TX,
  12790. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12791. msm_routing_put_voice_stub_mixer),
  12792. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12793. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12794. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12795. msm_routing_put_voice_stub_mixer),
  12796. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12797. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12798. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12799. msm_routing_put_voice_stub_mixer),
  12800. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12801. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12802. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12803. msm_routing_put_voice_stub_mixer),
  12804. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12805. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12806. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12807. msm_routing_put_voice_stub_mixer),
  12808. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12809. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  12810. 1, 0, msm_routing_get_voice_stub_mixer,
  12811. msm_routing_put_voice_stub_mixer),
  12812. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12813. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  12814. 1, 0, msm_routing_get_voice_stub_mixer,
  12815. msm_routing_put_voice_stub_mixer),
  12816. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12817. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  12818. 1, 0, msm_routing_get_voice_stub_mixer,
  12819. msm_routing_put_voice_stub_mixer),
  12820. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12821. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  12822. 1, 0, msm_routing_get_voice_stub_mixer,
  12823. msm_routing_put_voice_stub_mixer),
  12824. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12825. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  12826. 1, 0, msm_routing_get_voice_stub_mixer,
  12827. msm_routing_put_voice_stub_mixer),
  12828. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12829. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE2_STUB,
  12830. 1, 0, msm_routing_get_voice_stub_mixer,
  12831. msm_routing_put_voice_stub_mixer),
  12832. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12833. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE2_STUB,
  12834. 1, 0, msm_routing_get_voice_stub_mixer,
  12835. msm_routing_put_voice_stub_mixer),
  12836. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12837. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE2_STUB,
  12838. 1, 0, msm_routing_get_voice_stub_mixer,
  12839. msm_routing_put_voice_stub_mixer),
  12840. };
  12841. static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
  12842. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  12843. MSM_BACKEND_DAI_EXTPROC_TX,
  12844. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12845. msm_routing_put_voice_stub_mixer),
  12846. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12847. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12848. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12849. msm_routing_put_voice_stub_mixer),
  12850. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  12851. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  12852. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12853. msm_routing_put_voice_stub_mixer),
  12854. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12855. MSM_BACKEND_DAI_AUXPCM_TX,
  12856. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12857. msm_routing_put_voice_stub_mixer),
  12858. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12859. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12860. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12861. msm_routing_put_voice_stub_mixer),
  12862. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12863. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12864. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12865. msm_routing_put_voice_stub_mixer),
  12866. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12867. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12868. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12869. msm_routing_put_voice_stub_mixer),
  12870. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  12871. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12872. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12873. msm_routing_put_voice_stub_mixer),
  12874. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12875. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12876. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12877. msm_routing_put_voice_stub_mixer),
  12878. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  12879. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  12880. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12881. msm_routing_put_voice_stub_mixer),
  12882. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12883. MSM_BACKEND_DAI_AFE_PCM_TX,
  12884. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12885. msm_routing_put_voice_stub_mixer),
  12886. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12887. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12888. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12889. msm_routing_put_voice_stub_mixer),
  12890. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12891. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12892. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12893. msm_routing_put_voice_stub_mixer),
  12894. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12895. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12896. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12897. msm_routing_put_voice_stub_mixer),
  12898. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12899. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12900. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12901. msm_routing_put_voice_stub_mixer),
  12902. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12903. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  12904. 1, 0, msm_routing_get_voice_stub_mixer,
  12905. msm_routing_put_voice_stub_mixer),
  12906. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12907. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  12908. 1, 0, msm_routing_get_voice_stub_mixer,
  12909. msm_routing_put_voice_stub_mixer),
  12910. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12911. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  12912. 1, 0, msm_routing_get_voice_stub_mixer,
  12913. msm_routing_put_voice_stub_mixer),
  12914. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12915. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  12916. 1, 0, msm_routing_get_voice_stub_mixer,
  12917. msm_routing_put_voice_stub_mixer),
  12918. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12919. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  12920. 1, 0, msm_routing_get_voice_stub_mixer,
  12921. msm_routing_put_voice_stub_mixer),
  12922. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12923. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOLTE_STUB,
  12924. 1, 0, msm_routing_get_voice_stub_mixer,
  12925. msm_routing_put_voice_stub_mixer),
  12926. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12927. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOLTE_STUB,
  12928. 1, 0, msm_routing_get_voice_stub_mixer,
  12929. msm_routing_put_voice_stub_mixer),
  12930. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12931. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOLTE_STUB,
  12932. 1, 0, msm_routing_get_voice_stub_mixer,
  12933. msm_routing_put_voice_stub_mixer),
  12934. };
  12935. static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
  12936. SOC_DOUBLE_EXT("PRI_TX_QCHAT", SND_SOC_NOPM,
  12937. MSM_BACKEND_DAI_PRI_I2S_TX,
  12938. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12939. msm_routing_put_voice_mixer),
  12940. SOC_DOUBLE_EXT("SLIM_0_TX_QCHAT", SND_SOC_NOPM,
  12941. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12942. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12943. msm_routing_put_voice_mixer),
  12944. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_QCHAT", SND_SOC_NOPM,
  12945. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12946. MSM_FRONTEND_DAI_QCHAT, 1, 0,
  12947. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12948. SOC_DOUBLE_EXT("AFE_PCM_TX_QCHAT", SND_SOC_NOPM,
  12949. MSM_BACKEND_DAI_AFE_PCM_TX,
  12950. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12951. msm_routing_put_voice_mixer),
  12952. SOC_DOUBLE_EXT("AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  12953. MSM_BACKEND_DAI_AUXPCM_TX,
  12954. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12955. msm_routing_put_voice_mixer),
  12956. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  12957. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12958. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12959. msm_routing_put_voice_mixer),
  12960. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  12961. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12962. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12963. msm_routing_put_voice_mixer),
  12964. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  12965. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12966. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12967. msm_routing_put_voice_mixer),
  12968. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  12969. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12970. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12971. msm_routing_put_voice_mixer),
  12972. SOC_DOUBLE_EXT("MI2S_TX_QCHAT", SND_SOC_NOPM,
  12973. MSM_BACKEND_DAI_MI2S_TX,
  12974. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12975. msm_routing_put_voice_mixer),
  12976. SOC_DOUBLE_EXT("PRI_MI2S_TX_QCHAT", SND_SOC_NOPM,
  12977. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12978. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12979. msm_routing_put_voice_mixer),
  12980. SOC_DOUBLE_EXT("TERT_MI2S_TX_QCHAT", SND_SOC_NOPM,
  12981. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12982. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12983. msm_routing_put_voice_mixer),
  12984. SOC_DOUBLE_EXT("INT3_MI2S_TX_QCHAT", SND_SOC_NOPM,
  12985. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12986. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12987. msm_routing_put_voice_mixer),
  12988. SOC_DOUBLE_EXT("SLIM_7_TX_QCHAT", SND_SOC_NOPM,
  12989. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12990. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12991. msm_routing_put_voice_mixer),
  12992. SOC_DOUBLE_EXT("SLIM_8_TX_QCHAT", SND_SOC_NOPM,
  12993. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12994. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12995. msm_routing_put_voice_mixer),
  12996. SOC_DOUBLE_EXT("USB_AUDIO_TX_QCHAT", SND_SOC_NOPM,
  12997. MSM_BACKEND_DAI_USB_TX,
  12998. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12999. msm_routing_put_voice_mixer),
  13000. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  13001. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  13002. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13003. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  13004. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  13005. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13006. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  13007. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  13008. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13009. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  13010. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  13011. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13012. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  13013. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  13014. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13015. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_QCHAT", SND_SOC_NOPM,
  13016. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_QCHAT,
  13017. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13018. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_QCHAT", SND_SOC_NOPM,
  13019. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_QCHAT,
  13020. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13021. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_QCHAT", SND_SOC_NOPM,
  13022. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_QCHAT,
  13023. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13024. };
  13025. static const struct snd_kcontrol_new int0_mi2s_rx_port_mixer_controls[] = {
  13026. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13027. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13028. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13029. msm_routing_put_port_mixer),
  13030. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13031. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13032. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13033. msm_routing_put_port_mixer),
  13034. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13035. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13036. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13037. msm_routing_put_port_mixer),
  13038. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13039. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13040. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13041. msm_routing_put_port_mixer),
  13042. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13043. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13044. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13045. msm_routing_put_port_mixer),
  13046. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13047. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13048. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13049. msm_routing_put_port_mixer),
  13050. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13051. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13052. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13053. msm_routing_put_port_mixer),
  13054. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13055. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13056. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  13057. msm_routing_put_port_mixer),
  13058. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13059. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13060. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  13061. msm_routing_put_port_mixer),
  13062. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13063. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13064. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13065. msm_routing_put_port_mixer),
  13066. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13067. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13068. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  13069. msm_routing_put_port_mixer),
  13070. };
  13071. static const struct snd_kcontrol_new int4_mi2s_rx_port_mixer_controls[] = {
  13072. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13073. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13074. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13075. msm_routing_put_port_mixer),
  13076. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13077. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13078. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13079. msm_routing_put_port_mixer),
  13080. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13081. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13082. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13083. msm_routing_put_port_mixer),
  13084. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13085. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13086. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13087. msm_routing_put_port_mixer),
  13088. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13089. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13090. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13091. msm_routing_put_port_mixer),
  13092. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13093. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13094. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13095. msm_routing_put_port_mixer),
  13096. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13097. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13098. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13099. msm_routing_put_port_mixer),
  13100. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13101. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13102. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  13103. msm_routing_put_port_mixer),
  13104. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13105. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13106. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  13107. msm_routing_put_port_mixer),
  13108. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13109. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13110. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13111. msm_routing_put_port_mixer),
  13112. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13113. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13114. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  13115. msm_routing_put_port_mixer),
  13116. };
  13117. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_port_mixer_controls[] = {
  13118. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13119. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  13120. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, 1, 0, msm_routing_get_port_mixer,
  13121. msm_routing_put_port_mixer),
  13122. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13123. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  13124. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  13125. msm_routing_put_port_mixer),
  13126. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13127. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  13128. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13129. msm_routing_put_port_mixer),
  13130. };
  13131. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_port_mixer_controls[] = {
  13132. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13133. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  13134. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  13135. msm_routing_put_port_mixer),
  13136. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13137. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  13138. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13139. msm_routing_put_port_mixer),
  13140. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13141. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13142. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  13143. msm_routing_put_port_mixer),
  13144. };
  13145. static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
  13146. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13147. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13148. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13149. msm_routing_put_port_mixer),
  13150. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13151. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13152. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13153. msm_routing_put_port_mixer),
  13154. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13155. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13156. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  13157. msm_routing_put_port_mixer),
  13158. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13159. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13160. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  13161. msm_routing_put_port_mixer),
  13162. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13163. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13164. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13165. msm_routing_put_port_mixer),
  13166. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13167. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13168. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13169. msm_routing_put_port_mixer),
  13170. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13171. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13172. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13173. msm_routing_put_port_mixer),
  13174. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13175. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13176. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13177. msm_routing_put_port_mixer),
  13178. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13179. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13180. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13181. msm_routing_put_port_mixer),
  13182. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  13183. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13184. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13185. msm_routing_put_port_mixer),
  13186. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13187. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13188. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13189. msm_routing_put_port_mixer),
  13190. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13191. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13192. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13193. msm_routing_put_port_mixer),
  13194. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13195. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13196. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13197. msm_routing_put_port_mixer),
  13198. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13199. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13200. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13201. msm_routing_put_port_mixer),
  13202. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13203. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13204. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13205. msm_routing_put_port_mixer),
  13206. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13207. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13208. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13209. msm_routing_put_port_mixer),
  13210. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13211. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13212. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  13213. msm_routing_put_port_mixer),
  13214. SOC_DOUBLE_EXT("PRI_MI2S_RX", SND_SOC_NOPM,
  13215. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13216. MSM_BACKEND_DAI_PRI_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  13217. msm_routing_put_port_mixer),
  13218. SOC_DOUBLE_EXT("SEC_MI2S_RX", SND_SOC_NOPM,
  13219. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13220. MSM_BACKEND_DAI_SECONDARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  13221. msm_routing_put_port_mixer),
  13222. SOC_DOUBLE_EXT("TERT_MI2S_RX", SND_SOC_NOPM,
  13223. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13224. MSM_BACKEND_DAI_TERTIARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  13225. msm_routing_put_port_mixer),
  13226. SOC_DOUBLE_EXT("QUAT_MI2S_RX", SND_SOC_NOPM,
  13227. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13228. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  13229. msm_routing_put_port_mixer),
  13230. SOC_DOUBLE_EXT("QUIN_MI2S_RX", SND_SOC_NOPM,
  13231. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13232. MSM_BACKEND_DAI_QUINARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  13233. msm_routing_put_port_mixer),
  13234. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13235. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13236. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  13237. msm_routing_put_port_mixer),
  13238. };
  13239. static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
  13240. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13241. MSM_BACKEND_DAI_AUXPCM_RX,
  13242. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13243. msm_routing_put_port_mixer),
  13244. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13245. MSM_BACKEND_DAI_AUXPCM_RX,
  13246. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13247. msm_routing_put_port_mixer),
  13248. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13249. MSM_BACKEND_DAI_AUXPCM_RX,
  13250. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  13251. msm_routing_put_port_mixer),
  13252. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13253. MSM_BACKEND_DAI_AUXPCM_RX,
  13254. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13255. msm_routing_put_port_mixer),
  13256. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13257. MSM_BACKEND_DAI_AUXPCM_RX,
  13258. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  13259. msm_routing_put_port_mixer),
  13260. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13261. MSM_BACKEND_DAI_AUXPCM_RX,
  13262. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13263. msm_routing_put_port_mixer),
  13264. };
  13265. static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
  13266. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13267. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  13268. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13269. msm_routing_put_port_mixer),
  13270. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13271. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  13272. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13273. msm_routing_put_port_mixer),
  13274. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13275. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  13276. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13277. msm_routing_put_port_mixer),
  13278. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13279. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  13280. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13281. msm_routing_put_port_mixer),
  13282. };
  13283. static const struct snd_kcontrol_new tert_auxpcm_rx_port_mixer_controls[] = {
  13284. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13285. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  13286. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13287. msm_routing_put_port_mixer),
  13288. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13289. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  13290. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13291. msm_routing_put_port_mixer),
  13292. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13293. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  13294. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13295. msm_routing_put_port_mixer),
  13296. };
  13297. static const struct snd_kcontrol_new quat_auxpcm_rx_port_mixer_controls[] = {
  13298. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13299. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  13300. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13301. msm_routing_put_port_mixer),
  13302. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13303. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  13304. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13305. msm_routing_put_port_mixer),
  13306. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13307. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  13308. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13309. msm_routing_put_port_mixer),
  13310. };
  13311. static const struct snd_kcontrol_new quin_auxpcm_rx_port_mixer_controls[] = {
  13312. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  13313. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  13314. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13315. msm_routing_put_port_mixer),
  13316. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13317. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  13318. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13319. msm_routing_put_port_mixer),
  13320. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13321. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  13322. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13323. msm_routing_put_port_mixer),
  13324. };
  13325. static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
  13326. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13327. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13328. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  13329. msm_routing_put_port_mixer),
  13330. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13331. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13332. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
  13333. msm_routing_put_port_mixer),
  13334. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13335. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13336. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13337. msm_routing_put_port_mixer),
  13338. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13339. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13340. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13341. msm_routing_put_port_mixer),
  13342. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13343. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13344. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13345. msm_routing_put_port_mixer),
  13346. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13347. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13348. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13349. msm_routing_put_port_mixer),
  13350. };
  13351. static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
  13352. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_RX", SND_SOC_NOPM,
  13353. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  13354. MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
  13355. msm_routing_put_port_mixer),
  13356. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13357. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  13358. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13359. msm_routing_put_port_mixer),
  13360. SOC_DOUBLE_EXT("AFE_PCM_RX", SND_SOC_NOPM,
  13361. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  13362. MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
  13363. msm_routing_put_port_mixer),
  13364. SOC_DOUBLE_EXT("AUX_PCM_RX", SND_SOC_NOPM,
  13365. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  13366. MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
  13367. msm_routing_put_port_mixer),
  13368. SOC_DOUBLE_EXT("SLIM_0_RX", SND_SOC_NOPM,
  13369. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  13370. MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
  13371. msm_routing_put_port_mixer),
  13372. };
  13373. static const struct snd_kcontrol_new sbus_6_rx_port_mixer_controls[] = {
  13374. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13375. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13376. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13377. msm_routing_put_port_mixer),
  13378. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13379. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13380. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13381. msm_routing_put_port_mixer),
  13382. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13383. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13384. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  13385. msm_routing_put_port_mixer),
  13386. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13387. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13388. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  13389. msm_routing_put_port_mixer),
  13390. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13391. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13392. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13393. msm_routing_put_port_mixer),
  13394. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13395. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13396. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13397. msm_routing_put_port_mixer),
  13398. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13399. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13400. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13401. msm_routing_put_port_mixer),
  13402. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13403. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13404. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13405. msm_routing_put_port_mixer),
  13406. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13407. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13408. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13409. msm_routing_put_port_mixer),
  13410. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13411. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13412. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13413. msm_routing_put_port_mixer),
  13414. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13415. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13416. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13417. msm_routing_put_port_mixer),
  13418. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13419. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13420. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  13421. msm_routing_put_port_mixer),
  13422. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13423. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13424. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  13425. msm_routing_put_port_mixer),
  13426. };
  13427. static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
  13428. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13429. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  13430. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  13431. msm_routing_put_port_mixer),
  13432. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13433. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  13434. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13435. msm_routing_put_port_mixer),
  13436. };
  13437. static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
  13438. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13439. MSM_BACKEND_DAI_AFE_PCM_RX,
  13440. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13441. msm_routing_put_port_mixer),
  13442. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13443. MSM_BACKEND_DAI_AFE_PCM_RX,
  13444. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  13445. msm_routing_put_port_mixer),
  13446. };
  13447. static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
  13448. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13449. MSM_BACKEND_DAI_HDMI_RX,
  13450. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13451. msm_routing_put_port_mixer),
  13452. };
  13453. static const struct snd_kcontrol_new display_port_rx_port_mixer_controls[] = {
  13454. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13455. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  13456. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13457. msm_routing_put_port_mixer),
  13458. };
  13459. static const struct snd_kcontrol_new display_port_rx1_port_mixer_controls[] = {
  13460. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13461. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  13462. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13463. msm_routing_put_port_mixer),
  13464. };
  13465. static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
  13466. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13467. MSM_BACKEND_DAI_SEC_I2S_RX,
  13468. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13469. msm_routing_put_port_mixer),
  13470. };
  13471. static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
  13472. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13473. MSM_BACKEND_DAI_MI2S_RX,
  13474. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  13475. msm_routing_put_port_mixer),
  13476. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13477. MSM_BACKEND_DAI_MI2S_RX,
  13478. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13479. msm_routing_put_port_mixer),
  13480. };
  13481. static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
  13482. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13483. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13484. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13485. msm_routing_put_port_mixer),
  13486. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13487. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13488. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13489. msm_routing_put_port_mixer),
  13490. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13491. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13492. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13493. msm_routing_put_port_mixer),
  13494. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13495. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13496. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13497. msm_routing_put_port_mixer),
  13498. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13499. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13500. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  13501. msm_routing_put_port_mixer),
  13502. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13503. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13504. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13505. msm_routing_put_port_mixer),
  13506. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13507. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13508. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13509. msm_routing_put_port_mixer),
  13510. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13511. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13512. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13513. msm_routing_put_port_mixer),
  13514. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13515. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13516. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13517. msm_routing_put_port_mixer),
  13518. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13519. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13520. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13521. msm_routing_put_port_mixer),
  13522. };
  13523. static const struct snd_kcontrol_new usb_rx_port_mixer_controls[] = {
  13524. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13525. MSM_BACKEND_DAI_USB_RX,
  13526. MSM_BACKEND_DAI_USB_TX, 1, 0, msm_routing_get_port_mixer,
  13527. msm_routing_put_port_mixer),
  13528. };
  13529. static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
  13530. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13531. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13532. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13533. msm_routing_put_port_mixer),
  13534. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13535. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13536. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13537. msm_routing_put_port_mixer),
  13538. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13539. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13540. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13541. msm_routing_put_port_mixer),
  13542. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13543. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13544. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13545. msm_routing_put_port_mixer),
  13546. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13547. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13548. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13549. msm_routing_put_port_mixer),
  13550. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13551. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13552. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13553. msm_routing_put_port_mixer),
  13554. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13555. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13556. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13557. msm_routing_put_port_mixer),
  13558. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13559. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13560. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13561. msm_routing_put_port_mixer),
  13562. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13563. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13564. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13565. msm_routing_put_port_mixer),
  13566. };
  13567. static const struct snd_kcontrol_new quin_mi2s_rx_port_mixer_controls[] = {
  13568. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13569. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13570. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13571. msm_routing_put_port_mixer),
  13572. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13573. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13574. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13575. msm_routing_put_port_mixer),
  13576. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13577. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13578. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13579. msm_routing_put_port_mixer),
  13580. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13581. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13582. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13583. msm_routing_put_port_mixer),
  13584. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13585. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13586. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13587. msm_routing_put_port_mixer),
  13588. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13589. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13590. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13591. msm_routing_put_port_mixer),
  13592. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13593. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13594. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13595. msm_routing_put_port_mixer),
  13596. };
  13597. static const struct snd_kcontrol_new pri_tdm_rx_0_port_mixer_controls[] = {
  13598. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13599. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13600. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13601. msm_routing_get_port_mixer,
  13602. msm_routing_put_port_mixer),
  13603. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13604. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13605. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13606. msm_routing_get_port_mixer,
  13607. msm_routing_put_port_mixer),
  13608. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13609. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13610. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13611. msm_routing_get_port_mixer,
  13612. msm_routing_put_port_mixer),
  13613. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13614. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13615. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13616. msm_routing_get_port_mixer,
  13617. msm_routing_put_port_mixer),
  13618. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13619. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13620. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13621. msm_routing_get_port_mixer,
  13622. msm_routing_put_port_mixer),
  13623. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13624. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13625. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13626. msm_routing_get_port_mixer,
  13627. msm_routing_put_port_mixer),
  13628. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13629. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13630. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13631. msm_routing_get_port_mixer,
  13632. msm_routing_put_port_mixer),
  13633. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13634. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13635. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13636. msm_routing_get_port_mixer,
  13637. msm_routing_put_port_mixer),
  13638. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13639. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13640. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  13641. msm_routing_get_port_mixer,
  13642. msm_routing_put_port_mixer),
  13643. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13644. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13645. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  13646. msm_routing_get_port_mixer,
  13647. msm_routing_put_port_mixer),
  13648. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13649. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13650. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  13651. msm_routing_get_port_mixer,
  13652. msm_routing_put_port_mixer),
  13653. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13654. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13655. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  13656. msm_routing_get_port_mixer,
  13657. msm_routing_put_port_mixer),
  13658. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13659. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13660. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13661. msm_routing_get_port_mixer,
  13662. msm_routing_put_port_mixer),
  13663. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13664. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13665. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13666. msm_routing_get_port_mixer,
  13667. msm_routing_put_port_mixer),
  13668. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13669. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13670. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13671. msm_routing_get_port_mixer,
  13672. msm_routing_put_port_mixer),
  13673. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13674. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13675. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13676. msm_routing_get_port_mixer,
  13677. msm_routing_put_port_mixer),
  13678. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13679. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13680. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13681. msm_routing_get_port_mixer,
  13682. msm_routing_put_port_mixer),
  13683. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13684. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13685. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13686. msm_routing_get_port_mixer,
  13687. msm_routing_put_port_mixer),
  13688. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13689. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13690. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13691. msm_routing_get_port_mixer,
  13692. msm_routing_put_port_mixer),
  13693. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13694. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13695. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13696. msm_routing_get_port_mixer,
  13697. msm_routing_put_port_mixer),
  13698. };
  13699. static const struct snd_kcontrol_new pri_tdm_rx_1_port_mixer_controls[] = {
  13700. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13701. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13702. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13703. msm_routing_get_port_mixer,
  13704. msm_routing_put_port_mixer),
  13705. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13706. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13707. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13708. msm_routing_get_port_mixer,
  13709. msm_routing_put_port_mixer),
  13710. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13711. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13712. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13713. msm_routing_get_port_mixer,
  13714. msm_routing_put_port_mixer),
  13715. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13716. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13717. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13718. msm_routing_get_port_mixer,
  13719. msm_routing_put_port_mixer),
  13720. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13721. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13722. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13723. msm_routing_get_port_mixer,
  13724. msm_routing_put_port_mixer),
  13725. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13726. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13727. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13728. msm_routing_get_port_mixer,
  13729. msm_routing_put_port_mixer),
  13730. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13731. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13732. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13733. msm_routing_get_port_mixer,
  13734. msm_routing_put_port_mixer),
  13735. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13736. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13737. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13738. msm_routing_get_port_mixer,
  13739. msm_routing_put_port_mixer),
  13740. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13741. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13742. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  13743. msm_routing_get_port_mixer,
  13744. msm_routing_put_port_mixer),
  13745. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13746. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13747. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  13748. msm_routing_get_port_mixer,
  13749. msm_routing_put_port_mixer),
  13750. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13751. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13752. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  13753. msm_routing_get_port_mixer,
  13754. msm_routing_put_port_mixer),
  13755. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13756. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13757. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  13758. msm_routing_get_port_mixer,
  13759. msm_routing_put_port_mixer),
  13760. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13761. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13762. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13763. msm_routing_get_port_mixer,
  13764. msm_routing_put_port_mixer),
  13765. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13766. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13767. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13768. msm_routing_get_port_mixer,
  13769. msm_routing_put_port_mixer),
  13770. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13771. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13772. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13773. msm_routing_get_port_mixer,
  13774. msm_routing_put_port_mixer),
  13775. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13776. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13777. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13778. msm_routing_get_port_mixer,
  13779. msm_routing_put_port_mixer),
  13780. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13781. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13782. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13783. msm_routing_get_port_mixer,
  13784. msm_routing_put_port_mixer),
  13785. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13786. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13787. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13788. msm_routing_get_port_mixer,
  13789. msm_routing_put_port_mixer),
  13790. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13791. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13792. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13793. msm_routing_get_port_mixer,
  13794. msm_routing_put_port_mixer),
  13795. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13796. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13797. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13798. msm_routing_get_port_mixer,
  13799. msm_routing_put_port_mixer),
  13800. };
  13801. static const struct snd_kcontrol_new pri_tdm_rx_2_port_mixer_controls[] = {
  13802. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13803. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13804. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13805. msm_routing_get_port_mixer,
  13806. msm_routing_put_port_mixer),
  13807. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13808. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13809. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13810. msm_routing_get_port_mixer,
  13811. msm_routing_put_port_mixer),
  13812. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13813. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13814. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13815. msm_routing_get_port_mixer,
  13816. msm_routing_put_port_mixer),
  13817. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13818. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13819. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13820. msm_routing_get_port_mixer,
  13821. msm_routing_put_port_mixer),
  13822. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13823. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13824. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13825. msm_routing_get_port_mixer,
  13826. msm_routing_put_port_mixer),
  13827. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13828. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13829. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13830. msm_routing_get_port_mixer,
  13831. msm_routing_put_port_mixer),
  13832. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13833. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13834. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13835. msm_routing_get_port_mixer,
  13836. msm_routing_put_port_mixer),
  13837. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13838. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13839. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13840. msm_routing_get_port_mixer,
  13841. msm_routing_put_port_mixer),
  13842. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13843. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13844. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  13845. msm_routing_get_port_mixer,
  13846. msm_routing_put_port_mixer),
  13847. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13848. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13849. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  13850. msm_routing_get_port_mixer,
  13851. msm_routing_put_port_mixer),
  13852. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13853. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13854. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  13855. msm_routing_get_port_mixer,
  13856. msm_routing_put_port_mixer),
  13857. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13858. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13859. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  13860. msm_routing_get_port_mixer,
  13861. msm_routing_put_port_mixer),
  13862. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13863. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13864. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13865. msm_routing_get_port_mixer,
  13866. msm_routing_put_port_mixer),
  13867. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13868. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13869. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13870. msm_routing_get_port_mixer,
  13871. msm_routing_put_port_mixer),
  13872. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13873. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13874. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13875. msm_routing_get_port_mixer,
  13876. msm_routing_put_port_mixer),
  13877. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13878. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13879. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13880. msm_routing_get_port_mixer,
  13881. msm_routing_put_port_mixer),
  13882. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13883. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13884. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13885. msm_routing_get_port_mixer,
  13886. msm_routing_put_port_mixer),
  13887. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13888. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13889. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13890. msm_routing_get_port_mixer,
  13891. msm_routing_put_port_mixer),
  13892. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13893. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13894. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13895. msm_routing_get_port_mixer,
  13896. msm_routing_put_port_mixer),
  13897. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13898. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13899. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13900. msm_routing_get_port_mixer,
  13901. msm_routing_put_port_mixer),
  13902. };
  13903. static const struct snd_kcontrol_new pri_tdm_rx_3_port_mixer_controls[] = {
  13904. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13905. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13906. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13907. msm_routing_get_port_mixer,
  13908. msm_routing_put_port_mixer),
  13909. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13910. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13911. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13912. msm_routing_get_port_mixer,
  13913. msm_routing_put_port_mixer),
  13914. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13915. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13916. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13917. msm_routing_get_port_mixer,
  13918. msm_routing_put_port_mixer),
  13919. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13920. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13921. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13922. msm_routing_get_port_mixer,
  13923. msm_routing_put_port_mixer),
  13924. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13925. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13926. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13927. msm_routing_get_port_mixer,
  13928. msm_routing_put_port_mixer),
  13929. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13930. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13931. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13932. msm_routing_get_port_mixer,
  13933. msm_routing_put_port_mixer),
  13934. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13935. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13936. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13937. msm_routing_get_port_mixer,
  13938. msm_routing_put_port_mixer),
  13939. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13940. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13941. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13942. msm_routing_get_port_mixer,
  13943. msm_routing_put_port_mixer),
  13944. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13945. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13946. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  13947. msm_routing_get_port_mixer,
  13948. msm_routing_put_port_mixer),
  13949. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13950. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13951. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  13952. msm_routing_get_port_mixer,
  13953. msm_routing_put_port_mixer),
  13954. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13955. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13956. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  13957. msm_routing_get_port_mixer,
  13958. msm_routing_put_port_mixer),
  13959. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13960. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13961. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  13962. msm_routing_get_port_mixer,
  13963. msm_routing_put_port_mixer),
  13964. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13965. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13966. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13967. msm_routing_get_port_mixer,
  13968. msm_routing_put_port_mixer),
  13969. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13970. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13971. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13972. msm_routing_get_port_mixer,
  13973. msm_routing_put_port_mixer),
  13974. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13975. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13976. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13977. msm_routing_get_port_mixer,
  13978. msm_routing_put_port_mixer),
  13979. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13980. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13981. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13982. msm_routing_get_port_mixer,
  13983. msm_routing_put_port_mixer),
  13984. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13985. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13986. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13987. msm_routing_get_port_mixer,
  13988. msm_routing_put_port_mixer),
  13989. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13990. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13991. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13992. msm_routing_get_port_mixer,
  13993. msm_routing_put_port_mixer),
  13994. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13995. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13996. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13997. msm_routing_get_port_mixer,
  13998. msm_routing_put_port_mixer),
  13999. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14000. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14001. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14002. msm_routing_get_port_mixer,
  14003. msm_routing_put_port_mixer),
  14004. };
  14005. static const struct snd_kcontrol_new sec_tdm_rx_0_port_mixer_controls[] = {
  14006. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14007. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14008. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14009. msm_routing_get_port_mixer,
  14010. msm_routing_put_port_mixer),
  14011. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14012. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14013. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14014. msm_routing_get_port_mixer,
  14015. msm_routing_put_port_mixer),
  14016. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14017. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14018. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14019. msm_routing_get_port_mixer,
  14020. msm_routing_put_port_mixer),
  14021. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14022. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14023. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14024. msm_routing_get_port_mixer,
  14025. msm_routing_put_port_mixer),
  14026. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14027. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14028. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14029. msm_routing_get_port_mixer,
  14030. msm_routing_put_port_mixer),
  14031. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14032. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14033. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14034. msm_routing_get_port_mixer,
  14035. msm_routing_put_port_mixer),
  14036. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14037. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14038. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14039. msm_routing_get_port_mixer,
  14040. msm_routing_put_port_mixer),
  14041. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14042. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14043. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14044. msm_routing_get_port_mixer,
  14045. msm_routing_put_port_mixer),
  14046. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14047. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14048. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  14049. msm_routing_get_port_mixer,
  14050. msm_routing_put_port_mixer),
  14051. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14052. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14053. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  14054. msm_routing_get_port_mixer,
  14055. msm_routing_put_port_mixer),
  14056. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14057. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14058. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  14059. msm_routing_get_port_mixer,
  14060. msm_routing_put_port_mixer),
  14061. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14062. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14063. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  14064. msm_routing_get_port_mixer,
  14065. msm_routing_put_port_mixer),
  14066. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14067. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14068. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14069. msm_routing_get_port_mixer,
  14070. msm_routing_put_port_mixer),
  14071. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14072. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14073. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14074. msm_routing_get_port_mixer,
  14075. msm_routing_put_port_mixer),
  14076. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14077. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14078. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14079. msm_routing_get_port_mixer,
  14080. msm_routing_put_port_mixer),
  14081. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14082. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14083. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14084. msm_routing_get_port_mixer,
  14085. msm_routing_put_port_mixer),
  14086. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14087. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14088. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14089. msm_routing_get_port_mixer,
  14090. msm_routing_put_port_mixer),
  14091. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14092. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14093. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14094. msm_routing_get_port_mixer,
  14095. msm_routing_put_port_mixer),
  14096. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14097. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14098. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14099. msm_routing_get_port_mixer,
  14100. msm_routing_put_port_mixer),
  14101. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14102. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14103. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14104. msm_routing_get_port_mixer,
  14105. msm_routing_put_port_mixer),
  14106. };
  14107. static const struct snd_kcontrol_new sec_tdm_rx_1_port_mixer_controls[] = {
  14108. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14109. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14110. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14111. msm_routing_get_port_mixer,
  14112. msm_routing_put_port_mixer),
  14113. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14114. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14115. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14116. msm_routing_get_port_mixer,
  14117. msm_routing_put_port_mixer),
  14118. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14119. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14120. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14121. msm_routing_get_port_mixer,
  14122. msm_routing_put_port_mixer),
  14123. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14124. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14125. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14126. msm_routing_get_port_mixer,
  14127. msm_routing_put_port_mixer),
  14128. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14129. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14130. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14131. msm_routing_get_port_mixer,
  14132. msm_routing_put_port_mixer),
  14133. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14134. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14135. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14136. msm_routing_get_port_mixer,
  14137. msm_routing_put_port_mixer),
  14138. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14139. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14140. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14141. msm_routing_get_port_mixer,
  14142. msm_routing_put_port_mixer),
  14143. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14144. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14145. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14146. msm_routing_get_port_mixer,
  14147. msm_routing_put_port_mixer),
  14148. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14149. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14150. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  14151. msm_routing_get_port_mixer,
  14152. msm_routing_put_port_mixer),
  14153. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14154. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14155. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  14156. msm_routing_get_port_mixer,
  14157. msm_routing_put_port_mixer),
  14158. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14159. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14160. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  14161. msm_routing_get_port_mixer,
  14162. msm_routing_put_port_mixer),
  14163. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14164. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14165. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  14166. msm_routing_get_port_mixer,
  14167. msm_routing_put_port_mixer),
  14168. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14169. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14170. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14171. msm_routing_get_port_mixer,
  14172. msm_routing_put_port_mixer),
  14173. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14174. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14175. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14176. msm_routing_get_port_mixer,
  14177. msm_routing_put_port_mixer),
  14178. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14179. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14180. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14181. msm_routing_get_port_mixer,
  14182. msm_routing_put_port_mixer),
  14183. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14184. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14185. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14186. msm_routing_get_port_mixer,
  14187. msm_routing_put_port_mixer),
  14188. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14189. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14190. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14191. msm_routing_get_port_mixer,
  14192. msm_routing_put_port_mixer),
  14193. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14194. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14195. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14196. msm_routing_get_port_mixer,
  14197. msm_routing_put_port_mixer),
  14198. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14199. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14200. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14201. msm_routing_get_port_mixer,
  14202. msm_routing_put_port_mixer),
  14203. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14204. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14205. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14206. msm_routing_get_port_mixer,
  14207. msm_routing_put_port_mixer),
  14208. };
  14209. static const struct snd_kcontrol_new sec_tdm_rx_2_port_mixer_controls[] = {
  14210. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14211. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14212. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14213. msm_routing_get_port_mixer,
  14214. msm_routing_put_port_mixer),
  14215. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14216. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14217. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14218. msm_routing_get_port_mixer,
  14219. msm_routing_put_port_mixer),
  14220. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14221. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14222. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14223. msm_routing_get_port_mixer,
  14224. msm_routing_put_port_mixer),
  14225. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14226. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14227. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14228. msm_routing_get_port_mixer,
  14229. msm_routing_put_port_mixer),
  14230. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14231. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14232. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14233. msm_routing_get_port_mixer,
  14234. msm_routing_put_port_mixer),
  14235. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14236. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14237. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14238. msm_routing_get_port_mixer,
  14239. msm_routing_put_port_mixer),
  14240. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14241. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14242. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14243. msm_routing_get_port_mixer,
  14244. msm_routing_put_port_mixer),
  14245. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14246. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14247. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14248. msm_routing_get_port_mixer,
  14249. msm_routing_put_port_mixer),
  14250. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14251. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14252. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  14253. msm_routing_get_port_mixer,
  14254. msm_routing_put_port_mixer),
  14255. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14256. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14257. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  14258. msm_routing_get_port_mixer,
  14259. msm_routing_put_port_mixer),
  14260. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14261. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14262. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  14263. msm_routing_get_port_mixer,
  14264. msm_routing_put_port_mixer),
  14265. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14266. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14267. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  14268. msm_routing_get_port_mixer,
  14269. msm_routing_put_port_mixer),
  14270. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14271. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14272. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14273. msm_routing_get_port_mixer,
  14274. msm_routing_put_port_mixer),
  14275. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14276. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14277. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14278. msm_routing_get_port_mixer,
  14279. msm_routing_put_port_mixer),
  14280. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14281. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14282. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14283. msm_routing_get_port_mixer,
  14284. msm_routing_put_port_mixer),
  14285. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14286. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14287. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14288. msm_routing_get_port_mixer,
  14289. msm_routing_put_port_mixer),
  14290. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14291. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14292. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14293. msm_routing_get_port_mixer,
  14294. msm_routing_put_port_mixer),
  14295. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14296. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14297. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14298. msm_routing_get_port_mixer,
  14299. msm_routing_put_port_mixer),
  14300. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14301. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14302. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14303. msm_routing_get_port_mixer,
  14304. msm_routing_put_port_mixer),
  14305. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14306. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14307. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14308. msm_routing_get_port_mixer,
  14309. msm_routing_put_port_mixer),
  14310. };
  14311. static const struct snd_kcontrol_new sec_tdm_rx_3_port_mixer_controls[] = {
  14312. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14313. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14314. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14315. msm_routing_get_port_mixer,
  14316. msm_routing_put_port_mixer),
  14317. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14318. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14319. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14320. msm_routing_get_port_mixer,
  14321. msm_routing_put_port_mixer),
  14322. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14323. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14324. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14325. msm_routing_get_port_mixer,
  14326. msm_routing_put_port_mixer),
  14327. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14328. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14329. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14330. msm_routing_get_port_mixer,
  14331. msm_routing_put_port_mixer),
  14332. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14333. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14334. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14335. msm_routing_get_port_mixer,
  14336. msm_routing_put_port_mixer),
  14337. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14338. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14339. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14340. msm_routing_get_port_mixer,
  14341. msm_routing_put_port_mixer),
  14342. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14343. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14344. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14345. msm_routing_get_port_mixer,
  14346. msm_routing_put_port_mixer),
  14347. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14348. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14349. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14350. msm_routing_get_port_mixer,
  14351. msm_routing_put_port_mixer),
  14352. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14353. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14354. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  14355. msm_routing_get_port_mixer,
  14356. msm_routing_put_port_mixer),
  14357. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14358. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14359. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  14360. msm_routing_get_port_mixer,
  14361. msm_routing_put_port_mixer),
  14362. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14363. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14364. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  14365. msm_routing_get_port_mixer,
  14366. msm_routing_put_port_mixer),
  14367. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14368. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14369. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  14370. msm_routing_get_port_mixer,
  14371. msm_routing_put_port_mixer),
  14372. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14373. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14374. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14375. msm_routing_get_port_mixer,
  14376. msm_routing_put_port_mixer),
  14377. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14378. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14379. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14380. msm_routing_get_port_mixer,
  14381. msm_routing_put_port_mixer),
  14382. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14383. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14384. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14385. msm_routing_get_port_mixer,
  14386. msm_routing_put_port_mixer),
  14387. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14388. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14389. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14390. msm_routing_get_port_mixer,
  14391. msm_routing_put_port_mixer),
  14392. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14393. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14394. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14395. msm_routing_get_port_mixer,
  14396. msm_routing_put_port_mixer),
  14397. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14398. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14399. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14400. msm_routing_get_port_mixer,
  14401. msm_routing_put_port_mixer),
  14402. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14403. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14404. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14405. msm_routing_get_port_mixer,
  14406. msm_routing_put_port_mixer),
  14407. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14408. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14409. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14410. msm_routing_get_port_mixer,
  14411. msm_routing_put_port_mixer),
  14412. };
  14413. static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
  14414. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14415. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14416. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14417. msm_routing_get_port_mixer,
  14418. msm_routing_put_port_mixer),
  14419. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14420. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14421. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14422. msm_routing_get_port_mixer,
  14423. msm_routing_put_port_mixer),
  14424. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14425. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14426. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14427. msm_routing_get_port_mixer,
  14428. msm_routing_put_port_mixer),
  14429. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14430. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14431. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14432. msm_routing_get_port_mixer,
  14433. msm_routing_put_port_mixer),
  14434. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14435. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14436. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14437. msm_routing_get_port_mixer,
  14438. msm_routing_put_port_mixer),
  14439. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14440. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14441. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14442. msm_routing_get_port_mixer,
  14443. msm_routing_put_port_mixer),
  14444. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14445. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14446. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14447. msm_routing_get_port_mixer,
  14448. msm_routing_put_port_mixer),
  14449. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14450. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14451. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14452. msm_routing_get_port_mixer,
  14453. msm_routing_put_port_mixer),
  14454. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14455. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14456. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14457. msm_routing_get_port_mixer,
  14458. msm_routing_put_port_mixer),
  14459. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14460. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14461. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14462. msm_routing_get_port_mixer,
  14463. msm_routing_put_port_mixer),
  14464. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14465. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14466. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14467. msm_routing_get_port_mixer,
  14468. msm_routing_put_port_mixer),
  14469. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14470. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14471. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14472. msm_routing_get_port_mixer,
  14473. msm_routing_put_port_mixer),
  14474. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14475. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14476. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14477. msm_routing_get_port_mixer,
  14478. msm_routing_put_port_mixer),
  14479. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14480. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14481. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14482. msm_routing_get_port_mixer,
  14483. msm_routing_put_port_mixer),
  14484. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14485. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14486. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14487. msm_routing_get_port_mixer,
  14488. msm_routing_put_port_mixer),
  14489. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14490. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14491. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14492. msm_routing_get_port_mixer,
  14493. msm_routing_put_port_mixer),
  14494. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14495. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14496. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14497. msm_routing_get_port_mixer,
  14498. msm_routing_put_port_mixer),
  14499. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14500. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14501. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14502. msm_routing_get_port_mixer,
  14503. msm_routing_put_port_mixer),
  14504. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14505. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14506. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14507. msm_routing_get_port_mixer,
  14508. msm_routing_put_port_mixer),
  14509. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14510. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14511. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14512. msm_routing_get_port_mixer,
  14513. msm_routing_put_port_mixer),
  14514. };
  14515. static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
  14516. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14517. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14518. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14519. msm_routing_get_port_mixer,
  14520. msm_routing_put_port_mixer),
  14521. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14522. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14523. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14524. msm_routing_get_port_mixer,
  14525. msm_routing_put_port_mixer),
  14526. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14527. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14528. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14529. msm_routing_get_port_mixer,
  14530. msm_routing_put_port_mixer),
  14531. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14532. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14533. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14534. msm_routing_get_port_mixer,
  14535. msm_routing_put_port_mixer),
  14536. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14537. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14538. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14539. msm_routing_get_port_mixer,
  14540. msm_routing_put_port_mixer),
  14541. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14542. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14543. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14544. msm_routing_get_port_mixer,
  14545. msm_routing_put_port_mixer),
  14546. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14547. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14548. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14549. msm_routing_get_port_mixer,
  14550. msm_routing_put_port_mixer),
  14551. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14552. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14553. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14554. msm_routing_get_port_mixer,
  14555. msm_routing_put_port_mixer),
  14556. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14557. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14558. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14559. msm_routing_get_port_mixer,
  14560. msm_routing_put_port_mixer),
  14561. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14562. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14563. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14564. msm_routing_get_port_mixer,
  14565. msm_routing_put_port_mixer),
  14566. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14567. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14568. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14569. msm_routing_get_port_mixer,
  14570. msm_routing_put_port_mixer),
  14571. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14572. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14573. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14574. msm_routing_get_port_mixer,
  14575. msm_routing_put_port_mixer),
  14576. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14577. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14578. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14579. msm_routing_get_port_mixer,
  14580. msm_routing_put_port_mixer),
  14581. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14582. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14583. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14584. msm_routing_get_port_mixer,
  14585. msm_routing_put_port_mixer),
  14586. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14587. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14588. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14589. msm_routing_get_port_mixer,
  14590. msm_routing_put_port_mixer),
  14591. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14592. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14593. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14594. msm_routing_get_port_mixer,
  14595. msm_routing_put_port_mixer),
  14596. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14597. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14598. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14599. msm_routing_get_port_mixer,
  14600. msm_routing_put_port_mixer),
  14601. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14602. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14603. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14604. msm_routing_get_port_mixer,
  14605. msm_routing_put_port_mixer),
  14606. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14607. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14608. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14609. msm_routing_get_port_mixer,
  14610. msm_routing_put_port_mixer),
  14611. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14612. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14613. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14614. msm_routing_get_port_mixer,
  14615. msm_routing_put_port_mixer),
  14616. };
  14617. static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
  14618. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14619. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14620. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14621. msm_routing_get_port_mixer,
  14622. msm_routing_put_port_mixer),
  14623. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14624. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14625. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14626. msm_routing_get_port_mixer,
  14627. msm_routing_put_port_mixer),
  14628. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14629. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14630. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14631. msm_routing_get_port_mixer,
  14632. msm_routing_put_port_mixer),
  14633. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14634. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14635. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14636. msm_routing_get_port_mixer,
  14637. msm_routing_put_port_mixer),
  14638. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14639. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14640. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14641. msm_routing_get_port_mixer,
  14642. msm_routing_put_port_mixer),
  14643. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14644. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14645. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14646. msm_routing_get_port_mixer,
  14647. msm_routing_put_port_mixer),
  14648. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14649. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14650. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14651. msm_routing_get_port_mixer,
  14652. msm_routing_put_port_mixer),
  14653. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14654. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14655. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14656. msm_routing_get_port_mixer,
  14657. msm_routing_put_port_mixer),
  14658. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14659. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14660. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14661. msm_routing_get_port_mixer,
  14662. msm_routing_put_port_mixer),
  14663. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14664. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14665. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14666. msm_routing_get_port_mixer,
  14667. msm_routing_put_port_mixer),
  14668. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14669. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14670. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14671. msm_routing_get_port_mixer,
  14672. msm_routing_put_port_mixer),
  14673. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14674. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14675. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14676. msm_routing_get_port_mixer,
  14677. msm_routing_put_port_mixer),
  14678. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14679. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14680. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14681. msm_routing_get_port_mixer,
  14682. msm_routing_put_port_mixer),
  14683. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14684. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14685. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14686. msm_routing_get_port_mixer,
  14687. msm_routing_put_port_mixer),
  14688. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14689. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14690. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14691. msm_routing_get_port_mixer,
  14692. msm_routing_put_port_mixer),
  14693. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14694. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14695. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14696. msm_routing_get_port_mixer,
  14697. msm_routing_put_port_mixer),
  14698. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14699. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14700. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14701. msm_routing_get_port_mixer,
  14702. msm_routing_put_port_mixer),
  14703. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14704. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14705. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14706. msm_routing_get_port_mixer,
  14707. msm_routing_put_port_mixer),
  14708. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14709. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14710. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14711. msm_routing_get_port_mixer,
  14712. msm_routing_put_port_mixer),
  14713. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14714. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14715. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14716. msm_routing_get_port_mixer,
  14717. msm_routing_put_port_mixer),
  14718. };
  14719. static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
  14720. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14721. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14722. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14723. msm_routing_get_port_mixer,
  14724. msm_routing_put_port_mixer),
  14725. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14726. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14727. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14728. msm_routing_get_port_mixer,
  14729. msm_routing_put_port_mixer),
  14730. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14731. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14732. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14733. msm_routing_get_port_mixer,
  14734. msm_routing_put_port_mixer),
  14735. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14736. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14737. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14738. msm_routing_get_port_mixer,
  14739. msm_routing_put_port_mixer),
  14740. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14741. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14742. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14743. msm_routing_get_port_mixer,
  14744. msm_routing_put_port_mixer),
  14745. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14746. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14747. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14748. msm_routing_get_port_mixer,
  14749. msm_routing_put_port_mixer),
  14750. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14751. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14752. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14753. msm_routing_get_port_mixer,
  14754. msm_routing_put_port_mixer),
  14755. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14756. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14757. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14758. msm_routing_get_port_mixer,
  14759. msm_routing_put_port_mixer),
  14760. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14761. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14762. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14763. msm_routing_get_port_mixer,
  14764. msm_routing_put_port_mixer),
  14765. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14766. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14767. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14768. msm_routing_get_port_mixer,
  14769. msm_routing_put_port_mixer),
  14770. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14771. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14772. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14773. msm_routing_get_port_mixer,
  14774. msm_routing_put_port_mixer),
  14775. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14776. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14777. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14778. msm_routing_get_port_mixer,
  14779. msm_routing_put_port_mixer),
  14780. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14781. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14782. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14783. msm_routing_get_port_mixer,
  14784. msm_routing_put_port_mixer),
  14785. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14786. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14787. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14788. msm_routing_get_port_mixer,
  14789. msm_routing_put_port_mixer),
  14790. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14791. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14792. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14793. msm_routing_get_port_mixer,
  14794. msm_routing_put_port_mixer),
  14795. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14796. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14797. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14798. msm_routing_get_port_mixer,
  14799. msm_routing_put_port_mixer),
  14800. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14801. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14802. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14803. msm_routing_get_port_mixer,
  14804. msm_routing_put_port_mixer),
  14805. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14806. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14807. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14808. msm_routing_get_port_mixer,
  14809. msm_routing_put_port_mixer),
  14810. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14811. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14812. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14813. msm_routing_get_port_mixer,
  14814. msm_routing_put_port_mixer),
  14815. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14816. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14817. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14818. msm_routing_get_port_mixer,
  14819. msm_routing_put_port_mixer),
  14820. };
  14821. static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
  14822. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14823. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14824. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14825. msm_routing_get_port_mixer,
  14826. msm_routing_put_port_mixer),
  14827. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14828. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14829. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14830. msm_routing_get_port_mixer,
  14831. msm_routing_put_port_mixer),
  14832. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14833. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14834. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  14835. msm_routing_get_port_mixer,
  14836. msm_routing_put_port_mixer),
  14837. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14838. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14839. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14840. msm_routing_get_port_mixer,
  14841. msm_routing_put_port_mixer),
  14842. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14843. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14844. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14845. msm_routing_get_port_mixer,
  14846. msm_routing_put_port_mixer),
  14847. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14848. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14849. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14850. msm_routing_get_port_mixer,
  14851. msm_routing_put_port_mixer),
  14852. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14853. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14854. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14855. msm_routing_get_port_mixer,
  14856. msm_routing_put_port_mixer),
  14857. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14858. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14859. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14860. msm_routing_get_port_mixer,
  14861. msm_routing_put_port_mixer),
  14862. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14863. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14864. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14865. msm_routing_get_port_mixer,
  14866. msm_routing_put_port_mixer),
  14867. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14868. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14869. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14870. msm_routing_get_port_mixer,
  14871. msm_routing_put_port_mixer),
  14872. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14873. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14874. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14875. msm_routing_get_port_mixer,
  14876. msm_routing_put_port_mixer),
  14877. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14878. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14879. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14880. msm_routing_get_port_mixer,
  14881. msm_routing_put_port_mixer),
  14882. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14883. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14884. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14885. msm_routing_get_port_mixer,
  14886. msm_routing_put_port_mixer),
  14887. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14888. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14889. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14890. msm_routing_get_port_mixer,
  14891. msm_routing_put_port_mixer),
  14892. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14893. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14894. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14895. msm_routing_get_port_mixer,
  14896. msm_routing_put_port_mixer),
  14897. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14898. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14899. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14900. msm_routing_get_port_mixer,
  14901. msm_routing_put_port_mixer),
  14902. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14903. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14904. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14905. msm_routing_get_port_mixer,
  14906. msm_routing_put_port_mixer),
  14907. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14908. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14909. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14910. msm_routing_get_port_mixer,
  14911. msm_routing_put_port_mixer),
  14912. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14913. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14914. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14915. msm_routing_get_port_mixer,
  14916. msm_routing_put_port_mixer),
  14917. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14918. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14919. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14920. msm_routing_get_port_mixer,
  14921. msm_routing_put_port_mixer),
  14922. };
  14923. static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
  14924. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14925. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14926. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14927. msm_routing_get_port_mixer,
  14928. msm_routing_put_port_mixer),
  14929. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14930. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14931. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14932. msm_routing_get_port_mixer,
  14933. msm_routing_put_port_mixer),
  14934. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14935. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14936. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  14937. msm_routing_get_port_mixer,
  14938. msm_routing_put_port_mixer),
  14939. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14940. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14941. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14942. msm_routing_get_port_mixer,
  14943. msm_routing_put_port_mixer),
  14944. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14945. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14946. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14947. msm_routing_get_port_mixer,
  14948. msm_routing_put_port_mixer),
  14949. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14950. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14951. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14952. msm_routing_get_port_mixer,
  14953. msm_routing_put_port_mixer),
  14954. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14955. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14956. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14957. msm_routing_get_port_mixer,
  14958. msm_routing_put_port_mixer),
  14959. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14960. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14961. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14962. msm_routing_get_port_mixer,
  14963. msm_routing_put_port_mixer),
  14964. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14965. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14966. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14967. msm_routing_get_port_mixer,
  14968. msm_routing_put_port_mixer),
  14969. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14970. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14971. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14972. msm_routing_get_port_mixer,
  14973. msm_routing_put_port_mixer),
  14974. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14975. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14976. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14977. msm_routing_get_port_mixer,
  14978. msm_routing_put_port_mixer),
  14979. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14980. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14981. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14982. msm_routing_get_port_mixer,
  14983. msm_routing_put_port_mixer),
  14984. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14985. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14986. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14987. msm_routing_get_port_mixer,
  14988. msm_routing_put_port_mixer),
  14989. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14990. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14991. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14992. msm_routing_get_port_mixer,
  14993. msm_routing_put_port_mixer),
  14994. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14995. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  14996. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14997. msm_routing_get_port_mixer,
  14998. msm_routing_put_port_mixer),
  14999. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15000. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15001. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15002. msm_routing_get_port_mixer,
  15003. msm_routing_put_port_mixer),
  15004. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15005. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15006. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15007. msm_routing_get_port_mixer,
  15008. msm_routing_put_port_mixer),
  15009. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15010. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15011. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15012. msm_routing_get_port_mixer,
  15013. msm_routing_put_port_mixer),
  15014. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15015. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15016. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15017. msm_routing_get_port_mixer,
  15018. msm_routing_put_port_mixer),
  15019. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15020. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15021. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15022. msm_routing_get_port_mixer,
  15023. msm_routing_put_port_mixer),
  15024. };
  15025. static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
  15026. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15027. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15028. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15029. msm_routing_get_port_mixer,
  15030. msm_routing_put_port_mixer),
  15031. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15032. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15033. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15034. msm_routing_get_port_mixer,
  15035. msm_routing_put_port_mixer),
  15036. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15037. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15038. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15039. msm_routing_get_port_mixer,
  15040. msm_routing_put_port_mixer),
  15041. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15042. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15043. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15044. msm_routing_get_port_mixer,
  15045. msm_routing_put_port_mixer),
  15046. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15047. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15048. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15049. msm_routing_get_port_mixer,
  15050. msm_routing_put_port_mixer),
  15051. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15052. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15053. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15054. msm_routing_get_port_mixer,
  15055. msm_routing_put_port_mixer),
  15056. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15057. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15058. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15059. msm_routing_get_port_mixer,
  15060. msm_routing_put_port_mixer),
  15061. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15062. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15063. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15064. msm_routing_get_port_mixer,
  15065. msm_routing_put_port_mixer),
  15066. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15067. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15068. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15069. msm_routing_get_port_mixer,
  15070. msm_routing_put_port_mixer),
  15071. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15072. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15073. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15074. msm_routing_get_port_mixer,
  15075. msm_routing_put_port_mixer),
  15076. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15077. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15078. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15079. msm_routing_get_port_mixer,
  15080. msm_routing_put_port_mixer),
  15081. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15082. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15083. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15084. msm_routing_get_port_mixer,
  15085. msm_routing_put_port_mixer),
  15086. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15087. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15088. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15089. msm_routing_get_port_mixer,
  15090. msm_routing_put_port_mixer),
  15091. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15092. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15093. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15094. msm_routing_get_port_mixer,
  15095. msm_routing_put_port_mixer),
  15096. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15097. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15098. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15099. msm_routing_get_port_mixer,
  15100. msm_routing_put_port_mixer),
  15101. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15102. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15103. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15104. msm_routing_get_port_mixer,
  15105. msm_routing_put_port_mixer),
  15106. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15107. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15108. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15109. msm_routing_get_port_mixer,
  15110. msm_routing_put_port_mixer),
  15111. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15112. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15113. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15114. msm_routing_get_port_mixer,
  15115. msm_routing_put_port_mixer),
  15116. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15117. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15118. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15119. msm_routing_get_port_mixer,
  15120. msm_routing_put_port_mixer),
  15121. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15122. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15123. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15124. msm_routing_get_port_mixer,
  15125. msm_routing_put_port_mixer),
  15126. };
  15127. static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
  15128. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15129. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15130. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15131. msm_routing_get_port_mixer,
  15132. msm_routing_put_port_mixer),
  15133. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15134. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15135. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15136. msm_routing_get_port_mixer,
  15137. msm_routing_put_port_mixer),
  15138. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15139. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15140. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15141. msm_routing_get_port_mixer,
  15142. msm_routing_put_port_mixer),
  15143. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15144. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15145. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15146. msm_routing_get_port_mixer,
  15147. msm_routing_put_port_mixer),
  15148. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15149. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15150. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15151. msm_routing_get_port_mixer,
  15152. msm_routing_put_port_mixer),
  15153. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15154. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15155. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15156. msm_routing_get_port_mixer,
  15157. msm_routing_put_port_mixer),
  15158. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15159. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15160. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15161. msm_routing_get_port_mixer,
  15162. msm_routing_put_port_mixer),
  15163. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15164. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15165. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15166. msm_routing_get_port_mixer,
  15167. msm_routing_put_port_mixer),
  15168. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15169. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15170. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15171. msm_routing_get_port_mixer,
  15172. msm_routing_put_port_mixer),
  15173. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15174. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15175. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15176. msm_routing_get_port_mixer,
  15177. msm_routing_put_port_mixer),
  15178. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15179. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15180. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15181. msm_routing_get_port_mixer,
  15182. msm_routing_put_port_mixer),
  15183. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15184. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15185. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15186. msm_routing_get_port_mixer,
  15187. msm_routing_put_port_mixer),
  15188. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15189. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15190. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15191. msm_routing_get_port_mixer,
  15192. msm_routing_put_port_mixer),
  15193. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15194. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15195. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15196. msm_routing_get_port_mixer,
  15197. msm_routing_put_port_mixer),
  15198. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15199. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15200. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15201. msm_routing_get_port_mixer,
  15202. msm_routing_put_port_mixer),
  15203. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15204. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15205. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15206. msm_routing_get_port_mixer,
  15207. msm_routing_put_port_mixer),
  15208. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15209. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15210. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15211. msm_routing_get_port_mixer,
  15212. msm_routing_put_port_mixer),
  15213. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15214. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15215. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15216. msm_routing_get_port_mixer,
  15217. msm_routing_put_port_mixer),
  15218. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15219. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15220. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15221. msm_routing_get_port_mixer,
  15222. msm_routing_put_port_mixer),
  15223. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15224. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15225. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15226. msm_routing_get_port_mixer,
  15227. msm_routing_put_port_mixer),
  15228. };
  15229. static const struct snd_kcontrol_new quin_tdm_rx_0_port_mixer_controls[] = {
  15230. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15231. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15232. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15233. msm_routing_get_port_mixer,
  15234. msm_routing_put_port_mixer),
  15235. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15236. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15237. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15238. msm_routing_get_port_mixer,
  15239. msm_routing_put_port_mixer),
  15240. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15241. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15242. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15243. msm_routing_get_port_mixer,
  15244. msm_routing_put_port_mixer),
  15245. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15246. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15247. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15248. msm_routing_get_port_mixer,
  15249. msm_routing_put_port_mixer),
  15250. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15251. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15252. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15253. msm_routing_get_port_mixer,
  15254. msm_routing_put_port_mixer),
  15255. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15256. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15257. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15258. msm_routing_get_port_mixer,
  15259. msm_routing_put_port_mixer),
  15260. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15261. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15262. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15263. msm_routing_get_port_mixer,
  15264. msm_routing_put_port_mixer),
  15265. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15266. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15267. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15268. msm_routing_get_port_mixer,
  15269. msm_routing_put_port_mixer),
  15270. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15271. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15272. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15273. msm_routing_get_port_mixer,
  15274. msm_routing_put_port_mixer),
  15275. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15276. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15277. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15278. msm_routing_get_port_mixer,
  15279. msm_routing_put_port_mixer),
  15280. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15281. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15282. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15283. msm_routing_get_port_mixer,
  15284. msm_routing_put_port_mixer),
  15285. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15286. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15287. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15288. msm_routing_get_port_mixer,
  15289. msm_routing_put_port_mixer),
  15290. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15291. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15292. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15293. msm_routing_get_port_mixer,
  15294. msm_routing_put_port_mixer),
  15295. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15296. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15297. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15298. msm_routing_get_port_mixer,
  15299. msm_routing_put_port_mixer),
  15300. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15301. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15302. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15303. msm_routing_get_port_mixer,
  15304. msm_routing_put_port_mixer),
  15305. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15306. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15307. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15308. msm_routing_get_port_mixer,
  15309. msm_routing_put_port_mixer),
  15310. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15311. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15312. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15313. msm_routing_get_port_mixer,
  15314. msm_routing_put_port_mixer),
  15315. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15316. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15317. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15318. msm_routing_get_port_mixer,
  15319. msm_routing_put_port_mixer),
  15320. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15321. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15322. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15323. msm_routing_get_port_mixer,
  15324. msm_routing_put_port_mixer),
  15325. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15326. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15327. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15328. msm_routing_get_port_mixer,
  15329. msm_routing_put_port_mixer),
  15330. };
  15331. static const struct snd_kcontrol_new quin_tdm_rx_1_port_mixer_controls[] = {
  15332. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15333. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15334. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15335. msm_routing_get_port_mixer,
  15336. msm_routing_put_port_mixer),
  15337. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15338. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15339. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15340. msm_routing_get_port_mixer,
  15341. msm_routing_put_port_mixer),
  15342. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15343. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15344. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15345. msm_routing_get_port_mixer,
  15346. msm_routing_put_port_mixer),
  15347. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15348. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15349. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15350. msm_routing_get_port_mixer,
  15351. msm_routing_put_port_mixer),
  15352. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15353. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15354. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15355. msm_routing_get_port_mixer,
  15356. msm_routing_put_port_mixer),
  15357. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15358. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15359. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15360. msm_routing_get_port_mixer,
  15361. msm_routing_put_port_mixer),
  15362. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15363. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15364. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15365. msm_routing_get_port_mixer,
  15366. msm_routing_put_port_mixer),
  15367. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15368. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15369. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15370. msm_routing_get_port_mixer,
  15371. msm_routing_put_port_mixer),
  15372. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15373. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15374. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15375. msm_routing_get_port_mixer,
  15376. msm_routing_put_port_mixer),
  15377. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15378. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15379. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15380. msm_routing_get_port_mixer,
  15381. msm_routing_put_port_mixer),
  15382. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15383. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15384. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15385. msm_routing_get_port_mixer,
  15386. msm_routing_put_port_mixer),
  15387. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15388. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15389. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15390. msm_routing_get_port_mixer,
  15391. msm_routing_put_port_mixer),
  15392. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15393. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15394. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15395. msm_routing_get_port_mixer,
  15396. msm_routing_put_port_mixer),
  15397. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15398. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15399. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15400. msm_routing_get_port_mixer,
  15401. msm_routing_put_port_mixer),
  15402. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15403. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15404. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15405. msm_routing_get_port_mixer,
  15406. msm_routing_put_port_mixer),
  15407. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15408. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15409. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15410. msm_routing_get_port_mixer,
  15411. msm_routing_put_port_mixer),
  15412. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15413. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15414. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15415. msm_routing_get_port_mixer,
  15416. msm_routing_put_port_mixer),
  15417. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15418. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15419. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15420. msm_routing_get_port_mixer,
  15421. msm_routing_put_port_mixer),
  15422. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15423. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15424. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15425. msm_routing_get_port_mixer,
  15426. msm_routing_put_port_mixer),
  15427. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15428. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15429. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15430. msm_routing_get_port_mixer,
  15431. msm_routing_put_port_mixer),
  15432. };
  15433. static const struct snd_kcontrol_new quin_tdm_rx_2_port_mixer_controls[] = {
  15434. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15435. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15436. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15437. msm_routing_get_port_mixer,
  15438. msm_routing_put_port_mixer),
  15439. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15440. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15441. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15442. msm_routing_get_port_mixer,
  15443. msm_routing_put_port_mixer),
  15444. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15445. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15446. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15447. msm_routing_get_port_mixer,
  15448. msm_routing_put_port_mixer),
  15449. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15450. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15451. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15452. msm_routing_get_port_mixer,
  15453. msm_routing_put_port_mixer),
  15454. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15455. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15456. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15457. msm_routing_get_port_mixer,
  15458. msm_routing_put_port_mixer),
  15459. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15460. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15461. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15462. msm_routing_get_port_mixer,
  15463. msm_routing_put_port_mixer),
  15464. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15465. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15466. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15467. msm_routing_get_port_mixer,
  15468. msm_routing_put_port_mixer),
  15469. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15470. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15471. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15472. msm_routing_get_port_mixer,
  15473. msm_routing_put_port_mixer),
  15474. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15475. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15476. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15477. msm_routing_get_port_mixer,
  15478. msm_routing_put_port_mixer),
  15479. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15480. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15481. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15482. msm_routing_get_port_mixer,
  15483. msm_routing_put_port_mixer),
  15484. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15485. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15486. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15487. msm_routing_get_port_mixer,
  15488. msm_routing_put_port_mixer),
  15489. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15490. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15491. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15492. msm_routing_get_port_mixer,
  15493. msm_routing_put_port_mixer),
  15494. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15495. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15496. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15497. msm_routing_get_port_mixer,
  15498. msm_routing_put_port_mixer),
  15499. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15500. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15501. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15502. msm_routing_get_port_mixer,
  15503. msm_routing_put_port_mixer),
  15504. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15505. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15506. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15507. msm_routing_get_port_mixer,
  15508. msm_routing_put_port_mixer),
  15509. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15510. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15511. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15512. msm_routing_get_port_mixer,
  15513. msm_routing_put_port_mixer),
  15514. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15515. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15516. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15517. msm_routing_get_port_mixer,
  15518. msm_routing_put_port_mixer),
  15519. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15520. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15521. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15522. msm_routing_get_port_mixer,
  15523. msm_routing_put_port_mixer),
  15524. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15525. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15526. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15527. msm_routing_get_port_mixer,
  15528. msm_routing_put_port_mixer),
  15529. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15530. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15531. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15532. msm_routing_get_port_mixer,
  15533. msm_routing_put_port_mixer),
  15534. };
  15535. static const struct snd_kcontrol_new quin_tdm_rx_3_port_mixer_controls[] = {
  15536. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15537. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15538. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15539. msm_routing_get_port_mixer,
  15540. msm_routing_put_port_mixer),
  15541. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15542. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15543. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15544. msm_routing_get_port_mixer,
  15545. msm_routing_put_port_mixer),
  15546. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15547. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15548. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15549. msm_routing_get_port_mixer,
  15550. msm_routing_put_port_mixer),
  15551. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15552. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15553. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15554. msm_routing_get_port_mixer,
  15555. msm_routing_put_port_mixer),
  15556. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15557. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15558. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15559. msm_routing_get_port_mixer,
  15560. msm_routing_put_port_mixer),
  15561. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15562. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15563. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15564. msm_routing_get_port_mixer,
  15565. msm_routing_put_port_mixer),
  15566. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15567. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15568. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15569. msm_routing_get_port_mixer,
  15570. msm_routing_put_port_mixer),
  15571. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15572. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15573. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15574. msm_routing_get_port_mixer,
  15575. msm_routing_put_port_mixer),
  15576. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15577. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15578. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15579. msm_routing_get_port_mixer,
  15580. msm_routing_put_port_mixer),
  15581. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15582. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15583. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15584. msm_routing_get_port_mixer,
  15585. msm_routing_put_port_mixer),
  15586. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15587. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15588. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15589. msm_routing_get_port_mixer,
  15590. msm_routing_put_port_mixer),
  15591. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15592. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15593. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15594. msm_routing_get_port_mixer,
  15595. msm_routing_put_port_mixer),
  15596. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15597. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15598. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15599. msm_routing_get_port_mixer,
  15600. msm_routing_put_port_mixer),
  15601. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15602. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15603. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15604. msm_routing_get_port_mixer,
  15605. msm_routing_put_port_mixer),
  15606. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15607. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15608. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15609. msm_routing_get_port_mixer,
  15610. msm_routing_put_port_mixer),
  15611. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15612. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15613. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15614. msm_routing_get_port_mixer,
  15615. msm_routing_put_port_mixer),
  15616. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15617. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15618. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15619. msm_routing_get_port_mixer,
  15620. msm_routing_put_port_mixer),
  15621. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15622. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15623. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15624. msm_routing_get_port_mixer,
  15625. msm_routing_put_port_mixer),
  15626. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15627. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15628. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15629. msm_routing_get_port_mixer,
  15630. msm_routing_put_port_mixer),
  15631. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15632. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15633. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15634. msm_routing_get_port_mixer,
  15635. msm_routing_put_port_mixer),
  15636. };
  15637. static const struct snd_kcontrol_new tert_mi2s_rx_port_mixer_controls[] = {
  15638. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15639. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15640. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15641. msm_routing_put_port_mixer),
  15642. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15643. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15644. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15645. msm_routing_put_port_mixer),
  15646. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15647. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15648. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15649. msm_routing_put_port_mixer),
  15650. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15651. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15652. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15653. msm_routing_put_port_mixer),
  15654. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  15655. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15656. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15657. msm_routing_put_port_mixer),
  15658. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15659. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15660. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15661. msm_routing_put_port_mixer),
  15662. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15663. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15664. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  15665. msm_routing_put_port_mixer),
  15666. };
  15667. static const struct snd_kcontrol_new sec_mi2s_rx_port_mixer_controls[] = {
  15668. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15669. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15670. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15671. msm_routing_put_port_mixer),
  15672. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15673. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15674. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15675. msm_routing_put_port_mixer),
  15676. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15677. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15678. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15679. msm_routing_put_port_mixer),
  15680. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15681. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15682. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15683. msm_routing_put_port_mixer),
  15684. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  15685. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15686. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15687. msm_routing_put_port_mixer),
  15688. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15689. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15690. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15691. msm_routing_put_port_mixer),
  15692. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15693. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15694. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  15695. msm_routing_put_port_mixer),
  15696. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15697. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15698. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  15699. msm_routing_put_port_mixer),
  15700. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15701. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15702. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15703. msm_routing_put_port_mixer),
  15704. };
  15705. static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
  15706. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15707. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15708. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15709. msm_routing_put_listen_mixer),
  15710. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  15711. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15712. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15713. msm_routing_put_listen_mixer),
  15714. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15715. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15716. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15717. msm_routing_put_listen_mixer),
  15718. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15719. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15720. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15721. msm_routing_put_listen_mixer),
  15722. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15723. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15724. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15725. msm_routing_put_listen_mixer),
  15726. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15727. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15728. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15729. msm_routing_put_listen_mixer),
  15730. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15731. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15732. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15733. msm_routing_put_listen_mixer),
  15734. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15735. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15736. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15737. msm_routing_put_listen_mixer),
  15738. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15739. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15740. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15741. msm_routing_put_listen_mixer),
  15742. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15743. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15744. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15745. msm_routing_put_listen_mixer),
  15746. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15747. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15748. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15749. msm_routing_put_listen_mixer),
  15750. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15751. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15752. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15753. msm_routing_put_listen_mixer),
  15754. };
  15755. static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
  15756. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15757. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15758. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15759. msm_routing_put_listen_mixer),
  15760. SOC_DOUBLE_EXT("SLIMBUS_1_TX",
  15761. SND_SOC_NOPM,
  15762. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15763. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15764. msm_routing_put_listen_mixer),
  15765. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15766. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15767. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15768. msm_routing_put_listen_mixer),
  15769. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15770. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15771. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15772. msm_routing_put_listen_mixer),
  15773. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15774. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15775. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15776. msm_routing_put_listen_mixer),
  15777. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15778. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15779. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15780. msm_routing_put_listen_mixer),
  15781. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15782. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15783. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15784. msm_routing_put_listen_mixer),
  15785. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15786. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15787. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15788. msm_routing_put_listen_mixer),
  15789. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15790. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15791. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15792. msm_routing_put_listen_mixer),
  15793. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15794. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15795. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15796. msm_routing_put_listen_mixer),
  15797. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15798. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15799. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15800. msm_routing_put_listen_mixer),
  15801. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15802. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15803. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15804. msm_routing_put_listen_mixer),
  15805. };
  15806. static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
  15807. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15808. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15809. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15810. msm_routing_put_listen_mixer),
  15811. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  15812. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15813. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15814. msm_routing_put_listen_mixer),
  15815. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15816. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15817. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15818. msm_routing_put_listen_mixer),
  15819. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15820. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15821. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15822. msm_routing_put_listen_mixer),
  15823. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15824. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15825. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15826. msm_routing_put_listen_mixer),
  15827. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15828. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15829. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15830. msm_routing_put_listen_mixer),
  15831. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15832. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15833. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15834. msm_routing_put_listen_mixer),
  15835. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15836. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15837. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15838. msm_routing_put_listen_mixer),
  15839. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15840. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15841. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15842. msm_routing_put_listen_mixer),
  15843. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15844. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15845. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15846. msm_routing_put_listen_mixer),
  15847. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15848. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15849. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15850. msm_routing_put_listen_mixer),
  15851. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15852. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15853. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15854. msm_routing_put_listen_mixer),
  15855. };
  15856. static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
  15857. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15858. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15859. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15860. msm_routing_put_listen_mixer),
  15861. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  15862. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15863. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15864. msm_routing_put_listen_mixer),
  15865. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15866. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15867. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15868. msm_routing_put_listen_mixer),
  15869. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15870. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15871. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15872. msm_routing_put_listen_mixer),
  15873. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15874. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15875. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15876. msm_routing_put_listen_mixer),
  15877. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15878. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15879. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15880. msm_routing_put_listen_mixer),
  15881. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15882. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15883. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15884. msm_routing_put_listen_mixer),
  15885. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15886. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15887. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15888. msm_routing_put_listen_mixer),
  15889. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15890. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15891. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15892. msm_routing_put_listen_mixer),
  15893. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15894. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15895. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15896. msm_routing_put_listen_mixer),
  15897. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15898. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15899. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15900. msm_routing_put_listen_mixer),
  15901. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15902. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15903. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15904. msm_routing_put_listen_mixer),
  15905. };
  15906. static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
  15907. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15908. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15909. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15910. msm_routing_put_listen_mixer),
  15911. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  15912. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15913. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15914. msm_routing_put_listen_mixer),
  15915. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15916. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15917. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15918. msm_routing_put_listen_mixer),
  15919. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15920. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15921. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15922. msm_routing_put_listen_mixer),
  15923. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15924. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15925. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15926. msm_routing_put_listen_mixer),
  15927. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15928. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15929. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15930. msm_routing_put_listen_mixer),
  15931. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15932. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15933. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15934. msm_routing_put_listen_mixer),
  15935. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15936. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15937. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15938. msm_routing_put_listen_mixer),
  15939. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15940. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15941. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15942. msm_routing_put_listen_mixer),
  15943. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15944. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15945. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15946. msm_routing_put_listen_mixer),
  15947. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15948. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15949. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15950. msm_routing_put_listen_mixer),
  15951. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15952. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15953. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  15954. msm_routing_put_listen_mixer),
  15955. };
  15956. static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
  15957. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15958. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15959. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15960. msm_routing_put_listen_mixer),
  15961. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  15962. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15963. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15964. msm_routing_put_listen_mixer),
  15965. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15966. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15967. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15968. msm_routing_put_listen_mixer),
  15969. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15970. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15971. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15972. msm_routing_put_listen_mixer),
  15973. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15974. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15975. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15976. msm_routing_put_listen_mixer),
  15977. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15978. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15979. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15980. msm_routing_put_listen_mixer),
  15981. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15982. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15983. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15984. msm_routing_put_listen_mixer),
  15985. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15986. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15987. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15988. msm_routing_put_listen_mixer),
  15989. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15990. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15991. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15992. msm_routing_put_listen_mixer),
  15993. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15994. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15995. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  15996. msm_routing_put_listen_mixer),
  15997. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15998. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15999. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16000. msm_routing_put_listen_mixer),
  16001. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16002. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  16003. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16004. msm_routing_put_listen_mixer),
  16005. };
  16006. static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
  16007. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  16008. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16009. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16010. msm_routing_put_listen_mixer),
  16011. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  16012. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16013. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16014. msm_routing_put_listen_mixer),
  16015. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  16016. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16017. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16018. msm_routing_put_listen_mixer),
  16019. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  16020. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  16021. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16022. msm_routing_put_listen_mixer),
  16023. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  16024. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  16025. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16026. msm_routing_put_listen_mixer),
  16027. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16028. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16029. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16030. msm_routing_put_listen_mixer),
  16031. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16032. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16033. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16034. msm_routing_put_listen_mixer),
  16035. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16036. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16037. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16038. msm_routing_put_listen_mixer),
  16039. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16040. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  16041. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16042. msm_routing_put_listen_mixer),
  16043. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16044. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  16045. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16046. msm_routing_put_listen_mixer),
  16047. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16048. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  16049. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16050. msm_routing_put_listen_mixer),
  16051. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16052. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  16053. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16054. msm_routing_put_listen_mixer),
  16055. };
  16056. static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
  16057. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  16058. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16059. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16060. msm_routing_put_listen_mixer),
  16061. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  16062. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16063. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16064. msm_routing_put_listen_mixer),
  16065. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  16066. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16067. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16068. msm_routing_put_listen_mixer),
  16069. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  16070. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  16071. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16072. msm_routing_put_listen_mixer),
  16073. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  16074. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  16075. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16076. msm_routing_put_listen_mixer),
  16077. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16078. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16079. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16080. msm_routing_put_listen_mixer),
  16081. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16082. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16083. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16084. msm_routing_put_listen_mixer),
  16085. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16086. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16087. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16088. msm_routing_put_listen_mixer),
  16089. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16090. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  16091. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16092. msm_routing_put_listen_mixer),
  16093. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16094. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  16095. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16096. msm_routing_put_listen_mixer),
  16097. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16098. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  16099. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16100. msm_routing_put_listen_mixer),
  16101. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16102. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  16103. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16104. msm_routing_put_listen_mixer),
  16105. };
  16106. static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
  16107. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16108. 0, 1, 0, msm_routing_get_switch_mixer,
  16109. msm_routing_put_switch_mixer);
  16110. static const struct snd_kcontrol_new slim1_fm_switch_mixer_controls =
  16111. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16112. 0, 1, 0, msm_routing_get_switch_mixer,
  16113. msm_routing_put_switch_mixer);
  16114. static const struct snd_kcontrol_new slim3_fm_switch_mixer_controls =
  16115. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16116. 0, 1, 0, msm_routing_get_switch_mixer,
  16117. msm_routing_put_switch_mixer);
  16118. static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
  16119. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16120. 0, 1, 0, msm_routing_get_switch_mixer,
  16121. msm_routing_put_switch_mixer);
  16122. static const struct snd_kcontrol_new cdc_dma_wsa_switch_mixer_controls =
  16123. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16124. 0, 1, 0, msm_routing_get_switch_mixer,
  16125. msm_routing_put_switch_mixer);
  16126. static const struct snd_kcontrol_new cdc_dma_rx_switch_mixer_controls =
  16127. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16128. 0, 1, 0, msm_routing_get_switch_mixer,
  16129. msm_routing_put_switch_mixer);
  16130. static const struct snd_kcontrol_new slim6_fm_switch_mixer_controls =
  16131. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16132. 0, 1, 0, msm_routing_get_switch_mixer,
  16133. msm_routing_put_switch_mixer);
  16134. static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
  16135. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16136. 0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
  16137. msm_routing_put_fm_pcmrx_switch_mixer);
  16138. static const struct snd_kcontrol_new int0_mi2s_rx_switch_mixer_controls =
  16139. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16140. 0, 1, 0, msm_routing_get_int0_mi2s_switch_mixer,
  16141. msm_routing_put_int0_mi2s_switch_mixer);
  16142. static const struct snd_kcontrol_new int4_mi2s_rx_switch_mixer_controls =
  16143. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16144. 0, 1, 0, msm_routing_get_int4_mi2s_switch_mixer,
  16145. msm_routing_put_int4_mi2s_switch_mixer);
  16146. static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
  16147. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16148. 0, 1, 0, msm_routing_get_pri_mi2s_switch_mixer,
  16149. msm_routing_put_pri_mi2s_switch_mixer);
  16150. static const struct snd_kcontrol_new sec_mi2s_rx_switch_mixer_controls =
  16151. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16152. 0, 1, 0, msm_routing_get_sec_mi2s_switch_mixer,
  16153. msm_routing_put_sec_mi2s_switch_mixer);
  16154. static const struct snd_kcontrol_new tert_mi2s_rx_switch_mixer_controls =
  16155. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16156. 0, 1, 0, msm_routing_get_tert_mi2s_switch_mixer,
  16157. msm_routing_put_tert_mi2s_switch_mixer);
  16158. static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
  16159. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16160. 0, 1, 0, msm_routing_get_quat_mi2s_switch_mixer,
  16161. msm_routing_put_quat_mi2s_switch_mixer);
  16162. static const struct snd_kcontrol_new quin_mi2s_rx_switch_mixer_controls =
  16163. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16164. 0, 1, 0, msm_routing_get_quin_mi2s_switch_mixer,
  16165. msm_routing_put_quin_mi2s_switch_mixer);
  16166. static const struct snd_kcontrol_new hfp_pri_aux_switch_mixer_controls =
  16167. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16168. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  16169. msm_routing_put_hfp_switch_mixer);
  16170. static const struct snd_kcontrol_new hfp_aux_switch_mixer_controls =
  16171. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16172. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  16173. msm_routing_put_hfp_switch_mixer);
  16174. static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
  16175. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16176. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  16177. msm_routing_put_hfp_switch_mixer);
  16178. static const struct snd_kcontrol_new hfp_slim7_switch_mixer_controls =
  16179. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16180. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  16181. msm_routing_put_hfp_switch_mixer);
  16182. static const struct snd_kcontrol_new usb_switch_mixer_controls =
  16183. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16184. 0, 1, 0, msm_routing_get_usb_switch_mixer,
  16185. msm_routing_put_usb_switch_mixer);
  16186. static const struct snd_kcontrol_new a2dp_slim7_switch_mixer_controls =
  16187. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16188. 0, 1, 0, msm_routing_a2dp_switch_mixer_get,
  16189. msm_routing_a2dp_switch_mixer_put);
  16190. static const struct soc_enum lsm_port_enum =
  16191. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_port_text), lsm_port_text);
  16192. static const char * const lsm_func_text[] = {
  16193. "None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
  16194. };
  16195. static const struct soc_enum lsm_func_enum =
  16196. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
  16197. static const struct snd_kcontrol_new lsm_controls[] = {
  16198. /* kcontrol of lsm_function */
  16199. SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16200. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16201. SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16202. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16203. SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16204. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16205. SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16206. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16207. SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16208. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16209. SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16210. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16211. SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16212. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16213. SOC_ENUM_EXT(QUAT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16214. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16215. SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16216. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16217. SOC_ENUM_EXT(TX_CDC_DMA_TX_3_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16218. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16219. SOC_ENUM_EXT(QUIN_TDM_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16220. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16221. /* kcontrol of lsm_port */
  16222. SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
  16223. msm_routing_lsm_port_get,
  16224. msm_routing_lsm_port_put),
  16225. SOC_ENUM_EXT("LSM2 Port", lsm_port_enum,
  16226. msm_routing_lsm_port_get,
  16227. msm_routing_lsm_port_put),
  16228. SOC_ENUM_EXT("LSM3 Port", lsm_port_enum,
  16229. msm_routing_lsm_port_get,
  16230. msm_routing_lsm_port_put),
  16231. SOC_ENUM_EXT("LSM4 Port", lsm_port_enum,
  16232. msm_routing_lsm_port_get,
  16233. msm_routing_lsm_port_put),
  16234. SOC_ENUM_EXT("LSM5 Port", lsm_port_enum,
  16235. msm_routing_lsm_port_get,
  16236. msm_routing_lsm_port_put),
  16237. SOC_ENUM_EXT("LSM6 Port", lsm_port_enum,
  16238. msm_routing_lsm_port_get,
  16239. msm_routing_lsm_port_put),
  16240. SOC_ENUM_EXT("LSM7 Port", lsm_port_enum,
  16241. msm_routing_lsm_port_get,
  16242. msm_routing_lsm_port_put),
  16243. SOC_ENUM_EXT("LSM8 Port", lsm_port_enum,
  16244. msm_routing_lsm_port_get,
  16245. msm_routing_lsm_port_put),
  16246. };
  16247. static const char * const aanc_slim_0_rx_text[] = {
  16248. "ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
  16249. "SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
  16250. };
  16251. static const struct soc_enum aanc_slim_0_rx_enum =
  16252. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
  16253. aanc_slim_0_rx_text);
  16254. static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
  16255. SOC_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
  16256. msm_routing_slim_0_rx_aanc_mux_get,
  16257. msm_routing_slim_0_rx_aanc_mux_put)
  16258. };
  16259. static int msm_routing_aanc_noise_level_get(struct snd_kcontrol *kcontrol,
  16260. struct snd_ctl_elem_value *ucontrol)
  16261. {
  16262. ucontrol->value.integer.value[0] = aanc_level;
  16263. return 0;
  16264. }
  16265. static int msm_routing_aanc_noise_level_put(struct snd_kcontrol *kcontrol,
  16266. struct snd_ctl_elem_value *ucontrol)
  16267. {
  16268. int ret = 0;
  16269. mutex_lock(&routing_lock);
  16270. aanc_level = ucontrol->value.integer.value[0];
  16271. pr_debug("%s: value: %ld\n",
  16272. __func__, ucontrol->value.integer.value[0]);
  16273. ret = afe_set_aanc_noise_level(aanc_level);
  16274. mutex_unlock(&routing_lock);
  16275. return ret;
  16276. }
  16277. static const struct snd_kcontrol_new aanc_noise_level[] = {
  16278. SOC_SINGLE_EXT("AANC Noise Level", SND_SOC_NOPM, 0, 255,
  16279. 0, msm_routing_aanc_noise_level_get, msm_routing_aanc_noise_level_put)
  16280. };
  16281. static int msm_routing_get_stereo_to_custom_stereo_control(
  16282. struct snd_kcontrol *kcontrol,
  16283. struct snd_ctl_elem_value *ucontrol)
  16284. {
  16285. ucontrol->value.integer.value[0] = is_custom_stereo_on;
  16286. return 0;
  16287. }
  16288. static int msm_routing_put_stereo_to_custom_stereo_control(
  16289. struct snd_kcontrol *kcontrol,
  16290. struct snd_ctl_elem_value *ucontrol)
  16291. {
  16292. int flag = 0, i = 0, rc = 0, idx = 0;
  16293. int be_index = 0, port_id, topo_id;
  16294. unsigned int session_id = 0;
  16295. uint16_t op_FL_ip_FL_weight = 0;
  16296. uint16_t op_FL_ip_FR_weight = 0;
  16297. uint16_t op_FR_ip_FL_weight = 0;
  16298. uint16_t op_FR_ip_FR_weight = 0;
  16299. flag = ucontrol->value.integer.value[0];
  16300. pr_debug("%s E flag %d\n", __func__, flag);
  16301. if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
  16302. pr_err("%s: is_custom_stereo_on %d, flag %d\n",
  16303. __func__, is_custom_stereo_on, flag);
  16304. return 0;
  16305. }
  16306. is_custom_stereo_on = flag ? true : false;
  16307. pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
  16308. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  16309. port_id = msm_bedais[be_index].port_id;
  16310. if (!msm_bedais[be_index].active)
  16311. continue;
  16312. if ((port_id != SLIMBUS_0_RX) &&
  16313. (port_id != RT_PROXY_PORT_001_RX) &&
  16314. (port_id != AFE_PORT_ID_PRIMARY_MI2S_RX) &&
  16315. (port_id != AFE_PORT_ID_INT4_MI2S_RX))
  16316. continue;
  16317. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  16318. MSM_FRONTEND_DAI_MM_SIZE) {
  16319. if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
  16320. LEGACY_PCM_MODE)
  16321. goto skip_send_custom_stereo;
  16322. session_id =
  16323. fe_dai_map[i][SESSION_TYPE_RX].strm_id;
  16324. if (is_custom_stereo_on) {
  16325. op_FL_ip_FL_weight =
  16326. Q14_GAIN_ZERO_POINT_FIVE;
  16327. op_FL_ip_FR_weight =
  16328. Q14_GAIN_ZERO_POINT_FIVE;
  16329. op_FR_ip_FL_weight =
  16330. Q14_GAIN_ZERO_POINT_FIVE;
  16331. op_FR_ip_FR_weight =
  16332. Q14_GAIN_ZERO_POINT_FIVE;
  16333. } else {
  16334. op_FL_ip_FL_weight = Q14_GAIN_UNITY;
  16335. op_FL_ip_FR_weight = 0;
  16336. op_FR_ip_FL_weight = 0;
  16337. op_FR_ip_FR_weight = Q14_GAIN_UNITY;
  16338. }
  16339. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  16340. unsigned long copp =
  16341. session_copp_map[i]
  16342. [SESSION_TYPE_RX][be_index];
  16343. if (!test_bit(idx, &copp))
  16344. goto skip_send_custom_stereo;
  16345. topo_id = adm_get_topology_for_port_copp_idx(
  16346. msm_bedais[be_index].port_id, idx);
  16347. if (topo_id < 0)
  16348. pr_debug("%s:Err:custom stereo topo %d",
  16349. __func__, topo_id);
  16350. pr_debug("idx %d\n", idx);
  16351. if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
  16352. rc = msm_ds2_dap_set_custom_stereo_onoff
  16353. (msm_bedais[be_index].port_id,
  16354. idx, is_custom_stereo_on);
  16355. else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
  16356. rc = dolby_dap_set_custom_stereo_onoff(
  16357. msm_bedais[be_index].port_id,
  16358. idx, is_custom_stereo_on);
  16359. else
  16360. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
  16361. (msm_bedais[be_index].port_id,
  16362. idx, session_id,
  16363. op_FL_ip_FL_weight,
  16364. op_FL_ip_FR_weight,
  16365. op_FR_ip_FL_weight,
  16366. op_FR_ip_FR_weight);
  16367. if (rc < 0)
  16368. skip_send_custom_stereo:
  16369. pr_err("%s: err setting custom stereo\n",
  16370. __func__);
  16371. }
  16372. }
  16373. }
  16374. return 0;
  16375. }
  16376. static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
  16377. SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
  16378. 1, 0, msm_routing_get_stereo_to_custom_stereo_control,
  16379. msm_routing_put_stereo_to_custom_stereo_control),
  16380. };
  16381. static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  16382. struct snd_ctl_elem_value *ucontrol)
  16383. {
  16384. return 0;
  16385. }
  16386. static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  16387. struct snd_ctl_elem_value *ucontrol)
  16388. {
  16389. int i = 0, j;
  16390. int num_app_types = ucontrol->value.integer.value[i++];
  16391. pr_debug("%s\n", __func__);
  16392. memset(app_type_cfg, 0, MAX_APP_TYPES*
  16393. sizeof(struct msm_pcm_routing_app_type_data));
  16394. if (num_app_types > MAX_APP_TYPES) {
  16395. pr_err("%s: number of app types exceed the max supported\n",
  16396. __func__);
  16397. return -EINVAL;
  16398. }
  16399. for (j = 0; j < num_app_types; j++) {
  16400. app_type_cfg[j].app_type =
  16401. ucontrol->value.integer.value[i++];
  16402. app_type_cfg[j].sample_rate =
  16403. ucontrol->value.integer.value[i++];
  16404. app_type_cfg[j].bit_width =
  16405. ucontrol->value.integer.value[i++];
  16406. }
  16407. return 0;
  16408. }
  16409. static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
  16410. struct snd_ctl_elem_value *ucontrol)
  16411. {
  16412. int j, fe_id, be_id, port_type;
  16413. int ret = 0;
  16414. unsigned long copp;
  16415. struct msm_pcm_routing_bdai_data *bedai;
  16416. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  16417. SESSION_TYPE_RX;
  16418. int app_type = ucontrol->value.integer.value[1];
  16419. int gain = (ucontrol->value.integer.value[2] +
  16420. ucontrol->value.integer.value[3])/2;
  16421. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  16422. MSM_AFE_PORT_TYPE_TX;
  16423. mutex_lock(&routing_lock);
  16424. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  16425. if (is_be_dai_extproc(be_id))
  16426. continue;
  16427. bedai = &msm_bedais[be_id];
  16428. if (afe_get_port_type(bedai->port_id) != port_type)
  16429. continue;
  16430. if (!bedai->active)
  16431. continue;
  16432. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  16433. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  16434. continue;
  16435. if (app_type !=
  16436. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  16437. continue;
  16438. copp = session_copp_map[fe_id][dir][be_id];
  16439. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  16440. if (!test_bit(j, &copp))
  16441. continue;
  16442. ret |= adm_set_volume(bedai->port_id, j, gain);
  16443. }
  16444. }
  16445. }
  16446. mutex_unlock(&routing_lock);
  16447. return ret ? -EINVAL : 0;
  16448. }
  16449. static const struct snd_kcontrol_new app_type_cfg_controls[] = {
  16450. SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
  16451. 0xFFFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
  16452. msm_routing_put_app_type_cfg_control),
  16453. SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
  16454. 0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)
  16455. };
  16456. static int msm_routing_put_module_cfg_control(struct snd_kcontrol *kcontrol,
  16457. struct snd_ctl_elem_value *ucontrol)
  16458. {
  16459. int copp_idx, fe_id, be_id, port_type;
  16460. int ret = 0;
  16461. unsigned long copp;
  16462. struct msm_pcm_routing_bdai_data *bedai;
  16463. u8 *packed_params = NULL;
  16464. struct param_hdr_v3 param_hdr;
  16465. u32 packed_param_size = (sizeof(struct param_hdr_v3) +
  16466. sizeof(uint32_t));
  16467. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  16468. SESSION_TYPE_RX;
  16469. int app_type = ucontrol->value.integer.value[1];
  16470. int module_id = ucontrol->value.integer.value[2];
  16471. int instance_id = ucontrol->value.integer.value[3];
  16472. int param_id = ucontrol->value.integer.value[4];
  16473. int param_value = ucontrol->value.integer.value[5];
  16474. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  16475. MSM_AFE_PORT_TYPE_TX;
  16476. pr_debug("%s app_type:%d mod_id:%d instance_id:%d param_id:%d value:%d\n",
  16477. __func__, app_type, module_id,
  16478. instance_id, param_id, param_value);
  16479. packed_params = kzalloc(packed_param_size, GFP_KERNEL);
  16480. if (!packed_params)
  16481. return -ENOMEM;
  16482. memset(&param_hdr, 0, sizeof(param_hdr));
  16483. param_hdr.module_id = module_id;
  16484. param_hdr.instance_id = instance_id;
  16485. param_hdr.param_id = param_id;
  16486. param_hdr.param_size = sizeof(uint32_t);
  16487. packed_param_size = 0;
  16488. mutex_lock(&routing_lock);
  16489. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  16490. if (is_be_dai_extproc(be_id))
  16491. continue;
  16492. bedai = &msm_bedais[be_id];
  16493. if (afe_get_port_type(bedai->port_id) != port_type)
  16494. continue;
  16495. if (!bedai->active)
  16496. continue;
  16497. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  16498. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  16499. continue;
  16500. if (app_type !=
  16501. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  16502. continue;
  16503. copp = session_copp_map[fe_id][dir][be_id];
  16504. for (copp_idx = 0; copp_idx < MAX_COPPS_PER_PORT;
  16505. copp_idx++) {
  16506. if (!test_bit(copp_idx, &copp))
  16507. continue;
  16508. ret = q6common_pack_pp_params(packed_params,
  16509. &param_hdr,
  16510. (u8 *) &param_value,
  16511. &packed_param_size);
  16512. if (ret) {
  16513. pr_err("%s: Failed to pack params, error %d\n",
  16514. __func__, ret);
  16515. goto done;
  16516. }
  16517. ret = adm_set_pp_params(bedai->port_id,
  16518. copp_idx, NULL,
  16519. packed_params,
  16520. packed_param_size);
  16521. if (ret) {
  16522. pr_err("%s: Setting param failed with err=%d\n",
  16523. __func__, ret);
  16524. ret = -EINVAL;
  16525. goto done;
  16526. }
  16527. }
  16528. }
  16529. }
  16530. done:
  16531. mutex_unlock(&routing_lock);
  16532. kfree(packed_params);
  16533. return ret;
  16534. }
  16535. static const struct snd_kcontrol_new module_cfg_controls[] = {
  16536. SOC_SINGLE_MULTI_EXT("Audio Effect", SND_SOC_NOPM, 0,
  16537. 0x2000, 0, 6, NULL, msm_routing_put_module_cfg_control)
  16538. };
  16539. static int msm_routing_get_lsm_app_type_cfg_control(
  16540. struct snd_kcontrol *kcontrol,
  16541. struct snd_ctl_elem_value *ucontrol)
  16542. {
  16543. return 0;
  16544. }
  16545. static int msm_routing_put_lsm_app_type_cfg_control(
  16546. struct snd_kcontrol *kcontrol,
  16547. struct snd_ctl_elem_value *ucontrol)
  16548. {
  16549. int shift = ((struct soc_multi_mixer_control *)
  16550. kcontrol->private_value)->shift;
  16551. int i = 0, j;
  16552. int num_app_types = ucontrol->value.integer.value[i++];
  16553. memset(lsm_app_type_cfg, 0, MAX_APP_TYPES*
  16554. sizeof(struct msm_pcm_routing_app_type_data));
  16555. if (num_app_types > MAX_APP_TYPES) {
  16556. pr_err("%s: number of app types exceed the max supported\n",
  16557. __func__);
  16558. return -EINVAL;
  16559. }
  16560. for (j = 0; j < num_app_types; j++) {
  16561. lsm_app_type_cfg[j].app_type =
  16562. ucontrol->value.integer.value[i++];
  16563. lsm_app_type_cfg[j].sample_rate =
  16564. ucontrol->value.integer.value[i++];
  16565. lsm_app_type_cfg[j].bit_width =
  16566. ucontrol->value.integer.value[i++];
  16567. /* Shift of 1 indicates this is V2 mixer control */
  16568. if (shift == 1)
  16569. lsm_app_type_cfg[j].num_out_channels =
  16570. ucontrol->value.integer.value[i++];
  16571. }
  16572. return 0;
  16573. }
  16574. static const struct snd_kcontrol_new lsm_app_type_cfg_controls[] = {
  16575. SOC_SINGLE_MULTI_EXT("Listen App Type Config", SND_SOC_NOPM, 0,
  16576. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  16577. msm_routing_put_lsm_app_type_cfg_control),
  16578. SOC_SINGLE_MULTI_EXT("Listen App Type Config V2", SND_SOC_NOPM, 1,
  16579. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  16580. msm_routing_put_lsm_app_type_cfg_control),
  16581. };
  16582. static int msm_routing_get_use_ds1_or_ds2_control(
  16583. struct snd_kcontrol *kcontrol,
  16584. struct snd_ctl_elem_value *ucontrol)
  16585. {
  16586. ucontrol->value.integer.value[0] = is_ds2_on;
  16587. return 0;
  16588. }
  16589. static int msm_routing_put_use_ds1_or_ds2_control(
  16590. struct snd_kcontrol *kcontrol,
  16591. struct snd_ctl_elem_value *ucontrol)
  16592. {
  16593. is_ds2_on = ucontrol->value.integer.value[0];
  16594. return 0;
  16595. }
  16596. static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
  16597. SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
  16598. 1, 0, msm_routing_get_use_ds1_or_ds2_control,
  16599. msm_routing_put_use_ds1_or_ds2_control),
  16600. };
  16601. int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
  16602. struct snd_ctl_elem_value *ucontrol) {
  16603. int rc = 0;
  16604. int be_idx = 0;
  16605. char *param_value;
  16606. int *update_param_value;
  16607. uint32_t param_size = (RMS_PAYLOAD_LEN + 1) * sizeof(uint32_t);
  16608. struct param_hdr_v3 param_hdr;
  16609. param_value = kzalloc(param_size, GFP_KERNEL);
  16610. if (!param_value)
  16611. return -ENOMEM;
  16612. memset(&param_hdr, 0, sizeof(param_hdr));
  16613. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
  16614. if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
  16615. break;
  16616. if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
  16617. param_hdr.module_id = RMS_MODULEID_APPI_PASSTHRU;
  16618. param_hdr.instance_id = INSTANCE_ID_0;
  16619. param_hdr.param_id = RMS_PARAM_FIRST_SAMPLE;
  16620. param_hdr.param_size = param_size;
  16621. rc = adm_get_pp_params(SLIMBUS_0_TX, 0, ADM_CLIENT_ID_DEFAULT,
  16622. NULL, &param_hdr, (u8 *) param_value);
  16623. if (rc) {
  16624. pr_err("%s: get parameters failed:%d\n", __func__, rc);
  16625. kfree(param_value);
  16626. return -EINVAL;
  16627. }
  16628. update_param_value = (int *)param_value;
  16629. ucontrol->value.integer.value[0] = update_param_value[0];
  16630. pr_debug("%s: FROM DSP value[0] 0x%x\n",
  16631. __func__, update_param_value[0]);
  16632. }
  16633. kfree(param_value);
  16634. return 0;
  16635. }
  16636. static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
  16637. struct snd_ctl_elem_value *ucontrol)
  16638. {
  16639. voc_session_id = ucontrol->value.integer.value[0];
  16640. pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
  16641. return 0;
  16642. }
  16643. static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
  16644. struct snd_ctl_elem_value *ucontrol)
  16645. {
  16646. ucontrol->value.integer.value[0] = voc_session_id;
  16647. return 0;
  16648. }
  16649. static struct snd_kcontrol_new msm_voc_session_controls[] = {
  16650. SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
  16651. 0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
  16652. msm_voc_session_id_put),
  16653. };
  16654. static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
  16655. struct snd_ctl_elem_info *uinfo)
  16656. {
  16657. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  16658. uinfo->count = sizeof(struct sound_focus_param);
  16659. return 0;
  16660. }
  16661. static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
  16662. struct snd_ctl_elem_value *ucontrol)
  16663. {
  16664. int ret = 0;
  16665. struct sound_focus_param soundFocusData;
  16666. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  16667. sizeof(struct sound_focus_param));
  16668. ret = voc_set_sound_focus(soundFocusData);
  16669. if (ret) {
  16670. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  16671. __func__, ret);
  16672. ret = -EINVAL;
  16673. }
  16674. return ret;
  16675. }
  16676. static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
  16677. struct snd_ctl_elem_value *ucontrol)
  16678. {
  16679. int ret = 0;
  16680. struct sound_focus_param soundFocusData;
  16681. memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
  16682. ret = voc_get_sound_focus(&soundFocusData);
  16683. if (ret) {
  16684. pr_debug("%s: Error getting Sound Focus Params, err=%d\n",
  16685. __func__, ret);
  16686. ret = -EINVAL;
  16687. goto done;
  16688. }
  16689. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  16690. sizeof(struct sound_focus_param));
  16691. done:
  16692. return ret;
  16693. }
  16694. static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
  16695. struct snd_ctl_elem_info *uinfo)
  16696. {
  16697. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  16698. uinfo->count = sizeof(struct source_tracking_param);
  16699. return 0;
  16700. }
  16701. static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
  16702. struct snd_ctl_elem_value *ucontrol)
  16703. {
  16704. int ret = 0;
  16705. struct source_tracking_param sourceTrackingData;
  16706. memset(&sourceTrackingData, 0, sizeof(struct source_tracking_param));
  16707. ret = voc_get_source_tracking(&sourceTrackingData);
  16708. if (ret) {
  16709. pr_debug("%s: Error getting Source Tracking Params, err=%d\n",
  16710. __func__, ret);
  16711. ret = -EINVAL;
  16712. goto done;
  16713. }
  16714. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  16715. sizeof(struct source_tracking_param));
  16716. done:
  16717. return ret;
  16718. }
  16719. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  16720. int *copp_idx)
  16721. {
  16722. int i, idx, be_idx;
  16723. int ret = 0;
  16724. unsigned long copp;
  16725. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  16726. ret = q6audio_validate_port(port_id);
  16727. if (ret < 0) {
  16728. pr_err("%s: port validation failed id 0x%x ret %d\n",
  16729. __func__, port_id, ret);
  16730. ret = -EINVAL;
  16731. goto done;
  16732. }
  16733. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  16734. if (msm_bedais[be_idx].port_id == port_id)
  16735. break;
  16736. }
  16737. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  16738. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  16739. ret = -EINVAL;
  16740. goto done;
  16741. }
  16742. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  16743. MSM_FRONTEND_DAI_MM_SIZE) {
  16744. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  16745. copp = session_copp_map[i]
  16746. [session_type][be_idx];
  16747. if (test_bit(idx, &copp))
  16748. break;
  16749. }
  16750. if (idx >= MAX_COPPS_PER_PORT)
  16751. continue;
  16752. else
  16753. break;
  16754. }
  16755. if (i >= MSM_FRONTEND_DAI_MM_SIZE) {
  16756. pr_debug("%s: Invalid FE, exiting\n", __func__);
  16757. ret = -EINVAL;
  16758. goto done;
  16759. }
  16760. *copp_idx = idx;
  16761. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  16762. done:
  16763. return ret;
  16764. }
  16765. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  16766. const char *prefix, int *port_id)
  16767. {
  16768. int ret = 0;
  16769. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  16770. /*
  16771. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  16772. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  16773. * and compare the string with the backend name to derive the port id.
  16774. */
  16775. if (!strcmp(kcontrol->id.name + strlen(prefix),
  16776. "SLIMBUS_0")) {
  16777. *port_id = SLIMBUS_0_TX;
  16778. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  16779. "TERT_MI2S")) {
  16780. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  16781. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  16782. "INT3_MI2S")) {
  16783. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  16784. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  16785. "VA_CDC_DMA_TX_0")) {
  16786. *port_id = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  16787. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  16788. "TX_CDC_DMA_TX_3")) {
  16789. *port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  16790. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  16791. "QUIN_TDM_TX_0")) {
  16792. *port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  16793. } else {
  16794. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  16795. __func__, kcontrol->id.name);
  16796. ret = -EINVAL;
  16797. goto done;
  16798. }
  16799. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  16800. __func__, kcontrol->id.name, *port_id);
  16801. done:
  16802. return ret;
  16803. }
  16804. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  16805. struct snd_ctl_elem_value *ucontrol)
  16806. {
  16807. int ret = 0;
  16808. struct sound_focus_param soundFocusData;
  16809. int port_id, copp_idx;
  16810. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  16811. "Sound Focus Audio Tx ", &port_id);
  16812. if (ret != 0) {
  16813. pr_err("%s: Error in deriving port id, err=%d\n",
  16814. __func__, ret);
  16815. ret = -EINVAL;
  16816. goto done;
  16817. }
  16818. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  16819. &copp_idx);
  16820. if (ret) {
  16821. pr_err("%s: Could not get copp idx for port_id=%d\n",
  16822. __func__, port_id);
  16823. ret = -EINVAL;
  16824. goto done;
  16825. }
  16826. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  16827. sizeof(struct sound_focus_param));
  16828. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  16829. if (ret) {
  16830. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  16831. __func__, ret);
  16832. ret = -EINVAL;
  16833. goto done;
  16834. }
  16835. done:
  16836. return ret;
  16837. }
  16838. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  16839. struct snd_ctl_elem_value *ucontrol)
  16840. {
  16841. int ret = 0;
  16842. struct sound_focus_param soundFocusData;
  16843. int port_id, copp_idx;
  16844. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  16845. "Sound Focus Audio Tx ", &port_id);
  16846. if (ret) {
  16847. pr_err("%s: Error in deriving port id, err=%d\n",
  16848. __func__, ret);
  16849. ret = -EINVAL;
  16850. goto done;
  16851. }
  16852. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  16853. &copp_idx);
  16854. if (ret) {
  16855. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  16856. __func__, port_id);
  16857. ret = -EINVAL;
  16858. goto done;
  16859. }
  16860. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  16861. if (ret) {
  16862. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  16863. __func__, ret);
  16864. ret = -EINVAL;
  16865. goto done;
  16866. }
  16867. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  16868. sizeof(struct sound_focus_param));
  16869. done:
  16870. return ret;
  16871. }
  16872. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  16873. struct snd_ctl_elem_value *ucontrol)
  16874. {
  16875. int ret = 0;
  16876. struct source_tracking_param sourceTrackingData;
  16877. int port_id, copp_idx;
  16878. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  16879. "Source Tracking Audio Tx ", &port_id);
  16880. if (ret) {
  16881. pr_err("%s: Error in deriving port id, err=%d\n",
  16882. __func__, ret);
  16883. ret = -EINVAL;
  16884. goto done;
  16885. }
  16886. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  16887. &copp_idx);
  16888. if (ret) {
  16889. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  16890. __func__, port_id);
  16891. ret = -EINVAL;
  16892. goto done;
  16893. }
  16894. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  16895. if (ret) {
  16896. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  16897. __func__, ret);
  16898. ret = -EINVAL;
  16899. goto done;
  16900. }
  16901. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  16902. sizeof(struct source_tracking_param));
  16903. done:
  16904. return ret;
  16905. }
  16906. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  16907. {
  16908. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  16909. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16910. .name = "Sound Focus Voice Tx SLIMBUS_0",
  16911. .info = msm_sound_focus_info,
  16912. .get = msm_voice_sound_focus_get,
  16913. .put = msm_voice_sound_focus_put,
  16914. },
  16915. {
  16916. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  16917. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16918. .name = "Source Tracking Voice Tx SLIMBUS_0",
  16919. .info = msm_source_tracking_info,
  16920. .get = msm_voice_source_tracking_get,
  16921. },
  16922. {
  16923. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  16924. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16925. .name = "Sound Focus Audio Tx SLIMBUS_0",
  16926. .info = msm_sound_focus_info,
  16927. .get = msm_audio_sound_focus_get,
  16928. .put = msm_audio_sound_focus_put,
  16929. },
  16930. {
  16931. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  16932. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16933. .name = "Source Tracking Audio Tx SLIMBUS_0",
  16934. .info = msm_source_tracking_info,
  16935. .get = msm_audio_source_tracking_get,
  16936. },
  16937. {
  16938. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  16939. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16940. .name = "Sound Focus Voice Tx TERT_MI2S",
  16941. .info = msm_sound_focus_info,
  16942. .get = msm_voice_sound_focus_get,
  16943. .put = msm_voice_sound_focus_put,
  16944. },
  16945. {
  16946. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  16947. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16948. .name = "Source Tracking Voice Tx TERT_MI2S",
  16949. .info = msm_source_tracking_info,
  16950. .get = msm_voice_source_tracking_get,
  16951. },
  16952. {
  16953. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  16954. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16955. .name = "Sound Focus Audio Tx TERT_MI2S",
  16956. .info = msm_sound_focus_info,
  16957. .get = msm_audio_sound_focus_get,
  16958. .put = msm_audio_sound_focus_put,
  16959. },
  16960. {
  16961. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  16962. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16963. .name = "Source Tracking Audio Tx TERT_MI2S",
  16964. .info = msm_source_tracking_info,
  16965. .get = msm_audio_source_tracking_get,
  16966. },
  16967. {
  16968. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  16969. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16970. .name = "Sound Focus Voice Tx INT3_MI2S",
  16971. .info = msm_sound_focus_info,
  16972. .get = msm_voice_sound_focus_get,
  16973. .put = msm_voice_sound_focus_put,
  16974. },
  16975. {
  16976. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  16977. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16978. .name = "Source Tracking Voice Tx INT3_MI2S",
  16979. .info = msm_source_tracking_info,
  16980. .get = msm_voice_source_tracking_get,
  16981. },
  16982. {
  16983. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  16984. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16985. .name = "Sound Focus Audio Tx INT3_MI2S",
  16986. .info = msm_sound_focus_info,
  16987. .get = msm_audio_sound_focus_get,
  16988. .put = msm_audio_sound_focus_put,
  16989. },
  16990. {
  16991. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  16992. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  16993. .name = "Source Tracking Audio Tx INT3_MI2S",
  16994. .info = msm_source_tracking_info,
  16995. .get = msm_audio_source_tracking_get,
  16996. },
  16997. {
  16998. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  16999. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17000. .name = "Sound Focus Voice Tx VA_CDC_DMA_TX_0",
  17001. .info = msm_sound_focus_info,
  17002. .get = msm_voice_sound_focus_get,
  17003. .put = msm_voice_sound_focus_put,
  17004. },
  17005. {
  17006. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17007. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17008. .name = "Source Tracking Voice Tx VA_CDC_DMA_TX_0",
  17009. .info = msm_source_tracking_info,
  17010. .get = msm_voice_source_tracking_get,
  17011. },
  17012. {
  17013. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17014. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17015. .name = "Sound Focus Audio Tx VA_CDC_DMA_TX_0",
  17016. .info = msm_sound_focus_info,
  17017. .get = msm_audio_sound_focus_get,
  17018. .put = msm_audio_sound_focus_put,
  17019. },
  17020. {
  17021. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17022. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17023. .name = "Source Tracking Audio Tx VA_CDC_DMA_TX_0",
  17024. .info = msm_source_tracking_info,
  17025. .get = msm_audio_source_tracking_get,
  17026. },
  17027. {
  17028. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17029. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17030. .name = "Sound Focus Voice Tx TX_CDC_DMA_TX_3",
  17031. .info = msm_sound_focus_info,
  17032. .get = msm_voice_sound_focus_get,
  17033. .put = msm_voice_sound_focus_put,
  17034. },
  17035. {
  17036. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17037. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17038. .name = "Source Tracking Voice Tx TX_CDC_DMA_TX_3",
  17039. .info = msm_source_tracking_info,
  17040. .get = msm_voice_source_tracking_get,
  17041. },
  17042. {
  17043. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17044. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17045. .name = "Sound Focus Audio Tx TX_CDC_DMA_TX_3",
  17046. .info = msm_sound_focus_info,
  17047. .get = msm_audio_sound_focus_get,
  17048. .put = msm_audio_sound_focus_put,
  17049. },
  17050. {
  17051. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17052. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17053. .name = "Source Tracking Audio Tx TX_CDC_DMA_TX_3",
  17054. .info = msm_source_tracking_info,
  17055. .get = msm_audio_source_tracking_get,
  17056. },
  17057. {
  17058. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17059. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17060. .name = "Sound Focus Voice Tx QUIN_TDM_TX_0",
  17061. .info = msm_sound_focus_info,
  17062. .get = msm_voice_sound_focus_get,
  17063. .put = msm_voice_sound_focus_put,
  17064. },
  17065. {
  17066. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17067. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17068. .name = "Source Tracking Voice Tx QUIN_TDM_TX_0",
  17069. .info = msm_source_tracking_info,
  17070. .get = msm_voice_source_tracking_get,
  17071. },
  17072. {
  17073. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17074. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17075. .name = "Sound Focus Audio Tx QUIN_TDM_TX_0",
  17076. .info = msm_sound_focus_info,
  17077. .get = msm_audio_sound_focus_get,
  17078. .put = msm_audio_sound_focus_put,
  17079. },
  17080. {
  17081. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17082. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17083. .name = "Source Tracking Audio Tx QUIN_TDM_TX_0",
  17084. .info = msm_source_tracking_info,
  17085. .get = msm_audio_source_tracking_get,
  17086. },
  17087. };
  17088. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  17089. struct snd_ctl_elem_value *ucontrol)
  17090. {
  17091. int ret = 0;
  17092. int item;
  17093. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  17094. pr_debug("%s item is %d\n", __func__,
  17095. ucontrol->value.enumerated.item[0]);
  17096. mutex_lock(&routing_lock);
  17097. item = ucontrol->value.enumerated.item[0];
  17098. if (item < e->items) {
  17099. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  17100. __func__, e->shift_l, e->values[item]);
  17101. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  17102. e->values[item] < MSM_BACKEND_DAI_MAX)
  17103. /* Enable feedback TX path */
  17104. ret = afe_spk_prot_feed_back_cfg(
  17105. msm_bedais[e->values[item]].port_id,
  17106. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  17107. else {
  17108. pr_debug("%s values are out of range item %d\n",
  17109. __func__, e->values[item]);
  17110. /* Disable feedback TX path */
  17111. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  17112. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  17113. else
  17114. ret = -EINVAL;
  17115. }
  17116. } else {
  17117. pr_err("%s item value is out of range item\n", __func__);
  17118. ret = -EINVAL;
  17119. }
  17120. mutex_unlock(&routing_lock);
  17121. return ret;
  17122. }
  17123. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  17124. struct snd_ctl_elem_value *ucontrol)
  17125. {
  17126. int ret = 0;
  17127. int item;
  17128. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  17129. pr_debug("%s item is %d\n", __func__,
  17130. ucontrol->value.enumerated.item[0]);
  17131. mutex_lock(&routing_lock);
  17132. item = ucontrol->value.enumerated.item[0];
  17133. if (item < e->items) {
  17134. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  17135. __func__, e->shift_l, e->values[item]);
  17136. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  17137. e->values[item] < MSM_BACKEND_DAI_MAX)
  17138. /* Enable feedback TX path */
  17139. ret = afe_spk_prot_feed_back_cfg(
  17140. msm_bedais[e->values[item]].port_id,
  17141. msm_bedais[e->shift_l].port_id,
  17142. 1, 1, 1);
  17143. else {
  17144. pr_debug("%s values are out of range item %d\n",
  17145. __func__, e->values[item]);
  17146. /* Disable feedback TX path */
  17147. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  17148. ret = afe_spk_prot_feed_back_cfg(0,
  17149. 0, 0, 0, 0);
  17150. else
  17151. ret = -EINVAL;
  17152. }
  17153. } else {
  17154. pr_err("%s item value is out of range item\n", __func__);
  17155. ret = -EINVAL;
  17156. }
  17157. mutex_unlock(&routing_lock);
  17158. return ret;
  17159. }
  17160. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  17161. struct snd_ctl_elem_value *ucontrol)
  17162. {
  17163. pr_debug("%s\n", __func__);
  17164. return 0;
  17165. }
  17166. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  17167. struct snd_ctl_elem_value *ucontrol)
  17168. {
  17169. pr_debug("%s\n", __func__);
  17170. ucontrol->value.enumerated.item[0] = 0;
  17171. return 0;
  17172. }
  17173. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  17174. "ZERO", "SLIM4_TX"
  17175. };
  17176. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  17177. "ZERO", "SLIM4_TX"
  17178. };
  17179. static const char * const wsa_rx_0_vi_fb_tx_lch_mux_text[] = {
  17180. "ZERO", "WSA_CDC_DMA_TX_0"
  17181. };
  17182. static const char * const wsa_rx_0_vi_fb_tx_rch_mux_text[] = {
  17183. "ZERO", "WSA_CDC_DMA_TX_0"
  17184. };
  17185. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  17186. "ZERO", "SENARY_TX"
  17187. };
  17188. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  17189. "ZERO", "INT5_MI2S_TX"
  17190. };
  17191. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  17192. "ZERO", "INT5_MI2S_TX"
  17193. };
  17194. static const int const slim0_rx_vi_fb_tx_lch_value[] = {
  17195. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  17196. };
  17197. static const int const slim0_rx_vi_fb_tx_rch_value[] = {
  17198. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  17199. };
  17200. static const int const wsa_rx_0_vi_fb_tx_lch_value[] = {
  17201. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  17202. };
  17203. static const int const wsa_rx_0_vi_fb_tx_rch_value[] = {
  17204. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  17205. };
  17206. static const int const mi2s_rx_vi_fb_tx_value[] = {
  17207. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  17208. };
  17209. static const int const int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  17210. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  17211. };
  17212. static const int const int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  17213. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  17214. };
  17215. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  17216. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  17217. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  17218. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  17219. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  17220. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  17221. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  17222. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  17223. static const struct soc_enum wsa_rx_0_vi_fb_lch_mux_enum =
  17224. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  17225. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_lch_mux_text),
  17226. wsa_rx_0_vi_fb_tx_lch_mux_text, wsa_rx_0_vi_fb_tx_lch_value);
  17227. static const struct soc_enum wsa_rx_0_vi_fb_rch_mux_enum =
  17228. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  17229. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_rch_mux_text),
  17230. wsa_rx_0_vi_fb_tx_rch_mux_text, wsa_rx_0_vi_fb_tx_rch_value);
  17231. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  17232. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  17233. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  17234. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  17235. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  17236. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  17237. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  17238. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  17239. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  17240. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  17241. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  17242. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  17243. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  17244. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  17245. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  17246. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  17247. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  17248. spkr_prot_put_vi_lch_port);
  17249. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  17250. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  17251. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  17252. spkr_prot_put_vi_rch_port);
  17253. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_lch_mux =
  17254. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_LCH_MUX",
  17255. wsa_rx_0_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  17256. spkr_prot_put_vi_lch_port);
  17257. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_rch_mux =
  17258. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_RCH_MUX",
  17259. wsa_rx_0_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  17260. spkr_prot_put_vi_rch_port);
  17261. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  17262. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  17263. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  17264. spkr_prot_put_vi_lch_port);
  17265. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  17266. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  17267. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  17268. spkr_prot_put_vi_lch_port);
  17269. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  17270. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  17271. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  17272. spkr_prot_put_vi_rch_port);
  17273. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  17274. /* Frontend AIF */
  17275. /* Widget name equals to Front-End DAI name<Need confirmation>,
  17276. * Stream name must contains substring of front-end dai name
  17277. */
  17278. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  17279. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  17280. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  17281. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  17282. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  17283. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  17284. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  17285. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  17286. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  17287. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  17288. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  17289. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  17290. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  17291. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  17292. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  17293. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  17294. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  17295. SND_SOC_DAPM_AIF_IN("MM_DL21", "MultiMedia21 Playback", 0, 0, 0, 0),
  17296. SND_SOC_DAPM_AIF_IN("MM_DL26", "MultiMedia26 Playback", 0, 0, 0, 0),
  17297. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  17298. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  17299. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  17300. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  17301. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  17302. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  17303. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  17304. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  17305. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  17306. SND_SOC_DAPM_AIF_OUT("MM_UL10", "MultiMedia10 Capture", 0, 0, 0, 0),
  17307. SND_SOC_DAPM_AIF_OUT("MM_UL16", "MultiMedia16 Capture", 0, 0, 0, 0),
  17308. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  17309. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  17310. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  17311. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  17312. SND_SOC_DAPM_AIF_OUT("MM_UL21", "MultiMedia21 Capture", 0, 0, 0, 0),
  17313. SND_SOC_DAPM_AIF_OUT("MM_UL27", "MultiMedia27 Capture", 0, 0, 0, 0),
  17314. SND_SOC_DAPM_AIF_OUT("MM_UL28", "MultiMedia28 Capture", 0, 0, 0, 0),
  17315. SND_SOC_DAPM_AIF_OUT("MM_UL29", "MultiMedia29 Capture", 0, 0, 0, 0),
  17316. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  17317. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  17318. "VoiceMMode1 Playback", 0, 0, 0, 0),
  17319. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  17320. "VoiceMMode1 Capture", 0, 0, 0, 0),
  17321. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  17322. "VoiceMMode2 Playback", 0, 0, 0, 0),
  17323. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  17324. "VoiceMMode2 Capture", 0, 0, 0, 0),
  17325. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  17326. 0, 0, 0, 0),
  17327. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  17328. 0, 0, 0, 0),
  17329. SND_SOC_DAPM_AIF_IN("CDC_DMA_DL_HL", "CDC_DMA_HOSTLESS Playback",
  17330. 0, 0, 0, 0),
  17331. SND_SOC_DAPM_AIF_OUT("CDC_DMA_UL_HL", "CDC_DMA_HOSTLESS Capture",
  17332. 0, 0, 0, 0),
  17333. SND_SOC_DAPM_AIF_OUT("TX3_CDC_DMA_UL_HL",
  17334. "TX3_CDC_DMA_HOSTLESS Capture", 0, 0, 0, 0),
  17335. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  17336. 0, 0, 0, 0),
  17337. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  17338. 0, 0, 0, 0),
  17339. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  17340. 0, 0, 0, 0),
  17341. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  17342. 0, 0, 0, 0),
  17343. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  17344. 0, 0, 0, 0),
  17345. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  17346. 0, 0, 0, 0),
  17347. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  17348. 0, 0, 0, 0),
  17349. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  17350. 0, 0, 0, 0),
  17351. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  17352. 0, 0, 0, 0),
  17353. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  17354. 0, 0, 0, 0),
  17355. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  17356. 0, 0, 0, 0),
  17357. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  17358. 0, 0, 0, 0),
  17359. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  17360. 0, 0, 0, 0),
  17361. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  17362. 0, 0, 0, 0),
  17363. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  17364. 0, 0, 0, 0),
  17365. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  17366. 0, 0, 0, 0),
  17367. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  17368. 0, 0, 0, 0),
  17369. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  17370. 0, 0, 0, 0),
  17371. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  17372. 0, 0, 0, 0),
  17373. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  17374. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  17375. 0, 0, 0, 0),
  17376. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  17377. "INT0 MI2S_RX Hostless Playback",
  17378. 0, 0, 0, 0),
  17379. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  17380. "INT4 MI2S_RX Hostless Playback",
  17381. 0, 0, 0, 0),
  17382. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  17383. "Primary MI2S_RX Hostless Playback",
  17384. 0, 0, 0, 0),
  17385. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  17386. "Secondary MI2S_RX Hostless Playback",
  17387. 0, 0, 0, 0),
  17388. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  17389. "Tertiary MI2S_RX Hostless Playback",
  17390. 0, 0, 0, 0),
  17391. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  17392. "Quaternary MI2S_RX Hostless Playback",
  17393. 0, 0, 0, 0),
  17394. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_DL_HL",
  17395. "Quinary MI2S_RX Hostless Playback",
  17396. 0, 0, 0, 0),
  17397. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  17398. 0, 0, 0, 0),
  17399. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  17400. 0, 0, 0, 0),
  17401. SND_SOC_DAPM_AIF_IN("SEC_AUXPCM_DL_HL", "SEC_AUXPCM_HOSTLESS Playback",
  17402. 0, 0, 0, 0),
  17403. SND_SOC_DAPM_AIF_OUT("SEC_AUXPCM_UL_HL", "SEC_AUXPCM_HOSTLESS Capture",
  17404. 0, 0, 0, 0),
  17405. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  17406. 0, 0, 0, 0),
  17407. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  17408. "INT3 MI2S_TX Hostless Capture",
  17409. 0, 0, 0, 0),
  17410. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  17411. "Tertiary MI2S_TX Hostless Capture",
  17412. 0, 0, 0, 0),
  17413. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  17414. "Secondary MI2S_TX Hostless Capture",
  17415. 0, 0, 0, 0),
  17416. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  17417. "Primary MI2S_TX Hostless Capture",
  17418. 0, 0, 0, 0),
  17419. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  17420. 0, 0, 0, 0),
  17421. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  17422. 0, 0, 0, 0),
  17423. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  17424. "Quaternary MI2S_TX Hostless Capture",
  17425. 0, 0, 0, 0),
  17426. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_UL_HL",
  17427. "Quinary MI2S_TX Hostless Capture",
  17428. 0, 0, 0, 0),
  17429. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  17430. "Primary TDM0 Hostless Playback",
  17431. 0, 0, 0, 0),
  17432. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  17433. "Primary TDM0 Hostless Capture",
  17434. 0, 0, 0, 0),
  17435. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  17436. "Primary TDM1 Hostless Playback",
  17437. 0, 0, 0, 0),
  17438. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  17439. "Primary TDM1 Hostless Capture",
  17440. 0, 0, 0, 0),
  17441. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  17442. "Primary TDM2 Hostless Playback",
  17443. 0, 0, 0, 0),
  17444. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  17445. "Primary TDM2 Hostless Capture",
  17446. 0, 0, 0, 0),
  17447. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  17448. "Primary TDM3 Hostless Playback",
  17449. 0, 0, 0, 0),
  17450. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  17451. "Primary TDM3 Hostless Capture",
  17452. 0, 0, 0, 0),
  17453. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  17454. "Primary TDM4 Hostless Playback",
  17455. 0, 0, 0, 0),
  17456. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  17457. "Primary TDM4 Hostless Capture",
  17458. 0, 0, 0, 0),
  17459. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  17460. "Primary TDM5 Hostless Playback",
  17461. 0, 0, 0, 0),
  17462. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  17463. "Primary TDM5 Hostless Capture",
  17464. 0, 0, 0, 0),
  17465. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  17466. "Primary TDM6 Hostless Playback",
  17467. 0, 0, 0, 0),
  17468. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  17469. "Primary TDM6 Hostless Capture",
  17470. 0, 0, 0, 0),
  17471. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  17472. "Primary TDM7 Hostless Playback",
  17473. 0, 0, 0, 0),
  17474. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  17475. "Primary TDM7 Hostless Capture",
  17476. 0, 0, 0, 0),
  17477. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  17478. "Secondary TDM0 Hostless Playback",
  17479. 0, 0, 0, 0),
  17480. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  17481. "Secondary TDM0 Hostless Capture",
  17482. 0, 0, 0, 0),
  17483. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  17484. "Secondary TDM1 Hostless Playback",
  17485. 0, 0, 0, 0),
  17486. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  17487. "Secondary TDM1 Hostless Capture",
  17488. 0, 0, 0, 0),
  17489. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  17490. "Secondary TDM2 Hostless Playback",
  17491. 0, 0, 0, 0),
  17492. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  17493. "Secondary TDM2 Hostless Capture",
  17494. 0, 0, 0, 0),
  17495. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  17496. "Secondary TDM3 Hostless Playback",
  17497. 0, 0, 0, 0),
  17498. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  17499. "Secondary TDM3 Hostless Capture",
  17500. 0, 0, 0, 0),
  17501. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  17502. "Secondary TDM4 Hostless Playback",
  17503. 0, 0, 0, 0),
  17504. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  17505. "Secondary TDM4 Hostless Capture",
  17506. 0, 0, 0, 0),
  17507. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  17508. "Secondary TDM5 Hostless Playback",
  17509. 0, 0, 0, 0),
  17510. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  17511. "Secondary TDM5 Hostless Capture",
  17512. 0, 0, 0, 0),
  17513. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  17514. "Secondary TDM6 Hostless Playback",
  17515. 0, 0, 0, 0),
  17516. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  17517. "Secondary TDM6 Hostless Capture",
  17518. 0, 0, 0, 0),
  17519. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  17520. "Secondary TDM7 Hostless Playback",
  17521. 0, 0, 0, 0),
  17522. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  17523. "Secondary TDM7 Hostless Capture",
  17524. 0, 0, 0, 0),
  17525. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  17526. "Tertiary TDM0 Hostless Playback",
  17527. 0, 0, 0, 0),
  17528. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  17529. "Tertiary TDM0 Hostless Capture",
  17530. 0, 0, 0, 0),
  17531. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  17532. "Tertiary TDM1 Hostless Playback",
  17533. 0, 0, 0, 0),
  17534. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  17535. "Tertiary TDM1 Hostless Capture",
  17536. 0, 0, 0, 0),
  17537. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  17538. "Tertiary TDM2 Hostless Playback",
  17539. 0, 0, 0, 0),
  17540. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  17541. "Tertiary TDM2 Hostless Capture",
  17542. 0, 0, 0, 0),
  17543. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  17544. "Tertiary TDM3 Hostless Playback",
  17545. 0, 0, 0, 0),
  17546. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  17547. "Tertiary TDM3 Hostless Capture",
  17548. 0, 0, 0, 0),
  17549. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  17550. "Tertiary TDM4 Hostless Playback",
  17551. 0, 0, 0, 0),
  17552. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  17553. "Tertiary TDM4 Hostless Capture",
  17554. 0, 0, 0, 0),
  17555. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  17556. "Tertiary TDM5 Hostless Playback",
  17557. 0, 0, 0, 0),
  17558. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  17559. "Tertiary TDM5 Hostless Capture",
  17560. 0, 0, 0, 0),
  17561. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  17562. "Tertiary TDM6 Hostless Playback",
  17563. 0, 0, 0, 0),
  17564. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  17565. "Tertiary TDM6 Hostless Capture",
  17566. 0, 0, 0, 0),
  17567. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  17568. "Tertiary TDM7 Hostless Playback",
  17569. 0, 0, 0, 0),
  17570. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  17571. "Tertiary TDM7 Hostless Capture",
  17572. 0, 0, 0, 0),
  17573. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  17574. "Quaternary TDM0 Hostless Playback",
  17575. 0, 0, 0, 0),
  17576. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  17577. "Quaternary TDM0 Hostless Capture",
  17578. 0, 0, 0, 0),
  17579. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  17580. "Quaternary TDM1 Hostless Playback",
  17581. 0, 0, 0, 0),
  17582. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  17583. "Quaternary TDM1 Hostless Capture",
  17584. 0, 0, 0, 0),
  17585. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  17586. "Quaternary TDM2 Hostless Playback",
  17587. 0, 0, 0, 0),
  17588. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  17589. "Quaternary TDM2 Hostless Capture",
  17590. 0, 0, 0, 0),
  17591. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  17592. "Quaternary TDM3 Hostless Playback",
  17593. 0, 0, 0, 0),
  17594. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  17595. "Quaternary TDM3 Hostless Capture",
  17596. 0, 0, 0, 0),
  17597. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  17598. "Quaternary TDM4 Hostless Playback",
  17599. 0, 0, 0, 0),
  17600. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  17601. "Quaternary TDM4 Hostless Capture",
  17602. 0, 0, 0, 0),
  17603. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  17604. "Quaternary TDM5 Hostless Playback",
  17605. 0, 0, 0, 0),
  17606. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  17607. "Quaternary TDM5 Hostless Capture",
  17608. 0, 0, 0, 0),
  17609. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  17610. "Quaternary TDM6 Hostless Playback",
  17611. 0, 0, 0, 0),
  17612. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  17613. "Quaternary TDM6 Hostless Capture",
  17614. 0, 0, 0, 0),
  17615. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  17616. "Quaternary TDM7 Hostless Playback",
  17617. 0, 0, 0, 0),
  17618. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  17619. "Quaternary TDM7 Hostless Capture",
  17620. 0, 0, 0, 0),
  17621. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_0_DL_HL",
  17622. "Quinary TDM0 Hostless Playback",
  17623. 0, 0, 0, 0),
  17624. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_0_UL_HL",
  17625. "Quinary TDM0 Hostless Capture",
  17626. 0, 0, 0, 0),
  17627. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_1_DL_HL",
  17628. "Quinary TDM1 Hostless Playback",
  17629. 0, 0, 0, 0),
  17630. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_1_UL_HL",
  17631. "Quinary TDM1 Hostless Capture",
  17632. 0, 0, 0, 0),
  17633. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_2_DL_HL",
  17634. "Quinary TDM2 Hostless Playback",
  17635. 0, 0, 0, 0),
  17636. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_2_UL_HL",
  17637. "Quinary TDM2 Hostless Capture",
  17638. 0, 0, 0, 0),
  17639. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_3_DL_HL",
  17640. "Quinary TDM3 Hostless Playback",
  17641. 0, 0, 0, 0),
  17642. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_3_UL_HL",
  17643. "Quinary TDM3 Hostless Capture",
  17644. 0, 0, 0, 0),
  17645. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_4_DL_HL",
  17646. "Quinary TDM4 Hostless Playback",
  17647. 0, 0, 0, 0),
  17648. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_4_UL_HL",
  17649. "Quinary TDM4 Hostless Capture",
  17650. 0, 0, 0, 0),
  17651. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_5_DL_HL",
  17652. "Quinary TDM5 Hostless Playback",
  17653. 0, 0, 0, 0),
  17654. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_5_UL_HL",
  17655. "Quinary TDM5 Hostless Capture",
  17656. 0, 0, 0, 0),
  17657. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_6_DL_HL",
  17658. "Quinary TDM6 Hostless Playback",
  17659. 0, 0, 0, 0),
  17660. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_6_UL_HL",
  17661. "Quinary TDM6 Hostless Capture",
  17662. 0, 0, 0, 0),
  17663. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_7_DL_HL",
  17664. "Quinary TDM7 Hostless Playback",
  17665. 0, 0, 0, 0),
  17666. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_7_UL_HL",
  17667. "Quinary TDM7 Hostless Capture",
  17668. 0, 0, 0, 0),
  17669. /* LSM */
  17670. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  17671. 0, 0, 0, 0),
  17672. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  17673. 0, 0, 0, 0),
  17674. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  17675. 0, 0, 0, 0),
  17676. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  17677. 0, 0, 0, 0),
  17678. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  17679. 0, 0, 0, 0),
  17680. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  17681. 0, 0, 0, 0),
  17682. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  17683. 0, 0, 0, 0),
  17684. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  17685. 0, 0, 0, 0),
  17686. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  17687. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  17688. /* Backend AIF */
  17689. /* Stream name equals to backend dai link stream name */
  17690. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  17691. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  17692. 0, 0, 0, 0),
  17693. SND_SOC_DAPM_AIF_OUT("PRI_SPDIF_RX", "Primary SPDIF Playback",
  17694. 0, 0, 0, 0),
  17695. SND_SOC_DAPM_AIF_IN("PRI_SPDIF_TX", "Primary SPDIF Capture",
  17696. 0, 0, 0, 0),
  17697. SND_SOC_DAPM_AIF_OUT("SEC_SPDIF_RX", "Secondary SPDIF Playback",
  17698. 0, 0, 0, 0),
  17699. SND_SOC_DAPM_AIF_IN("SEC_SPDIF_TX", "Secondary SPDIF Capture",
  17700. 0, 0, 0, 0),
  17701. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  17702. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  17703. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  17704. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  17705. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  17706. 0, 0, 0, 0),
  17707. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT1", "Display Port1 Playback",
  17708. 0, 0, 0, 0),
  17709. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  17710. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  17711. 0, 0, 0, 0),
  17712. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  17713. 0, 0, 0, 0),
  17714. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  17715. 0, 0, 0, 0),
  17716. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  17717. "Secondary MI2S Playback SD1",
  17718. 0, 0, 0, 0),
  17719. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  17720. 0, 0, 0, 0),
  17721. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  17722. 0, 0, 0, 0),
  17723. SND_SOC_DAPM_AIF_OUT("INT2_MI2S_RX", "INT2 MI2S Playback",
  17724. 0, 0, 0, 0),
  17725. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_RX", "INT3 MI2S Playback",
  17726. 0, 0, 0, 0),
  17727. SND_SOC_DAPM_AIF_OUT("INT5_MI2S_RX", "INT5 MI2S Playback",
  17728. 0, 0, 0, 0),
  17729. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  17730. 0, 0, 0, 0),
  17731. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_TX", "INT4 MI2S Capture",
  17732. 0, 0, 0, 0),
  17733. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  17734. 0, 0, 0, 0),
  17735. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  17736. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  17737. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  17738. 0, 0, 0, 0),
  17739. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  17740. 0, 0, 0, 0),
  17741. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  17742. 0, 0, 0, 0),
  17743. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_TX", "INT0 MI2S Capture",
  17744. 0, 0, 0, 0),
  17745. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  17746. 0, 0, 0, 0),
  17747. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  17748. 0, 0, 0, 0),
  17749. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  17750. 0, 0, 0, 0),
  17751. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  17752. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  17753. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  17754. 0, 0, 0, 0),
  17755. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  17756. 0, 0, 0, 0),
  17757. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  17758. 0, 0, 0, 0),
  17759. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  17760. 0, 0, 0, 0),
  17761. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  17762. 0, 0, 0, 0),
  17763. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  17764. 0, 0, 0, 0),
  17765. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  17766. 0, 0, 0, 0),
  17767. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  17768. 0, 0, 0, 0),
  17769. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  17770. 0, 0, 0, 0),
  17771. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  17772. 0, 0, 0, 0),
  17773. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  17774. 0, 0, 0, 0),
  17775. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  17776. 0, 0, 0, 0),
  17777. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  17778. 0, 0, 0, 0),
  17779. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  17780. 0, 0, 0, 0),
  17781. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  17782. 0, 0, 0, 0),
  17783. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  17784. 0, 0, 0, 0),
  17785. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  17786. 0, 0, 0, 0),
  17787. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  17788. 0, 0, 0, 0),
  17789. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  17790. 0, 0, 0, 0),
  17791. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  17792. 0, 0, 0, 0),
  17793. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  17794. 0, 0, 0, 0),
  17795. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  17796. 0, 0, 0, 0),
  17797. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  17798. 0, 0, 0, 0),
  17799. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  17800. 0, 0, 0, 0),
  17801. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  17802. 0, 0, 0, 0),
  17803. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  17804. 0, 0, 0, 0),
  17805. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  17806. 0, 0, 0, 0),
  17807. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  17808. 0, 0, 0, 0),
  17809. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  17810. 0, 0, 0, 0),
  17811. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  17812. 0, 0, 0, 0),
  17813. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  17814. 0, 0, 0, 0),
  17815. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  17816. 0, 0, 0, 0),
  17817. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  17818. 0, 0, 0, 0),
  17819. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  17820. 0, 0, 0, 0),
  17821. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  17822. 0, 0, 0, 0),
  17823. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  17824. 0, 0, 0, 0),
  17825. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  17826. 0, 0, 0, 0),
  17827. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  17828. 0, 0, 0, 0),
  17829. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  17830. 0, 0, 0, 0),
  17831. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  17832. 0, 0, 0, 0),
  17833. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  17834. 0, 0, 0, 0),
  17835. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  17836. 0, 0, 0, 0),
  17837. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  17838. 0, 0, 0, 0),
  17839. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  17840. 0, 0, 0, 0),
  17841. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  17842. 0, 0, 0, 0),
  17843. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  17844. 0, 0, 0, 0),
  17845. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  17846. 0, 0, 0, 0),
  17847. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  17848. 0, 0, 0, 0),
  17849. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  17850. 0, 0, 0, 0),
  17851. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  17852. 0, 0, 0, 0),
  17853. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  17854. 0, 0, 0, 0),
  17855. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  17856. 0, 0, 0, 0),
  17857. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  17858. 0, 0, 0, 0),
  17859. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  17860. 0, 0, 0, 0),
  17861. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  17862. 0, 0, 0, 0),
  17863. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  17864. 0, 0, 0, 0),
  17865. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  17866. 0, 0, 0, 0),
  17867. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  17868. 0, 0, 0, 0),
  17869. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  17870. 0, 0, 0, 0),
  17871. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  17872. 0, 0, 0, 0),
  17873. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  17874. 0, 0, 0, 0),
  17875. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  17876. 0, 0, 0, 0),
  17877. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  17878. 0, 0, 0, 0),
  17879. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  17880. 0, 0, 0, 0),
  17881. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  17882. 0, 0, 0, 0),
  17883. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  17884. 0, 0, 0, 0),
  17885. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  17886. 0, 0, 0, 0),
  17887. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  17888. 0, 0, 0, 0),
  17889. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  17890. 0, 0, 0, 0),
  17891. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  17892. 0, 0, 0, 0),
  17893. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  17894. 0, 0, 0, 0),
  17895. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  17896. 0, 0, 0, 0),
  17897. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  17898. 0, 0, 0, 0),
  17899. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_0", "Quinary TDM0 Playback",
  17900. 0, 0, 0, 0),
  17901. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_0", "Quinary TDM0 Capture",
  17902. 0, 0, 0, 0),
  17903. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_1", "Quinary TDM1 Playback",
  17904. 0, 0, 0, 0),
  17905. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_1", "Quinary TDM1 Capture",
  17906. 0, 0, 0, 0),
  17907. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_2", "Quinary TDM2 Playback",
  17908. 0, 0, 0, 0),
  17909. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_2", "Quinary TDM2 Capture",
  17910. 0, 0, 0, 0),
  17911. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_3", "Quinary TDM3 Playback",
  17912. 0, 0, 0, 0),
  17913. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_3", "Quinary TDM3 Capture",
  17914. 0, 0, 0, 0),
  17915. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_4", "Quinary TDM4 Playback",
  17916. 0, 0, 0, 0),
  17917. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_4", "Quinary TDM4 Capture",
  17918. 0, 0, 0, 0),
  17919. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_5", "Quinary TDM5 Playback",
  17920. 0, 0, 0, 0),
  17921. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_5", "Quinary TDM5 Capture",
  17922. 0, 0, 0, 0),
  17923. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_6", "Quinary TDM6 Playback",
  17924. 0, 0, 0, 0),
  17925. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_6", "Quinary TDM6 Capture",
  17926. 0, 0, 0, 0),
  17927. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_7", "Quinary TDM7 Playback",
  17928. 0, 0, 0, 0),
  17929. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_7", "Quinary TDM7 Capture",
  17930. 0, 0, 0, 0),
  17931. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_0", "WSA CDC DMA0 Playback",
  17932. 0, 0, 0, 0),
  17933. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_0", "WSA CDC DMA0 Capture",
  17934. 0, 0, 0, 0),
  17935. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_1", "WSA CDC DMA1 Playback",
  17936. 0, 0, 0, 0),
  17937. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_1", "WSA CDC DMA1 Capture",
  17938. 0, 0, 0, 0),
  17939. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_2", "WSA CDC DMA2 Capture",
  17940. 0, 0, 0, 0),
  17941. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_0", "VA CDC DMA0 Capture",
  17942. 0, 0, 0, 0),
  17943. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_1", "VA CDC DMA1 Capture",
  17944. 0, 0, 0, 0),
  17945. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_0", "RX CDC DMA0 Playback",
  17946. 0, 0, 0, 0),
  17947. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_0", "TX CDC DMA0 Capture",
  17948. 0, 0, 0, 0),
  17949. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_1", "RX CDC DMA1 Playback",
  17950. 0, 0, 0, 0),
  17951. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_1", "TX CDC DMA1 Capture",
  17952. 0, 0, 0, 0),
  17953. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_2", "RX CDC DMA2 Playback",
  17954. 0, 0, 0, 0),
  17955. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_2", "TX CDC DMA2 Capture",
  17956. 0, 0, 0, 0),
  17957. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_3", "RX CDC DMA3 Playback",
  17958. 0, 0, 0, 0),
  17959. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_3", "TX CDC DMA3 Capture",
  17960. 0, 0, 0, 0),
  17961. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_4", "RX CDC DMA4 Playback",
  17962. 0, 0, 0, 0),
  17963. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_4", "TX CDC DMA4 Capture",
  17964. 0, 0, 0, 0),
  17965. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_5", "RX CDC DMA5 Playback",
  17966. 0, 0, 0, 0),
  17967. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_5", "TX CDC DMA5 Capture",
  17968. 0, 0, 0, 0),
  17969. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_6", "RX CDC DMA6 Playback",
  17970. 0, 0, 0, 0),
  17971. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_7", "RX CDC DMA7 Playback",
  17972. 0, 0, 0, 0),
  17973. /* incall */
  17974. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  17975. 0, 0, 0, 0),
  17976. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  17977. 0, 0, 0, 0),
  17978. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  17979. 0, 0, 0, 0),
  17980. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  17981. 0, 0, 0, 0),
  17982. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  17983. 0, 0, 0, 0),
  17984. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  17985. 0, 0, 0, 0),
  17986. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  17987. 0, 0, 0, 0),
  17988. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  17989. 0, 0, 0, 0),
  17990. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  17991. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  17992. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  17993. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  17994. 0, 0, 0, 0),
  17995. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  17996. 0, 0, 0, 0),
  17997. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  17998. 0, 0, 0, 0),
  17999. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  18000. 0, 0, 0, 0),
  18001. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  18002. 0, 0, 0, 0),
  18003. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  18004. 0, 0, 0, 0),
  18005. SND_SOC_DAPM_AIF_OUT("QUIN_AUX_PCM_RX", "Quin AUX PCM Playback",
  18006. 0, 0, 0, 0),
  18007. SND_SOC_DAPM_AIF_IN("QUIN_AUX_PCM_TX", "Quin AUX PCM Capture",
  18008. 0, 0, 0, 0),
  18009. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  18010. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  18011. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  18012. 0, 0, 0, 0),
  18013. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  18014. 0, 0, 0, 0),
  18015. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  18016. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  18017. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  18018. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  18019. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  18020. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  18021. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  18022. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  18023. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  18024. /* In- call recording */
  18025. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  18026. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  18027. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  18028. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  18029. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  18030. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  18031. SND_SOC_DAPM_AIF_OUT("SLIMBUS_9_RX", "Slimbus9 Playback", 0, 0, 0, 0),
  18032. SND_SOC_DAPM_AIF_IN("SLIMBUS_9_TX", "Slimbus9 Capture", 0, 0, 0, 0),
  18033. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  18034. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  18035. /* Switch Definitions */
  18036. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  18037. &slim_fm_switch_mixer_controls),
  18038. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  18039. &slim1_fm_switch_mixer_controls),
  18040. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  18041. &slim3_fm_switch_mixer_controls),
  18042. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  18043. &slim4_fm_switch_mixer_controls),
  18044. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  18045. &slim6_fm_switch_mixer_controls),
  18046. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18047. &pcm_rx_switch_mixer_controls),
  18048. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18049. &int0_mi2s_rx_switch_mixer_controls),
  18050. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18051. &int4_mi2s_rx_switch_mixer_controls),
  18052. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18053. &pri_mi2s_rx_switch_mixer_controls),
  18054. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18055. &sec_mi2s_rx_switch_mixer_controls),
  18056. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18057. &tert_mi2s_rx_switch_mixer_controls),
  18058. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18059. &quat_mi2s_rx_switch_mixer_controls),
  18060. SND_SOC_DAPM_SWITCH("QUIN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18061. &quin_mi2s_rx_switch_mixer_controls),
  18062. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  18063. &hfp_pri_aux_switch_mixer_controls),
  18064. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  18065. &hfp_aux_switch_mixer_controls),
  18066. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  18067. &hfp_int_switch_mixer_controls),
  18068. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  18069. &hfp_slim7_switch_mixer_controls),
  18070. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  18071. &usb_switch_mixer_controls),
  18072. SND_SOC_DAPM_SWITCH("A2DP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  18073. &a2dp_slim7_switch_mixer_controls),
  18074. SND_SOC_DAPM_SWITCH("WSA_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  18075. &cdc_dma_wsa_switch_mixer_controls),
  18076. SND_SOC_DAPM_SWITCH("RX_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  18077. &cdc_dma_rx_switch_mixer_controls),
  18078. /* Mixer definitions */
  18079. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18080. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  18081. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18082. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  18083. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18084. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  18085. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18086. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  18087. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18088. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  18089. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18090. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  18091. SND_SOC_DAPM_MIXER("SLIMBUS_9_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18092. slimbus_9_rx_mixer_controls, ARRAY_SIZE(slimbus_9_rx_mixer_controls)),
  18093. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  18094. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  18095. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  18096. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  18097. SND_SOC_DAPM_MIXER("DISPLAY_PORT1 Mixer", SND_SOC_NOPM, 0, 0,
  18098. display_port1_mixer_controls, ARRAY_SIZE(display_port1_mixer_controls)),
  18099. SND_SOC_DAPM_MIXER("PRI_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18100. pri_spdif_rx_mixer_controls, ARRAY_SIZE(pri_spdif_rx_mixer_controls)),
  18101. SND_SOC_DAPM_MIXER("SEC_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18102. sec_spdif_rx_mixer_controls, ARRAY_SIZE(sec_spdif_rx_mixer_controls)),
  18103. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18104. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  18105. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18106. quaternary_mi2s_rx_mixer_controls,
  18107. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  18108. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18109. tertiary_mi2s_rx_mixer_controls,
  18110. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  18111. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18112. secondary_mi2s_rx_mixer_controls,
  18113. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  18114. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18115. secondary_mi2s_rx2_mixer_controls,
  18116. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  18117. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18118. primary_mi2s_rx_mixer_controls,
  18119. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  18120. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18121. int0_mi2s_rx_mixer_controls,
  18122. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  18123. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18124. int4_mi2s_rx_mixer_controls,
  18125. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  18126. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18127. quinary_mi2s_rx_mixer_controls,
  18128. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  18129. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18130. pri_tdm_rx_0_mixer_controls,
  18131. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  18132. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18133. pri_tdm_rx_1_mixer_controls,
  18134. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  18135. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18136. pri_tdm_rx_2_mixer_controls,
  18137. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  18138. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18139. pri_tdm_rx_3_mixer_controls,
  18140. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  18141. SND_SOC_DAPM_MIXER("PRI_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18142. pri_tdm_tx_0_mixer_controls,
  18143. ARRAY_SIZE(pri_tdm_tx_0_mixer_controls)),
  18144. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18145. sec_tdm_rx_0_mixer_controls,
  18146. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  18147. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18148. sec_tdm_rx_1_mixer_controls,
  18149. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  18150. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18151. sec_tdm_rx_2_mixer_controls,
  18152. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  18153. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18154. sec_tdm_rx_3_mixer_controls,
  18155. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  18156. SND_SOC_DAPM_MIXER("SEC_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18157. sec_tdm_tx_0_mixer_controls,
  18158. ARRAY_SIZE(sec_tdm_tx_0_mixer_controls)),
  18159. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18160. tert_tdm_rx_0_mixer_controls,
  18161. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  18162. SND_SOC_DAPM_MIXER("TERT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18163. tert_tdm_tx_0_mixer_controls,
  18164. ARRAY_SIZE(tert_tdm_tx_0_mixer_controls)),
  18165. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18166. tert_tdm_rx_1_mixer_controls,
  18167. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  18168. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18169. tert_tdm_rx_2_mixer_controls,
  18170. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  18171. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18172. tert_tdm_rx_3_mixer_controls,
  18173. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  18174. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18175. tert_tdm_rx_4_mixer_controls,
  18176. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  18177. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18178. quat_tdm_rx_0_mixer_controls,
  18179. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  18180. SND_SOC_DAPM_MIXER("QUAT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18181. quat_tdm_tx_0_mixer_controls,
  18182. ARRAY_SIZE(quat_tdm_tx_0_mixer_controls)),
  18183. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18184. quat_tdm_rx_1_mixer_controls,
  18185. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  18186. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18187. quat_tdm_rx_2_mixer_controls,
  18188. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  18189. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18190. quat_tdm_rx_3_mixer_controls,
  18191. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  18192. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18193. quin_tdm_rx_0_mixer_controls,
  18194. ARRAY_SIZE(quin_tdm_rx_0_mixer_controls)),
  18195. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18196. quin_tdm_tx_0_mixer_controls,
  18197. ARRAY_SIZE(quin_tdm_tx_0_mixer_controls)),
  18198. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18199. quin_tdm_rx_1_mixer_controls,
  18200. ARRAY_SIZE(quin_tdm_rx_1_mixer_controls)),
  18201. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18202. quin_tdm_rx_2_mixer_controls,
  18203. ARRAY_SIZE(quin_tdm_rx_2_mixer_controls)),
  18204. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18205. quin_tdm_rx_3_mixer_controls,
  18206. ARRAY_SIZE(quin_tdm_rx_3_mixer_controls)),
  18207. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18208. wsa_cdc_dma_rx_0_mixer_controls,
  18209. ARRAY_SIZE(wsa_cdc_dma_rx_0_mixer_controls)),
  18210. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18211. wsa_cdc_dma_rx_1_mixer_controls,
  18212. ARRAY_SIZE(wsa_cdc_dma_rx_1_mixer_controls)),
  18213. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18214. rx_cdc_dma_rx_0_mixer_controls,
  18215. ARRAY_SIZE(rx_cdc_dma_rx_0_mixer_controls)),
  18216. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18217. rx_cdc_dma_rx_1_mixer_controls,
  18218. ARRAY_SIZE(rx_cdc_dma_rx_1_mixer_controls)),
  18219. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18220. rx_cdc_dma_rx_2_mixer_controls,
  18221. ARRAY_SIZE(rx_cdc_dma_rx_2_mixer_controls)),
  18222. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18223. rx_cdc_dma_rx_3_mixer_controls,
  18224. ARRAY_SIZE(rx_cdc_dma_rx_3_mixer_controls)),
  18225. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18226. rx_cdc_dma_rx_4_mixer_controls,
  18227. ARRAY_SIZE(rx_cdc_dma_rx_4_mixer_controls)),
  18228. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_5 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18229. rx_cdc_dma_rx_5_mixer_controls,
  18230. ARRAY_SIZE(rx_cdc_dma_rx_5_mixer_controls)),
  18231. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_6 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18232. rx_cdc_dma_rx_6_mixer_controls,
  18233. ARRAY_SIZE(rx_cdc_dma_rx_6_mixer_controls)),
  18234. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_7 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18235. rx_cdc_dma_rx_7_mixer_controls,
  18236. ARRAY_SIZE(rx_cdc_dma_rx_7_mixer_controls)),
  18237. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  18238. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  18239. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  18240. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  18241. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  18242. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  18243. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  18244. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  18245. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  18246. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  18247. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  18248. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  18249. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  18250. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  18251. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  18252. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  18253. SND_SOC_DAPM_MIXER("MultiMedia10 Mixer", SND_SOC_NOPM, 0, 0,
  18254. mmul10_mixer_controls, ARRAY_SIZE(mmul10_mixer_controls)),
  18255. SND_SOC_DAPM_MIXER("MultiMedia16 Mixer", SND_SOC_NOPM, 0, 0,
  18256. mmul16_mixer_controls, ARRAY_SIZE(mmul16_mixer_controls)),
  18257. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  18258. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  18259. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  18260. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  18261. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  18262. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  18263. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  18264. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  18265. SND_SOC_DAPM_MIXER("MultiMedia21 Mixer", SND_SOC_NOPM, 0, 0,
  18266. mmul21_mixer_controls, ARRAY_SIZE(mmul21_mixer_controls)),
  18267. SND_SOC_DAPM_MIXER("MultiMedia27 Mixer", SND_SOC_NOPM, 0, 0,
  18268. mmul27_mixer_controls, ARRAY_SIZE(mmul27_mixer_controls)),
  18269. SND_SOC_DAPM_MIXER("MultiMedia28 Mixer", SND_SOC_NOPM, 0, 0,
  18270. mmul28_mixer_controls, ARRAY_SIZE(mmul28_mixer_controls)),
  18271. SND_SOC_DAPM_MIXER("MultiMedia29 Mixer", SND_SOC_NOPM, 0, 0,
  18272. mmul29_mixer_controls, ARRAY_SIZE(mmul29_mixer_controls)),
  18273. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18274. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  18275. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18276. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  18277. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18278. tert_auxpcm_rx_mixer_controls,
  18279. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  18280. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18281. quat_auxpcm_rx_mixer_controls,
  18282. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  18283. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18284. quin_auxpcm_rx_mixer_controls,
  18285. ARRAY_SIZE(quin_auxpcm_rx_mixer_controls)),
  18286. /* incall */
  18287. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  18288. incall_music_delivery_mixer_controls,
  18289. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  18290. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18291. incall_music2_delivery_mixer_controls,
  18292. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  18293. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18294. slimbus_4_rx_mixer_controls,
  18295. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  18296. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18297. slimbus_6_rx_mixer_controls,
  18298. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  18299. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18300. usb_audio_rx_mixer_controls,
  18301. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  18302. /* Voice Mixer */
  18303. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  18304. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  18305. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  18306. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  18307. SND_SOC_NOPM, 0, 0,
  18308. sec_i2s_rx_voice_mixer_controls,
  18309. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  18310. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  18311. SND_SOC_NOPM, 0, 0,
  18312. sec_mi2s_rx_voice_mixer_controls,
  18313. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  18314. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  18315. SND_SOC_NOPM, 0, 0,
  18316. slimbus_rx_voice_mixer_controls,
  18317. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  18318. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  18319. SND_SOC_NOPM, 0, 0,
  18320. bt_sco_rx_voice_mixer_controls,
  18321. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  18322. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  18323. SND_SOC_NOPM, 0, 0,
  18324. afe_pcm_rx_voice_mixer_controls,
  18325. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  18326. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  18327. SND_SOC_NOPM, 0, 0,
  18328. aux_pcm_rx_voice_mixer_controls,
  18329. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  18330. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  18331. SND_SOC_NOPM, 0, 0,
  18332. sec_aux_pcm_rx_voice_mixer_controls,
  18333. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  18334. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  18335. SND_SOC_NOPM, 0, 0,
  18336. tert_aux_pcm_rx_voice_mixer_controls,
  18337. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  18338. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  18339. SND_SOC_NOPM, 0, 0,
  18340. quat_aux_pcm_rx_voice_mixer_controls,
  18341. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  18342. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX_Voice Mixer",
  18343. SND_SOC_NOPM, 0, 0,
  18344. quin_aux_pcm_rx_voice_mixer_controls,
  18345. ARRAY_SIZE(quin_aux_pcm_rx_voice_mixer_controls)),
  18346. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  18347. SND_SOC_NOPM, 0, 0,
  18348. hdmi_rx_voice_mixer_controls,
  18349. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  18350. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  18351. SND_SOC_NOPM, 0, 0,
  18352. mi2s_rx_voice_mixer_controls,
  18353. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  18354. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  18355. SND_SOC_NOPM, 0, 0,
  18356. pri_mi2s_rx_voice_mixer_controls,
  18357. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  18358. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  18359. SND_SOC_NOPM, 0, 0,
  18360. int0_mi2s_rx_voice_mixer_controls,
  18361. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  18362. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  18363. SND_SOC_NOPM, 0, 0,
  18364. int4_mi2s_rx_voice_mixer_controls,
  18365. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  18366. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  18367. SND_SOC_NOPM, 0, 0,
  18368. tert_mi2s_rx_voice_mixer_controls,
  18369. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  18370. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  18371. SND_SOC_NOPM, 0, 0,
  18372. quat_mi2s_rx_voice_mixer_controls,
  18373. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  18374. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  18375. SND_SOC_NOPM, 0, 0,
  18376. quin_mi2s_rx_voice_mixer_controls,
  18377. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  18378. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  18379. SND_SOC_NOPM, 0, 0,
  18380. quat_tdm_rx_2_voice_mixer_controls,
  18381. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  18382. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0_Voice Mixer",
  18383. SND_SOC_NOPM, 0, 0,
  18384. wsa_cdc_dma_rx_0_voice_mixer_controls,
  18385. ARRAY_SIZE(wsa_cdc_dma_rx_0_voice_mixer_controls)),
  18386. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0_Voice Mixer",
  18387. SND_SOC_NOPM, 0, 0,
  18388. rx_cdc_dma_rx_0_voice_mixer_controls,
  18389. ARRAY_SIZE(rx_cdc_dma_rx_0_voice_mixer_controls)),
  18390. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  18391. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  18392. ARRAY_SIZE(tx_voip_mixer_controls)),
  18393. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  18394. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  18395. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  18396. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  18397. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  18398. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  18399. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18400. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  18401. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18402. int_bt_a2dp_rx_mixer_controls,
  18403. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  18404. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18405. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  18406. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18407. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  18408. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  18409. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  18410. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  18411. tx_voice2_stub_mixer_controls,
  18412. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  18413. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  18414. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  18415. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  18416. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  18417. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  18418. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  18419. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  18420. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  18421. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  18422. SND_SOC_NOPM, 0, 0,
  18423. slimbus_6_rx_voice_mixer_controls,
  18424. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  18425. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  18426. slimbus_7_rx_voice_mixer_controls,
  18427. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  18428. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  18429. slimbus_8_rx_voice_mixer_controls,
  18430. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  18431. /* port mixer */
  18432. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  18433. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  18434. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  18435. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  18436. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  18437. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  18438. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  18439. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  18440. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  18441. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  18442. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  18443. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  18444. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  18445. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  18446. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  18447. SND_SOC_DAPM_MIXER("QUIN_AUXPCM_RX Port Mixer",
  18448. SND_SOC_NOPM, 0, 0, quin_auxpcm_rx_port_mixer_controls,
  18449. ARRAY_SIZE(quin_auxpcm_rx_port_mixer_controls)),
  18450. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18451. sbus_1_rx_port_mixer_controls,
  18452. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  18453. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18454. bt_sco_rx_port_mixer_controls,
  18455. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  18456. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  18457. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  18458. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  18459. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  18460. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  18461. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  18462. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  18463. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  18464. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  18465. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1 Port Mixer",
  18466. SND_SOC_NOPM, 0, 0, display_port_rx1_port_mixer_controls,
  18467. ARRAY_SIZE(display_port_rx1_port_mixer_controls)),
  18468. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  18469. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  18470. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  18471. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  18472. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  18473. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  18474. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  18475. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  18476. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  18477. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18478. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  18479. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18480. primary_mi2s_rx_port_mixer_controls,
  18481. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  18482. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18483. sec_mi2s_rx_port_mixer_controls,
  18484. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  18485. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18486. tert_mi2s_rx_port_mixer_controls,
  18487. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  18488. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18489. quat_mi2s_rx_port_mixer_controls,
  18490. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  18491. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18492. quin_mi2s_rx_port_mixer_controls,
  18493. ARRAY_SIZE(quin_mi2s_rx_port_mixer_controls)),
  18494. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  18495. pri_tdm_rx_0_port_mixer_controls,
  18496. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  18497. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  18498. pri_tdm_rx_1_port_mixer_controls,
  18499. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  18500. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  18501. pri_tdm_rx_2_port_mixer_controls,
  18502. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  18503. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  18504. pri_tdm_rx_3_port_mixer_controls,
  18505. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  18506. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  18507. sec_tdm_rx_0_port_mixer_controls,
  18508. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  18509. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  18510. sec_tdm_rx_1_port_mixer_controls,
  18511. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  18512. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  18513. sec_tdm_rx_2_port_mixer_controls,
  18514. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  18515. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  18516. sec_tdm_rx_3_port_mixer_controls,
  18517. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  18518. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  18519. tert_tdm_rx_0_port_mixer_controls,
  18520. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  18521. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  18522. tert_tdm_rx_1_port_mixer_controls,
  18523. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  18524. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  18525. tert_tdm_rx_2_port_mixer_controls,
  18526. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  18527. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  18528. tert_tdm_rx_3_port_mixer_controls,
  18529. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  18530. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  18531. quat_tdm_rx_0_port_mixer_controls,
  18532. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  18533. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  18534. quat_tdm_rx_1_port_mixer_controls,
  18535. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  18536. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  18537. quat_tdm_rx_2_port_mixer_controls,
  18538. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  18539. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  18540. quat_tdm_rx_3_port_mixer_controls,
  18541. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  18542. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  18543. quin_tdm_rx_0_port_mixer_controls,
  18544. ARRAY_SIZE(quin_tdm_rx_0_port_mixer_controls)),
  18545. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  18546. quin_tdm_rx_1_port_mixer_controls,
  18547. ARRAY_SIZE(quin_tdm_rx_1_port_mixer_controls)),
  18548. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  18549. quin_tdm_rx_2_port_mixer_controls,
  18550. ARRAY_SIZE(quin_tdm_rx_2_port_mixer_controls)),
  18551. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  18552. quin_tdm_rx_3_port_mixer_controls,
  18553. ARRAY_SIZE(quin_tdm_rx_3_port_mixer_controls)),
  18554. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18555. int0_mi2s_rx_port_mixer_controls,
  18556. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  18557. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18558. int4_mi2s_rx_port_mixer_controls,
  18559. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  18560. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  18561. wsa_cdc_dma_rx_0_port_mixer_controls,
  18562. ARRAY_SIZE(wsa_cdc_dma_rx_0_port_mixer_controls)),
  18563. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  18564. rx_cdc_dma_rx_0_port_mixer_controls,
  18565. ARRAY_SIZE(rx_cdc_dma_rx_0_port_mixer_controls)),
  18566. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  18567. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  18568. ARRAY_SIZE(tx_qchat_mixer_controls)),
  18569. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  18570. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  18571. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  18572. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  18573. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  18574. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  18575. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX_Voice Mixer",
  18576. SND_SOC_NOPM, 0, 0, display_port_rx_voice_mixer_controls,
  18577. ARRAY_SIZE(display_port_rx_voice_mixer_controls)),
  18578. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1_Voice Mixer",
  18579. SND_SOC_NOPM, 0, 0, display_port_rx1_voice_mixer_controls,
  18580. ARRAY_SIZE(display_port_rx1_voice_mixer_controls)),
  18581. /* lsm mixer definitions */
  18582. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  18583. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  18584. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  18585. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  18586. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  18587. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  18588. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  18589. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  18590. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  18591. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  18592. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  18593. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  18594. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  18595. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  18596. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  18597. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  18598. /* Virtual Pins to force backends ON atm */
  18599. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  18600. SND_SOC_DAPM_INPUT("BE_IN"),
  18601. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  18602. &slim0_rx_vi_fb_lch_mux),
  18603. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  18604. &slim0_rx_vi_fb_rch_mux),
  18605. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  18606. &wsa_rx_0_vi_fb_lch_mux),
  18607. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  18608. &wsa_rx_0_vi_fb_rch_mux),
  18609. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  18610. &mi2s_rx_vi_fb_mux),
  18611. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  18612. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  18613. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  18614. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  18615. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  18616. &voc_ext_ec_mux),
  18617. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  18618. &ext_ec_ref_mux_ul1),
  18619. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  18620. &ext_ec_ref_mux_ul2),
  18621. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  18622. &ext_ec_ref_mux_ul3),
  18623. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  18624. &ext_ec_ref_mux_ul4),
  18625. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  18626. &ext_ec_ref_mux_ul5),
  18627. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  18628. &ext_ec_ref_mux_ul6),
  18629. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  18630. &ext_ec_ref_mux_ul8),
  18631. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  18632. &ext_ec_ref_mux_ul9),
  18633. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL10 MUX", SND_SOC_NOPM, 0, 0,
  18634. &ext_ec_ref_mux_ul10),
  18635. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL16 MUX", SND_SOC_NOPM, 0, 0,
  18636. &ext_ec_ref_mux_ul16),
  18637. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  18638. &ext_ec_ref_mux_ul17),
  18639. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  18640. &ext_ec_ref_mux_ul18),
  18641. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  18642. &ext_ec_ref_mux_ul19),
  18643. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL28 MUX", SND_SOC_NOPM, 0, 0,
  18644. &ext_ec_ref_mux_ul28),
  18645. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL29 MUX", SND_SOC_NOPM, 0, 0,
  18646. &ext_ec_ref_mux_ul29),
  18647. };
  18648. static const struct snd_soc_dapm_route intercon[] = {
  18649. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18650. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18651. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18652. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18653. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18654. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18655. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18656. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18657. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18658. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18659. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18660. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18661. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18662. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18663. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18664. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18665. {"PRI_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  18666. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  18667. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18668. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18669. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18670. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18671. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18672. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18673. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18674. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18675. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18676. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18677. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18678. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18679. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18680. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18681. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18682. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18683. {"SEC_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  18684. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  18685. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18686. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18687. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18688. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18689. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18690. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18691. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18692. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18693. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18694. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18695. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18696. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18697. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18698. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18699. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18700. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18701. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  18702. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  18703. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18704. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18705. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18706. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18707. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18708. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18709. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18710. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18711. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18712. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18713. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18714. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18715. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18716. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18717. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18718. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18719. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  18720. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  18721. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18722. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18723. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18724. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18725. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18726. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18727. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18728. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18729. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18730. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18731. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18732. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18733. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18734. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18735. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18736. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18737. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  18738. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  18739. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18740. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18741. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18742. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18743. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18744. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18745. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18746. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18747. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18748. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18749. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18750. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18751. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18752. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18753. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18754. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18755. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18756. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Audio Mixer"},
  18757. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18758. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18759. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18760. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18761. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18762. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18763. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18764. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18765. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18766. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18767. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18768. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18769. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18770. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18771. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18772. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18773. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18774. {"WSA_CDC_DMA_RX_1", NULL, "WSA_CDC_DMA_RX_1 Audio Mixer"},
  18775. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18776. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18777. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18778. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18779. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18780. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18781. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18782. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18783. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18784. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18785. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18786. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18787. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18788. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18789. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18790. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18791. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18792. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Audio Mixer"},
  18793. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18794. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18795. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18796. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18797. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18798. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18799. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18800. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18801. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18802. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18803. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18804. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18805. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18806. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18807. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18808. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18809. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18810. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1 Audio Mixer"},
  18811. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18812. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18813. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18814. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18815. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18816. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18817. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18818. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18819. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18820. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18821. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18822. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18823. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18824. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18825. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18826. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18827. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18828. {"RX_CDC_DMA_RX_2", NULL, "RX_CDC_DMA_RX_2 Audio Mixer"},
  18829. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18830. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18831. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18832. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18833. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18834. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18835. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18836. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18837. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18838. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18839. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18840. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18841. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18842. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18843. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18844. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18845. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18846. {"RX_CDC_DMA_RX_3", NULL, "RX_CDC_DMA_RX_3 Audio Mixer"},
  18847. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18848. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18849. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18850. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18851. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18852. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18853. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18854. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18855. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18856. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18857. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18858. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18859. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18860. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18861. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18862. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18863. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18864. {"RX_CDC_DMA_RX_4", NULL, "RX_CDC_DMA_RX_4 Audio Mixer"},
  18865. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18866. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18867. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18868. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18869. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18870. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18871. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18872. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18873. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18874. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18875. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18876. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18877. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18878. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18879. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18880. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18881. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18882. {"RX_CDC_DMA_RX_5", NULL, "RX_CDC_DMA_RX_5 Audio Mixer"},
  18883. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18884. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18885. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18886. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18887. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18888. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18889. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18890. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18891. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18892. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18893. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18894. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18895. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18896. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18897. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18898. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18899. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18900. {"RX_CDC_DMA_RX_6", NULL, "RX_CDC_DMA_RX_6 Audio Mixer"},
  18901. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18902. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18903. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18904. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18905. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18906. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18907. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18908. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18909. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18910. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18911. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18912. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18913. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18914. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18915. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18916. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18917. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18918. {"RX_CDC_DMA_RX_7", NULL, "RX_CDC_DMA_RX_7 Audio Mixer"},
  18919. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  18920. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  18921. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  18922. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  18923. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  18924. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  18925. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  18926. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  18927. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  18928. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  18929. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  18930. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  18931. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  18932. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  18933. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  18934. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  18935. {"HDMI Mixer", "MultiMedia26", "MM_DL26"},
  18936. {"HDMI", NULL, "HDMI Mixer"},
  18937. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  18938. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  18939. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  18940. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  18941. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  18942. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  18943. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  18944. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  18945. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  18946. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  18947. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  18948. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  18949. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  18950. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  18951. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  18952. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  18953. {"DISPLAY_PORT Mixer", "MultiMedia26", "MM_DL26"},
  18954. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  18955. {"DISPLAY_PORT1 Mixer", "MultiMedia1", "MM_DL1"},
  18956. {"DISPLAY_PORT1 Mixer", "MultiMedia2", "MM_DL2"},
  18957. {"DISPLAY_PORT1 Mixer", "MultiMedia3", "MM_DL3"},
  18958. {"DISPLAY_PORT1 Mixer", "MultiMedia4", "MM_DL4"},
  18959. {"DISPLAY_PORT1 Mixer", "MultiMedia5", "MM_DL5"},
  18960. {"DISPLAY_PORT1 Mixer", "MultiMedia6", "MM_DL6"},
  18961. {"DISPLAY_PORT1 Mixer", "MultiMedia7", "MM_DL7"},
  18962. {"DISPLAY_PORT1 Mixer", "MultiMedia8", "MM_DL8"},
  18963. {"DISPLAY_PORT1 Mixer", "MultiMedia9", "MM_DL9"},
  18964. {"DISPLAY_PORT1 Mixer", "MultiMedia10", "MM_DL10"},
  18965. {"DISPLAY_PORT1 Mixer", "MultiMedia11", "MM_DL11"},
  18966. {"DISPLAY_PORT1 Mixer", "MultiMedia12", "MM_DL12"},
  18967. {"DISPLAY_PORT1 Mixer", "MultiMedia13", "MM_DL13"},
  18968. {"DISPLAY_PORT1 Mixer", "MultiMedia14", "MM_DL14"},
  18969. {"DISPLAY_PORT1 Mixer", "MultiMedia15", "MM_DL15"},
  18970. {"DISPLAY_PORT1 Mixer", "MultiMedia16", "MM_DL16"},
  18971. {"DISPLAY_PORT1 Mixer", "MultiMedia26", "MM_DL26"},
  18972. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT1 Mixer"},
  18973. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18974. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18975. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18976. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18977. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18978. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18979. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18980. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18981. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18982. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18983. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18984. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18985. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18986. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18987. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18988. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18989. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  18990. {"PRI_SPDIF_RX", NULL, "PRI_SPDIF_RX Audio Mixer"},
  18991. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18992. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18993. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18994. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18995. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18996. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18997. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18998. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18999. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19000. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19001. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19002. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19003. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19004. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19005. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19006. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19007. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19008. {"SEC_SPDIF_RX", NULL, "SEC_SPDIF_RX Audio Mixer"},
  19009. /* incall */
  19010. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  19011. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  19012. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  19013. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  19014. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  19015. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19016. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19017. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19018. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19019. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  19020. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19021. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19022. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19023. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19024. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  19025. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19026. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19027. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19028. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19029. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19030. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19031. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19032. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19033. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19034. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19035. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19036. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19037. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19038. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19039. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19040. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19041. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19042. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  19043. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19044. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19045. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19046. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19047. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19048. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19049. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19050. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19051. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19052. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19053. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19054. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19055. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19056. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19057. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19058. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19059. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19060. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  19061. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19062. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19063. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19064. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19065. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19066. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19067. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19068. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19069. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19070. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19071. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19072. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19073. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19074. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19075. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19076. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19077. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19078. {"SLIMBUS_9_RX", NULL, "SLIMBUS_9_RX Audio Mixer"},
  19079. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19080. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19081. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19082. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19083. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19084. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19085. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19086. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19087. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19088. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19089. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19090. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19091. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19092. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19093. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19094. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19095. {"USB_AUDIO_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19096. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  19097. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  19098. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  19099. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  19100. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  19101. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  19102. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  19103. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  19104. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  19105. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  19106. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  19107. {"MultiMedia1 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  19108. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  19109. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  19110. {"MultiMedia8 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  19111. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19112. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19113. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19114. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19115. {"MultiMedia28 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19116. {"MultiMedia29 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19117. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19118. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19119. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19120. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19121. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19122. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19123. {"MultiMedia28 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19124. {"MultiMedia29 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19125. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19126. {"MultiMedia18 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19127. {"MultiMedia17 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19128. {"MultiMedia18 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19129. {"MultiMedia19 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19130. {"MultiMedia28 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19131. {"MultiMedia29 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19132. {"MultiMedia17 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19133. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19134. {"MultiMedia19 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19135. {"MultiMedia28 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19136. {"MultiMedia29 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19137. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19138. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19139. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19140. {"MultiMedia10 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19141. {"MultiMedia16 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19142. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  19143. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  19144. {"MultiMedia5 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  19145. {"MultiMedia10 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  19146. {"MultiMedia10 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  19147. {"MultiMedia18 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19148. {"MultiMedia18 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19149. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19150. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19151. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19152. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19153. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19154. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19155. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19156. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19157. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19158. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19159. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19160. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19161. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19162. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19163. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19164. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19165. {"MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19166. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  19167. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19168. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19169. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19170. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19171. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19172. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19173. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19174. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19175. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19176. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19177. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19178. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19179. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19180. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19181. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19182. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19183. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  19184. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19185. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19186. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19187. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19188. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19189. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19190. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19191. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19192. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19193. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19194. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19195. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19196. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19197. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19198. {"TERT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19199. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  19200. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19201. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19202. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19203. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19204. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19205. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19206. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19207. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19208. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19209. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19210. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19211. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19212. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19213. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19214. {"SEC_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19215. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  19216. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19217. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  19218. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19219. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  19220. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19221. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19222. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19223. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19224. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19225. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19226. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19227. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19228. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19229. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19230. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19231. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19232. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19233. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19234. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19235. {"PRI_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19236. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  19237. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19238. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19239. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19240. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19241. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19242. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19243. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19244. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19245. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19246. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19247. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19248. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19249. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19250. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19251. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19252. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  19253. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19254. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19255. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19256. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19257. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19258. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19259. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19260. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19261. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19262. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19263. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19264. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19265. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19266. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19267. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19268. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  19269. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19270. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19271. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19272. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19273. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19274. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19275. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19276. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19277. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19278. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19279. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19280. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19281. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19282. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19283. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19284. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19285. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19286. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  19287. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19288. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19289. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19290. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19291. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19292. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19293. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19294. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19295. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19296. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19297. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19298. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19299. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19300. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19301. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19302. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19303. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19304. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  19305. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19306. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19307. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19308. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19309. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19310. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19311. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19312. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19313. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19314. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19315. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19316. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19317. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19318. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19319. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19320. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19321. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19322. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  19323. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19324. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19325. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19326. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19327. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19328. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19329. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19330. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19331. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19332. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19333. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19334. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19335. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19336. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19337. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19338. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19339. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19340. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  19341. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19342. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19343. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19344. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19345. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19346. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19347. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19348. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19349. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19350. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19351. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19352. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19353. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19354. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19355. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19356. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19357. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19358. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  19359. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19360. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19361. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19362. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19363. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19364. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19365. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19366. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19367. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19368. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19369. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19370. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19371. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19372. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19373. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19374. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19375. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  19376. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19377. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19378. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19379. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19380. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19381. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19382. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19383. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19384. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19385. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19386. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19387. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19388. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19389. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19390. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19391. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19392. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19393. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  19394. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19395. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19396. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19397. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19398. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19399. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19400. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19401. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19402. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19403. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19404. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19405. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19406. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19407. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19408. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19409. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19410. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19411. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  19412. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19413. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19414. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19415. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19416. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19417. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19418. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19419. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19420. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19421. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19422. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19423. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19424. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19425. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19426. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19427. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19428. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19429. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  19430. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19431. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19432. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19433. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19434. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19435. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19436. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19437. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19438. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19439. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19440. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19441. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19442. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19443. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19444. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19445. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19446. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19447. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  19448. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19449. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19450. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19451. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19452. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19453. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19454. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19455. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19456. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19457. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19458. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19459. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19460. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19461. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19462. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19463. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19464. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  19465. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19466. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19467. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19468. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19469. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19470. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19471. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19472. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19473. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19474. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19475. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19476. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19477. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19478. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19479. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19480. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19481. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19482. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  19483. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19484. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19485. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19486. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19487. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19488. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19489. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19490. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19491. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19492. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19493. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19494. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19495. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19496. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19497. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19498. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19499. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  19500. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19501. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19502. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19503. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19504. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19505. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19506. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19507. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19508. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19509. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19510. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19511. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19512. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19513. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19514. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19515. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19516. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19517. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  19518. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19519. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19520. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19521. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19522. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19523. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19524. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19525. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19526. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19527. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19528. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19529. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19530. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19531. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19532. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19533. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19534. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19535. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  19536. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19537. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19538. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19539. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19540. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19541. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19542. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19543. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19544. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19545. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19546. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19547. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19548. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19549. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19550. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19551. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19552. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19553. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  19554. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19555. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19556. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19557. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19558. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19559. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19560. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19561. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19562. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19563. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19564. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19565. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19566. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19567. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19568. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19569. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19570. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19571. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  19572. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19573. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19574. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19575. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19576. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19577. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19578. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19579. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19580. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19581. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19582. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19583. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19584. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19585. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19586. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19587. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19588. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19589. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19590. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  19591. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19592. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19593. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19594. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19595. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19596. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19597. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19598. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19599. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19600. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19601. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19602. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19603. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19604. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19605. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19606. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19607. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  19608. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19609. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19610. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19611. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19612. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19613. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19614. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19615. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19616. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19617. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19618. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19619. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19620. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19621. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19622. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19623. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19624. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19625. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19626. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  19627. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19628. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19629. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19630. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19631. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19632. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19633. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19634. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19635. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19636. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19637. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19638. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19639. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19640. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19641. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19642. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19643. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19644. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19645. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  19646. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19647. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19648. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19649. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19650. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19651. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19652. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19653. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19654. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19655. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19656. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19657. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19658. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19659. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19660. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19661. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19662. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19663. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19664. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  19665. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19666. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19667. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19668. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19669. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19670. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19671. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19672. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19673. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19674. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19675. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19676. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19677. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19678. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19679. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19680. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19681. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19682. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19683. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  19684. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19685. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19686. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19687. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19688. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19689. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19690. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19691. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19692. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19693. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19694. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19695. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19696. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19697. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19698. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19699. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19700. {"QUIN_TDM_TX_0", NULL, "QUIN_TDM_TX_0 Audio Mixer"},
  19701. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19702. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19703. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19704. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19705. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19706. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19707. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19708. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19709. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19710. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19711. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19712. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19713. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19714. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19715. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19716. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19717. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19718. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19719. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  19720. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19721. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19722. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19723. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19724. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19725. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19726. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19727. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19728. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19729. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19730. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19731. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19732. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19733. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19734. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19735. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19736. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19737. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19738. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  19739. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19740. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19741. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19742. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19743. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19744. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19745. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19746. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19747. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19748. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19749. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19750. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19751. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19752. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19753. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19754. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19755. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19756. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19757. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  19758. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  19759. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  19760. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  19761. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  19762. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  19763. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  19764. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  19765. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19766. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19767. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19768. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  19769. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  19770. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19771. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19772. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19773. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19774. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19775. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19776. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19777. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  19778. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  19779. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  19780. {"MultiMedia10 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  19781. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  19782. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  19783. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  19784. {"MultiMedia10 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  19785. {"MultiMedia16 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  19786. {"MultiMedia16 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  19787. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  19788. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  19789. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  19790. {"MultiMedia10 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  19791. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  19792. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  19793. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  19794. {"MultiMedia10 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  19795. {"MultiMedia16 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  19796. {"MultiMedia1 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  19797. {"MultiMedia3 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  19798. {"MultiMedia5 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  19799. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19800. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  19801. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  19802. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  19803. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19804. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19805. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19806. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19807. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19808. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19809. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19810. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19811. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19812. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19813. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19814. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19815. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19816. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19817. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19818. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19819. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19820. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19821. {"MultiMedia17 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19822. {"MultiMedia18 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19823. {"MultiMedia19 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19824. {"MultiMedia28 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19825. {"MultiMedia29 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19826. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19827. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  19828. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  19829. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19830. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  19831. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19832. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19833. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19834. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19835. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19836. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19837. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19838. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19839. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19840. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19841. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19842. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19843. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19844. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19845. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19846. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19847. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  19848. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  19849. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  19850. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  19851. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19852. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  19853. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  19854. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19855. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19856. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19857. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19858. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19859. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19860. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19861. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19862. {"MultiMedia1 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19863. {"MultiMedia1 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19864. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19865. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19866. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19867. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19868. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19869. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19870. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19871. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19872. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19873. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19874. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19875. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19876. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19877. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19878. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19879. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19880. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  19881. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  19882. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  19883. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  19884. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19885. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  19886. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  19887. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19888. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19889. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19890. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19891. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19892. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19893. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19894. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19895. {"MultiMedia2 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19896. {"MultiMedia2 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19897. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19898. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19899. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19900. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19901. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19902. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19903. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19904. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19905. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19906. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19907. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19908. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19909. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19910. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19911. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19912. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19913. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  19914. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  19915. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  19916. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  19917. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19918. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  19919. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  19920. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19921. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19922. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19923. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19924. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19925. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19926. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19927. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19928. {"MultiMedia3 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19929. {"MultiMedia3 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19930. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19931. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19932. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19933. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19934. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19935. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19936. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19937. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19938. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19939. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19940. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19941. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19942. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19943. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19944. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19945. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19946. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  19947. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  19948. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  19949. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  19950. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19951. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  19952. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  19953. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19954. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19955. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19956. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19957. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19958. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19959. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19960. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19961. {"MultiMedia4 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19962. {"MultiMedia4 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19963. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19964. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19965. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19966. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19967. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19968. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19969. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19970. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19971. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19972. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19973. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19974. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19975. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19976. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19977. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19978. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19979. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  19980. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  19981. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  19982. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  19983. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19984. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  19985. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  19986. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19987. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19988. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19989. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19990. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19991. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19992. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19993. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19994. {"MultiMedia5 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19995. {"MultiMedia5 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19996. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19997. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19998. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19999. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20000. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20001. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20002. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20003. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20004. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20005. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20006. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20007. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20008. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20009. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20010. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20011. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20012. {"MultiMedia6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20013. {"MultiMedia6 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20014. {"MultiMedia6 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20015. {"MultiMedia6 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20016. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20017. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20018. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20019. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20020. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20021. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20022. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20023. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20024. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20025. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20026. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20027. {"MultiMedia6 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20028. {"MultiMedia6 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20029. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20030. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20031. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20032. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20033. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20034. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20035. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20036. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20037. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20038. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20039. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20040. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20041. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20042. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20043. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20044. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20045. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20046. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20047. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20048. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20049. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20050. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20051. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20052. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20053. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20054. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20055. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20056. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20057. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20058. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20059. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20060. {"MultiMedia8 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20061. {"MultiMedia8 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20062. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20063. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20064. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20065. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20066. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20067. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20068. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20069. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20070. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20071. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20072. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20073. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20074. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20075. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20076. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20077. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20078. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20079. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20080. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20081. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20082. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20083. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20084. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20085. {"MultiMedia9 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20086. {"MultiMedia9 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20087. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20088. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20089. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20090. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20091. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20092. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20093. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20094. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20095. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20096. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20097. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20098. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20099. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20100. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20101. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20102. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20103. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20104. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20105. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  20106. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20107. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20108. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20109. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20110. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20111. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20112. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20113. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20114. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20115. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20116. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20117. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20118. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20119. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20120. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20121. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20122. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20123. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20124. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20125. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20126. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20127. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20128. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20129. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20130. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20131. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20132. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20133. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20134. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20135. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20136. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20137. {"MultiMedia20 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20138. {"MultiMedia20 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20139. {"MultiMedia21 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20140. {"MultiMedia21 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20141. {"MultiMedia21 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20142. {"MultiMedia21 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20143. {"MultiMedia21 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20144. {"MultiMedia21 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20145. {"MultiMedia21 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20146. {"MultiMedia21 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20147. {"MultiMedia21 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20148. {"MultiMedia21 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20149. {"MultiMedia21 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20150. {"MultiMedia21 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20151. {"MultiMedia21 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20152. {"MultiMedia21 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20153. {"MultiMedia21 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20154. {"MultiMedia21 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20155. {"MultiMedia21 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20156. {"MultiMedia21 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20157. {"MultiMedia21 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20158. {"MultiMedia21 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20159. {"MultiMedia21 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20160. {"MultiMedia21 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20161. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20162. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20163. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20164. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20165. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20166. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20167. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20168. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20169. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20170. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20171. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20172. {"MultiMedia21 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20173. {"MultiMedia21 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20174. {"MultiMedia27 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20175. {"MultiMedia27 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  20176. {"MultiMedia27 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  20177. {"MultiMedia27 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  20178. {"MultiMedia27 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20179. {"MultiMedia27 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20180. {"MultiMedia27 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20181. {"MultiMedia27 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20182. {"MultiMedia27 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  20183. {"MultiMedia27 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20184. {"MultiMedia27 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20185. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20186. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20187. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20188. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20189. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20190. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20191. {"MultiMedia10 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20192. {"MultiMedia16 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20193. {"MultiMedia16 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20194. {"MultiMedia16 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20195. {"MultiMedia16 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20196. {"MultiMedia16 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20197. {"MultiMedia16 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20198. {"MultiMedia16 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20199. {"MultiMedia16 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20200. {"MultiMedia16 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20201. {"MultiMedia16 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20202. {"MultiMedia16 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20203. {"MultiMedia16 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20204. {"MultiMedia16 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20205. {"MultiMedia16 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20206. {"MultiMedia16 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20207. {"MultiMedia16 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20208. {"MultiMedia16 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20209. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20210. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20211. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20212. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20213. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20214. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20215. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20216. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20217. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20218. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20219. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20220. {"MultiMedia16 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20221. {"MultiMedia16 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20222. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20223. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20224. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20225. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20226. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20227. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20228. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20229. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20230. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20231. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20232. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20233. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20234. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20235. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20236. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20237. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20238. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20239. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20240. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20241. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20242. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20243. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20244. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20245. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20246. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20247. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20248. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20249. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20250. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20251. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20252. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20253. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20254. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20255. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20256. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20257. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20258. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20259. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20260. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20261. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20262. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20263. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20264. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20265. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20266. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20267. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20268. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  20269. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  20270. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20271. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20272. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20273. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20274. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20275. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20276. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20277. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20278. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20279. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20280. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20281. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20282. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20283. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20284. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20285. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20286. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  20287. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  20288. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20289. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20290. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20291. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20292. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20293. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20294. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20295. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20296. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20297. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20298. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20299. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20300. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20301. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20302. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20303. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20304. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  20305. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20306. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20307. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20308. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20309. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20310. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20311. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20312. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20313. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20314. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20315. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20316. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20317. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20318. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20319. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20320. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20321. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  20322. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20323. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20324. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20325. {"MultiMedia10 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20326. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20327. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20328. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20329. {"MultiMedia28 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20330. {"MultiMedia29 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20331. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20332. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20333. {"MultiMedia16 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20334. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20335. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20336. {"MultiMedia16 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20337. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20338. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20339. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20340. {"MultiMedia28 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20341. {"MultiMedia29 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20342. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20343. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20344. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20345. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20346. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20347. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20348. {"MultiMedia10 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20349. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20350. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20351. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20352. {"MultiMedia28 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20353. {"MultiMedia29 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20354. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20355. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20356. {"MultiMedia16 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20357. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  20358. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20359. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  20360. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  20361. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  20362. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  20363. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  20364. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  20365. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  20366. {"MM_UL10", NULL, "MultiMedia10 Mixer"},
  20367. {"MM_UL16", NULL, "MultiMedia16 Mixer"},
  20368. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  20369. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  20370. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  20371. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  20372. {"MM_UL21", NULL, "MultiMedia21 Mixer"},
  20373. {"MM_UL27", NULL, "MultiMedia27 Mixer"},
  20374. {"MM_UL28", NULL, "MultiMedia28 Mixer"},
  20375. {"MM_UL29", NULL, "MultiMedia29 Mixer"},
  20376. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20377. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20378. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20379. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20380. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20381. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20382. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20383. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20384. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20385. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20386. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20387. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20388. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20389. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20390. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20391. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20392. {"AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  20393. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  20394. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20395. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20396. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20397. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20398. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20399. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20400. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20401. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20402. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20403. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20404. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20405. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20406. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20407. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20408. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20409. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20410. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  20411. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  20412. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20413. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20414. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20415. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20416. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20417. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20418. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20419. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20420. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20421. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20422. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20423. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20424. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20425. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20426. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20427. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20428. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  20429. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20430. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20431. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20432. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20433. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20434. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20435. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20436. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20437. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20438. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20439. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20440. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20441. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20442. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20443. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20444. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20445. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  20446. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20447. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20448. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20449. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20450. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20451. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20452. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20453. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20454. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20455. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20456. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20457. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20458. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20459. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20460. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20461. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20462. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX Audio Mixer"},
  20463. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20464. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20465. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20466. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20467. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20468. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  20469. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20470. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20471. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20472. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  20473. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20474. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20475. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20476. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20477. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20478. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  20479. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20480. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20481. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20482. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20483. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20484. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  20485. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20486. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20487. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20488. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20489. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20490. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  20491. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20492. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20493. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20494. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20495. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20496. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  20497. {"DISPLAY_PORT_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20498. {"DISPLAY_PORT_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20499. {"DISPLAY_PORT_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20500. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20501. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20502. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX_Voice Mixer"},
  20503. {"DISPLAY_PORT_RX1_Voice Mixer", "Voip", "VOIP_DL"},
  20504. {"DISPLAY_PORT_RX1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20505. {"DISPLAY_PORT_RX1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20506. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20507. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20508. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1_Voice Mixer"},
  20509. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20510. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20511. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20512. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20513. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20514. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  20515. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20516. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20517. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20518. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20519. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20520. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  20521. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20522. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20523. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20524. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20525. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20526. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  20527. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20528. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20529. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20530. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20531. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20532. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  20533. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20534. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20535. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20536. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20537. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20538. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  20539. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20540. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20541. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20542. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20543. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20544. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  20545. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20546. {"QUIN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20547. {"QUIN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20548. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20549. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20550. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX_Voice Mixer"},
  20551. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20552. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20553. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20554. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20555. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20556. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  20557. {"HDMI", NULL, "HDMI_DL_HL"},
  20558. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20559. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20560. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20561. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20562. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20563. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  20564. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20565. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20566. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20567. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20568. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20569. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  20570. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20571. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20572. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20573. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20574. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20575. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  20576. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20577. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20578. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20579. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20580. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20581. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  20582. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20583. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20584. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20585. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20586. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20587. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  20588. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20589. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20590. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20591. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20592. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  20593. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20594. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20595. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20596. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20597. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  20598. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20599. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  20600. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20601. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20602. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_Voice Mixer"},
  20603. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20604. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20605. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_Voice Mixer"},
  20606. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20607. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20608. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20609. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20610. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  20611. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20612. {"VOC_EXT_EC MUX", "SEC_TDM_TX", "SEC_TDM_TX_0"},
  20613. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  20614. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  20615. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  20616. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20617. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20618. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20619. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20620. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20621. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20622. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  20623. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  20624. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  20625. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20626. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20627. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20628. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20629. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20630. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20631. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20632. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20633. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20634. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20635. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20636. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20637. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20638. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20639. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20640. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20641. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20642. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20643. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20644. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20645. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20646. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20647. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20648. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20649. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20650. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20651. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20652. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20653. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20654. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20655. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20656. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20657. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20658. {"AUDIO_REF_EC_UL10 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20659. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20660. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  20661. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  20662. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  20663. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20664. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20665. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20666. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20667. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20668. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20669. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20670. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20671. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20672. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20673. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20674. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20675. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20676. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20677. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20678. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20679. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20680. {"AUDIO_REF_EC_UL28 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20681. {"AUDIO_REF_EC_UL28 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20682. {"AUDIO_REF_EC_UL28 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20683. {"AUDIO_REF_EC_UL28 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20684. {"AUDIO_REF_EC_UL29 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20685. {"AUDIO_REF_EC_UL29 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20686. {"AUDIO_REF_EC_UL29 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20687. {"AUDIO_REF_EC_UL29 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20688. {"LSM1_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20689. {"LSM2_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20690. {"LSM3_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20691. {"LSM4_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20692. {"LSM5_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20693. {"LSM6_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20694. {"LSM7_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20695. {"LSM8_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20696. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20697. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  20698. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  20699. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  20700. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  20701. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  20702. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  20703. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  20704. {"MM_UL10", NULL, "AUDIO_REF_EC_UL10 MUX"},
  20705. {"MM_UL16", NULL, "AUDIO_REF_EC_UL16 MUX"},
  20706. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  20707. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  20708. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  20709. {"MM_UL28", NULL, "AUDIO_REF_EC_UL28 MUX"},
  20710. {"MM_UL29", NULL, "AUDIO_REF_EC_UL29 MUX"},
  20711. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  20712. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  20713. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  20714. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  20715. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  20716. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  20717. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  20718. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  20719. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  20720. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  20721. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  20722. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  20723. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  20724. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  20725. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  20726. {"VoiceMMode1_Tx Mixer", "QUIN_AUX_PCM_TX_MMode1", "QUIN_AUX_PCM_TX"},
  20727. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  20728. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_0_MMode1", "TX_CDC_DMA_TX_0"},
  20729. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_1_MMode1", "TX_CDC_DMA_TX_1"},
  20730. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_2_MMode1", "TX_CDC_DMA_TX_2"},
  20731. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_3_MMode1", "TX_CDC_DMA_TX_3"},
  20732. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_4_MMode1", "TX_CDC_DMA_TX_4"},
  20733. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_5_MMode1", "TX_CDC_DMA_TX_5"},
  20734. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  20735. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  20736. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  20737. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  20738. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  20739. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  20740. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  20741. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  20742. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  20743. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  20744. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  20745. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  20746. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  20747. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  20748. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  20749. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  20750. {"VoiceMMode2_Tx Mixer", "QUIN_AUX_PCM_TX_MMode2", "QUIN_AUX_PCM_TX"},
  20751. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_0_MMode2", "TX_CDC_DMA_TX_0"},
  20752. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_1_MMode2", "TX_CDC_DMA_TX_1"},
  20753. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_2_MMode2", "TX_CDC_DMA_TX_2"},
  20754. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_3_MMode2", "TX_CDC_DMA_TX_3"},
  20755. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_4_MMode2", "TX_CDC_DMA_TX_4"},
  20756. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_5_MMode2", "TX_CDC_DMA_TX_5"},
  20757. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  20758. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  20759. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  20760. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  20761. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  20762. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  20763. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  20764. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  20765. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  20766. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  20767. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  20768. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  20769. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  20770. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  20771. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  20772. {"Voip_Tx Mixer", "QUIN_AUX_PCM_TX_Voip", "QUIN_AUX_PCM_TX"},
  20773. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  20774. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  20775. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  20776. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  20777. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  20778. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  20779. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  20780. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  20781. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  20782. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  20783. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  20784. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  20785. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  20786. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  20787. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  20788. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  20789. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  20790. {"WSA_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  20791. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_DL_HL"},
  20792. {"CDC_DMA_UL_HL", NULL, "VA_CDC_DMA_TX_0"},
  20793. {"RX_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  20794. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_DL_HL"},
  20795. {"TX3_CDC_DMA_UL_HL", NULL, "TX_CDC_DMA_TX_3"},
  20796. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20797. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20798. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20799. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20800. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20801. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20802. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20803. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20804. {"LSM1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20805. {"LSM1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20806. {"LSM1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20807. {"LSM1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20808. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  20809. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20810. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20811. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20812. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20813. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20814. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20815. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20816. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20817. {"LSM2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20818. {"LSM2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20819. {"LSM2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20820. {"LSM2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20821. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  20822. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20823. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20824. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20825. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20826. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20827. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20828. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20829. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20830. {"LSM3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20831. {"LSM3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20832. {"LSM3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20833. {"LSM3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20834. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  20835. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20836. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20837. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20838. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20839. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20840. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20841. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20842. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20843. {"LSM4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20844. {"LSM4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20845. {"LSM4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20846. {"LSM4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20847. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  20848. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20849. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20850. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20851. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20852. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20853. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20854. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20855. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20856. {"LSM5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20857. {"LSM5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20858. {"LSM5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20859. {"LSM5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20860. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  20861. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20862. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20863. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20864. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20865. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20866. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20867. {"LSM6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20868. {"LSM6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20869. {"LSM6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20870. {"LSM6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20871. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  20872. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20873. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20874. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20875. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20876. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20877. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20878. {"LSM7 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20879. {"LSM7 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20880. {"LSM7 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20881. {"LSM7 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20882. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  20883. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20884. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20885. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20886. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20887. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20888. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20889. {"LSM8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20890. {"LSM8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20891. {"LSM8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20892. {"LSM8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20893. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  20894. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  20895. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  20896. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  20897. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  20898. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  20899. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  20900. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  20901. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  20902. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  20903. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  20904. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  20905. {"QCHAT_Tx Mixer", "QUIN_AUX_PCM_TX_QCHAT", "QUIN_AUX_PCM_TX"},
  20906. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  20907. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  20908. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  20909. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  20910. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  20911. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  20912. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  20913. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  20914. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  20915. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  20916. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  20917. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  20918. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  20919. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  20920. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  20921. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  20922. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  20923. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  20924. {"SLIM7_UL_HL", NULL, "A2DP_SLIM7_UL_HL"},
  20925. {"A2DP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  20926. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_DL_HL"},
  20927. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  20928. {"SEC_AUXPCM_UL_HL", NULL, "SEC_AUX_PCM_TX"},
  20929. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  20930. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  20931. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  20932. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  20933. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  20934. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  20935. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  20936. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  20937. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  20938. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  20939. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  20940. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  20941. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  20942. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  20943. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  20944. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  20945. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  20946. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  20947. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  20948. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  20949. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  20950. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  20951. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  20952. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  20953. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  20954. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  20955. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  20956. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  20957. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  20958. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  20959. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  20960. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  20961. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  20962. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  20963. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  20964. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  20965. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  20966. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  20967. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  20968. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  20969. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  20970. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  20971. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  20972. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  20973. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  20974. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  20975. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  20976. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  20977. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  20978. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  20979. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  20980. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  20981. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  20982. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  20983. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  20984. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  20985. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  20986. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  20987. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  20988. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  20989. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  20990. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  20991. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  20992. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  20993. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  20994. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  20995. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  20996. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  20997. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  20998. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20999. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21000. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21001. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21002. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21003. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21004. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21005. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21006. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  21007. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  21008. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  21009. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  21010. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21011. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21012. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21013. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21014. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21015. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21016. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21017. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21018. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  21019. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21020. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21021. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21022. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21023. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21024. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21025. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21026. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21027. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  21028. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  21029. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  21030. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  21031. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21032. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21033. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21034. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21035. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21036. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21037. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21038. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21039. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  21040. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21041. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21042. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21043. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21044. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21045. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21046. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21047. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21048. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  21049. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  21050. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  21051. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  21052. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21053. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21054. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21055. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21056. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21057. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21058. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21059. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21060. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  21061. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21062. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21063. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21064. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21065. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21066. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21067. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21068. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21069. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  21070. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  21071. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  21072. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  21073. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21074. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21075. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21076. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21077. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21078. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21079. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21080. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21081. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  21082. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21083. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21084. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21085. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21086. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21087. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21088. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21089. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21090. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  21091. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  21092. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  21093. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  21094. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21095. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21096. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21097. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21098. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21099. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21100. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21101. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21102. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  21103. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21104. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21105. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21106. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21107. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21108. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21109. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21110. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21111. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  21112. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  21113. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  21114. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  21115. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21116. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21117. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21118. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21119. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21120. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21121. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21122. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21123. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  21124. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21125. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21126. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21127. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21128. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21129. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21130. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21131. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21132. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  21133. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  21134. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  21135. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  21136. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21137. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21138. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21139. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21140. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21141. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21142. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21143. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21144. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  21145. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21146. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21147. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21148. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21149. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21150. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21151. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21152. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21153. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  21154. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  21155. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  21156. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  21157. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21158. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21159. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21160. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21161. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21162. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21163. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21164. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21165. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  21166. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21167. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21168. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21169. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21170. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21171. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21172. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21173. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21174. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21175. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21176. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21177. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21178. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21179. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21180. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21181. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21182. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21183. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21184. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21185. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21186. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  21187. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21188. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21189. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21190. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21191. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21192. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21193. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21194. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21195. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21196. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21197. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21198. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21199. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21200. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21201. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21202. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21203. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21204. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21205. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21206. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21207. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  21208. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21209. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21210. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21211. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21212. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21213. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21214. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21215. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21216. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21217. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21218. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21219. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21220. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21221. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21222. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21223. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21224. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21225. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21226. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21227. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21228. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  21229. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21230. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21231. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21232. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21233. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21234. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21235. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21236. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21237. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21238. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21239. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21240. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21241. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21242. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21243. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21244. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21245. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21246. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21247. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21248. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21249. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  21250. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21251. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21252. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21253. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21254. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21255. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21256. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21257. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21258. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21259. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21260. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21261. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21262. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21263. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21264. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21265. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21266. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21267. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21268. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21269. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21270. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  21271. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21272. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21273. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21274. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21275. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21276. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21277. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21278. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21279. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21280. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21281. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21282. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21283. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21284. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21285. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21286. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21287. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21288. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21289. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21290. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21291. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  21292. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21293. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21294. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21295. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21296. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21297. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21298. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21299. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21300. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21301. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21302. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21303. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21304. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21305. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21306. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21307. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21308. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21309. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21310. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21311. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21312. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  21313. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21314. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21315. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21316. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21317. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21318. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21319. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21320. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21321. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21322. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21323. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21324. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21325. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21326. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21327. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21328. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21329. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21330. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21331. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21332. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21333. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  21334. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21335. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21336. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21337. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21338. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21339. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21340. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21341. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21342. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21343. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21344. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21345. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21346. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21347. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21348. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21349. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21350. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21351. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21352. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21353. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21354. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  21355. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21356. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21357. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21358. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21359. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21360. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21361. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21362. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21363. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21364. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21365. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21366. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21367. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21368. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21369. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21370. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21371. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21372. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21373. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21374. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21375. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  21376. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21377. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21378. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21379. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21380. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21381. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21382. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21383. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21384. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21385. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21386. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21387. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21388. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21389. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21390. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21391. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21392. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21393. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21394. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21395. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21396. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  21397. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21398. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21399. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21400. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21401. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21402. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21403. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21404. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21405. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21406. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21407. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21408. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21409. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21410. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21411. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21412. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21413. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21414. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21415. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21416. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21417. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  21418. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21419. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21420. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21421. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21422. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21423. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  21424. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  21425. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21426. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21427. {"INT0_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  21428. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21429. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  21430. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21431. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21432. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21433. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21434. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21435. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  21436. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  21437. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21438. {"INT4_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  21439. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21440. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21441. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  21442. {"WSA_CDC_DMA_RX_0 Port Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  21443. {"WSA_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  21444. {"RX_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  21445. {"WSA_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21446. {"RX_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21447. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21448. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21449. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21450. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  21451. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21452. {"SLIMBUS_0_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  21453. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21454. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21455. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  21456. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  21457. {"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  21458. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  21459. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21460. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21461. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21462. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21463. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21464. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21465. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  21466. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21467. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21468. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  21469. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  21470. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  21471. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  21472. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  21473. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  21474. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21475. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21476. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21477. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21478. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21479. {"AUX_PCM_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21480. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  21481. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21482. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21483. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21484. {"SEC_AUXPCM_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21485. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  21486. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21487. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  21488. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21489. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  21490. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21491. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  21492. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21493. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  21494. {"QUIN_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21495. {"QUIN_AUXPCM_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  21496. {"QUIN_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21497. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUXPCM_RX Port Mixer"},
  21498. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  21499. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21500. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21501. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  21502. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21503. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21504. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  21505. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  21506. {"Voice Stub Tx Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  21507. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  21508. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21509. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21510. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  21511. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21512. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21513. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  21514. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  21515. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21516. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  21517. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  21518. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  21519. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21520. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  21521. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21522. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21523. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  21524. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  21525. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21526. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  21527. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21528. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21529. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  21530. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  21531. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21532. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  21533. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21534. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21535. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  21536. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  21537. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21538. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  21539. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21540. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21541. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  21542. {"STUB_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21543. {"STUB_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21544. {"STUB_RX", NULL, "STUB_RX Mixer"},
  21545. {"SLIMBUS_1_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21546. {"SLIMBUS_1_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21547. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  21548. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21549. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21550. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  21551. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  21552. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  21553. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21554. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21555. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21556. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  21557. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  21558. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  21559. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21560. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21561. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21562. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  21563. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21564. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21565. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21566. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  21567. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21568. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21569. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  21570. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  21571. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  21572. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  21573. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  21574. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  21575. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  21576. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21577. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21578. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21579. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  21580. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21581. {"SLIMBUS_6_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  21582. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21583. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21584. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  21585. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21586. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21587. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21588. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21589. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  21590. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  21591. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  21592. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  21593. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  21594. {"DISPLAY_PORT_RX1 Port Mixer", "MI2S_TX", "MI2S_TX"},
  21595. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1 Port Mixer"},
  21596. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  21597. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  21598. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21599. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  21600. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  21601. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21602. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21603. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21604. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21605. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21606. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21607. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21608. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21609. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21610. {"PRI_MI2S_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21611. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  21612. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21613. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21614. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21615. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21616. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21617. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21618. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21619. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21620. {"SEC_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21621. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  21622. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21623. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21624. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21625. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21626. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21627. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21628. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21629. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  21630. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21631. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21632. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21633. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21634. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21635. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21636. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21637. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21638. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21639. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  21640. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21641. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21642. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21643. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21644. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21645. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21646. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21647. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  21648. /* Backend Enablement */
  21649. {"BE_OUT", NULL, "PRI_I2S_RX"},
  21650. {"BE_OUT", NULL, "SEC_I2S_RX"},
  21651. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  21652. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  21653. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  21654. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  21655. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  21656. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  21657. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  21658. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  21659. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  21660. {"BE_OUT", NULL, "SLIMBUS_9_RX"},
  21661. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  21662. {"BE_OUT", NULL, "HDMI"},
  21663. {"BE_OUT", NULL, "DISPLAY_PORT"},
  21664. {"BE_OUT", NULL, "DISPLAY_PORT1"},
  21665. {"BE_OUT", NULL, "PRI_SPDIF_RX"},
  21666. {"BE_OUT", NULL, "SEC_SPDIF_RX"},
  21667. {"BE_OUT", NULL, "MI2S_RX"},
  21668. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  21669. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  21670. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  21671. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  21672. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  21673. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  21674. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  21675. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  21676. {"BE_OUT", NULL, "INT2_MI2S_RX"},
  21677. {"BE_OUT", NULL, "INT3_MI2S_RX"},
  21678. {"BE_OUT", NULL, "INT5_MI2S_RX"},
  21679. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  21680. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  21681. {"BE_OUT", NULL, "INT_FM_RX"},
  21682. {"BE_OUT", NULL, "PCM_RX"},
  21683. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  21684. {"BE_OUT", NULL, "AUX_PCM_RX"},
  21685. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  21686. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  21687. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  21688. {"BE_OUT", NULL, "QUIN_AUX_PCM_RX"},
  21689. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  21690. {"BE_OUT", NULL, "INT_FM_RX"},
  21691. {"BE_OUT", NULL, "PCM_RX"},
  21692. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  21693. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  21694. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  21695. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  21696. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  21697. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  21698. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  21699. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  21700. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  21701. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  21702. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  21703. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  21704. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  21705. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  21706. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  21707. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  21708. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  21709. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  21710. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  21711. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  21712. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  21713. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  21714. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  21715. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  21716. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_0"},
  21717. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_1"},
  21718. {"BE_OUT", NULL, "RX_CDC_DMA_RX_0"},
  21719. {"BE_OUT", NULL, "RX_CDC_DMA_RX_1"},
  21720. {"BE_OUT", NULL, "RX_CDC_DMA_RX_2"},
  21721. {"BE_OUT", NULL, "RX_CDC_DMA_RX_3"},
  21722. {"BE_OUT", NULL, "RX_CDC_DMA_RX_4"},
  21723. {"BE_OUT", NULL, "RX_CDC_DMA_RX_5"},
  21724. {"BE_OUT", NULL, "RX_CDC_DMA_RX_6"},
  21725. {"BE_OUT", NULL, "RX_CDC_DMA_RX_7"},
  21726. {"PRI_I2S_TX", NULL, "BE_IN"},
  21727. {"MI2S_TX", NULL, "BE_IN"},
  21728. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  21729. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  21730. {"PRI_MI2S_TX", NULL, "BE_IN"},
  21731. {"TERT_MI2S_TX", NULL, "BE_IN"},
  21732. {"INT0_MI2S_TX", NULL, "BE_IN"},
  21733. {"INT2_MI2S_TX", NULL, "BE_IN"},
  21734. {"INT3_MI2S_TX", NULL, "BE_IN"},
  21735. {"INT4_MI2S_TX", NULL, "BE_IN"},
  21736. {"INT5_MI2S_TX", NULL, "BE_IN"},
  21737. {"SEC_MI2S_TX", NULL, "BE_IN"},
  21738. {"SENARY_MI2S_TX", NULL, "BE_IN" },
  21739. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  21740. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  21741. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  21742. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  21743. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  21744. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  21745. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  21746. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  21747. {"SLIMBUS_9_TX", NULL, "BE_IN" },
  21748. {"USB_AUDIO_TX", NULL, "BE_IN" },
  21749. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  21750. {"INT_FM_TX", NULL, "BE_IN"},
  21751. {"PCM_TX", NULL, "BE_IN"},
  21752. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  21753. {"BE_OUT", NULL, "STUB_RX"},
  21754. {"STUB_TX", NULL, "BE_IN"},
  21755. {"STUB_1_TX", NULL, "BE_IN"},
  21756. {"BE_OUT", NULL, "AUX_PCM_RX"},
  21757. {"AUX_PCM_TX", NULL, "BE_IN"},
  21758. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  21759. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  21760. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  21761. {"QUIN_AUX_PCM_TX", NULL, "BE_IN"},
  21762. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  21763. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  21764. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  21765. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  21766. {"WSA_RX_0_VI_FB_LCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  21767. {"WSA_RX_0_VI_FB_RCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  21768. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  21769. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  21770. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  21771. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  21772. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  21773. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_LCH_MUX"},
  21774. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_RCH_MUX"},
  21775. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  21776. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  21777. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  21778. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  21779. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  21780. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  21781. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  21782. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  21783. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  21784. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  21785. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  21786. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  21787. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  21788. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  21789. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  21790. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  21791. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  21792. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  21793. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  21794. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  21795. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  21796. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  21797. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  21798. {"WSA_CDC_DMA_TX_0", NULL, "BE_IN"},
  21799. {"WSA_CDC_DMA_TX_1", NULL, "BE_IN"},
  21800. {"WSA_CDC_DMA_TX_2", NULL, "BE_IN"},
  21801. {"VA_CDC_DMA_TX_0", NULL, "BE_IN"},
  21802. {"VA_CDC_DMA_TX_1", NULL, "BE_IN"},
  21803. {"TX_CDC_DMA_TX_0", NULL, "BE_IN"},
  21804. {"TX_CDC_DMA_TX_1", NULL, "BE_IN"},
  21805. {"TX_CDC_DMA_TX_2", NULL, "BE_IN"},
  21806. {"TX_CDC_DMA_TX_3", NULL, "BE_IN"},
  21807. {"TX_CDC_DMA_TX_4", NULL, "BE_IN"},
  21808. {"TX_CDC_DMA_TX_5", NULL, "BE_IN"},
  21809. {"PRI_SPDIF_TX", NULL, "BE_IN"},
  21810. {"SEC_SPDIF_TX", NULL, "BE_IN"},
  21811. };
  21812. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  21813. struct snd_pcm_hw_params *params)
  21814. {
  21815. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  21816. unsigned int be_id = rtd->dai_link->id;
  21817. if (be_id >= MSM_BACKEND_DAI_MAX) {
  21818. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  21819. return -EINVAL;
  21820. }
  21821. mutex_lock(&routing_lock);
  21822. msm_bedais[be_id].sample_rate = params_rate(params);
  21823. msm_bedais[be_id].channel = params_channels(params);
  21824. msm_bedais[be_id].format = params_format(params);
  21825. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  21826. __func__, msm_bedais[be_id].sample_rate,
  21827. msm_bedais[be_id].format, be_id);
  21828. mutex_unlock(&routing_lock);
  21829. return 0;
  21830. }
  21831. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  21832. {
  21833. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  21834. unsigned int be_id = rtd->dai_link->id;
  21835. int i, session_type, path_type, topology;
  21836. struct msm_pcm_routing_bdai_data *bedai;
  21837. struct msm_pcm_routing_fdai_data *fdai;
  21838. pr_debug("%s: substream->pcm->id:%s\n",
  21839. __func__, substream->pcm->id);
  21840. if (be_id >= MSM_BACKEND_DAI_MAX) {
  21841. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  21842. return -EINVAL;
  21843. }
  21844. bedai = &msm_bedais[be_id];
  21845. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  21846. 0 : 1);
  21847. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  21848. path_type = ADM_PATH_PLAYBACK;
  21849. else
  21850. path_type = ADM_PATH_LIVE_REC;
  21851. mutex_lock(&routing_lock);
  21852. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  21853. if (!is_mm_lsm_fe_id(i))
  21854. continue;
  21855. fdai = &fe_dai_map[i][session_type];
  21856. if (fdai->strm_id != INVALID_SESSION) {
  21857. int idx;
  21858. int port_id;
  21859. unsigned long copp =
  21860. session_copp_map[i][session_type][be_id];
  21861. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  21862. if (test_bit(idx, &copp))
  21863. break;
  21864. fdai->be_srate = bedai->sample_rate;
  21865. port_id = bedai->port_id;
  21866. topology = adm_get_topology_for_port_copp_idx(port_id,
  21867. idx);
  21868. msm_routing_unload_topology(topology);
  21869. adm_close(bedai->port_id, fdai->perf_mode, idx);
  21870. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  21871. __func__, copp, i, session_type, be_id,
  21872. topology);
  21873. clear_bit(idx,
  21874. &session_copp_map[i][session_type][be_id]);
  21875. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  21876. (fdai->passthr_mode == LEGACY_PCM))
  21877. msm_pcm_routing_deinit_pp(bedai->port_id,
  21878. topology);
  21879. }
  21880. }
  21881. bedai->active = 0;
  21882. bedai->sample_rate = 0;
  21883. bedai->channel = 0;
  21884. mutex_unlock(&routing_lock);
  21885. return 0;
  21886. }
  21887. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  21888. {
  21889. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  21890. unsigned int be_id = rtd->dai_link->id;
  21891. int i, path_type, topology;
  21892. int session_type = INVALID_SESSION;
  21893. struct msm_pcm_routing_bdai_data *bedai;
  21894. u32 channels, sample_rate;
  21895. uint16_t bits_per_sample = 16, voc_path_type;
  21896. struct msm_pcm_routing_fdai_data *fdai;
  21897. u32 session_id;
  21898. struct media_format_info voc_be_media_format;
  21899. bool is_lsm;
  21900. pr_debug("%s: substream->pcm->id:%s\n",
  21901. __func__, substream->pcm->id);
  21902. if (be_id >= MSM_BACKEND_DAI_MAX) {
  21903. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  21904. return -EINVAL;
  21905. }
  21906. bedai = &msm_bedais[be_id];
  21907. mutex_lock(&routing_lock);
  21908. if (bedai->active == 1)
  21909. goto done; /* Ignore prepare if back-end already active */
  21910. /* AFE port is not active at this point. However, still
  21911. * go ahead setting active flag under the notion that
  21912. * QDSP6 is able to handle ADM starting before AFE port
  21913. * is started.
  21914. */
  21915. bedai->active = 1;
  21916. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  21917. if (!(is_mm_lsm_fe_id(i) &&
  21918. route_check_fe_id_adm_support(i)))
  21919. continue;
  21920. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
  21921. SESSION_TYPE_RX : SESSION_TYPE_TX;
  21922. fdai = &fe_dai_map[i][session_type];
  21923. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  21924. if (fdai->passthr_mode != LEGACY_PCM)
  21925. path_type = ADM_PATH_COMPRESSED_RX;
  21926. else
  21927. path_type = ADM_PATH_PLAYBACK;
  21928. } else {
  21929. if ((fdai->passthr_mode != LEGACY_PCM) &&
  21930. (fdai->passthr_mode != LISTEN))
  21931. path_type = ADM_PATH_COMPRESSED_TX;
  21932. else
  21933. path_type = ADM_PATH_LIVE_REC;
  21934. }
  21935. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  21936. (i <= MSM_FRONTEND_DAI_LSM8);
  21937. if (fdai->strm_id != INVALID_SESSION) {
  21938. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  21939. if (session_type == SESSION_TYPE_TX &&
  21940. fdai->be_srate &&
  21941. (fdai->be_srate != bedai->sample_rate)) {
  21942. pr_debug("%s: flush strm %d diff BE rates\n",
  21943. __func__,
  21944. fdai->strm_id);
  21945. if (fdai->event_info.event_func)
  21946. fdai->event_info.event_func(
  21947. MSM_PCM_RT_EVT_BUF_RECFG,
  21948. fdai->event_info.priv_data);
  21949. fdai->be_srate = 0; /* might not need it */
  21950. }
  21951. bits_per_sample = msm_routing_get_bit_width(
  21952. bedai->format);
  21953. app_type =
  21954. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  21955. if (app_type && is_lsm) {
  21956. app_type_idx =
  21957. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  21958. sample_rate =
  21959. fe_dai_app_type_cfg[i][session_type][be_id]
  21960. .sample_rate;
  21961. bits_per_sample =
  21962. lsm_app_type_cfg[app_type_idx].bit_width;
  21963. } else if (app_type) {
  21964. app_type_idx =
  21965. msm_pcm_routing_get_app_type_idx(app_type);
  21966. sample_rate =
  21967. fe_dai_app_type_cfg[i][session_type]
  21968. [be_id].sample_rate;
  21969. bits_per_sample =
  21970. app_type_cfg[app_type_idx].bit_width;
  21971. } else
  21972. sample_rate = bedai->sample_rate;
  21973. /*
  21974. * check if ADM needs to be configured with different
  21975. * channel mapping than backend
  21976. */
  21977. if (!bedai->adm_override_ch)
  21978. channels = bedai->channel;
  21979. else
  21980. channels = bedai->adm_override_ch;
  21981. acdb_dev_id =
  21982. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  21983. topology = msm_routing_get_adm_topology(i, session_type,
  21984. be_id);
  21985. if ((fdai->passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  21986. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_GEN)
  21987. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_IEC61937))
  21988. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  21989. copp_idx = adm_open(bedai->port_id, path_type,
  21990. sample_rate, channels, topology,
  21991. fdai->perf_mode, bits_per_sample,
  21992. app_type, acdb_dev_id);
  21993. if ((copp_idx < 0) ||
  21994. (copp_idx >= MAX_COPPS_PER_PORT)) {
  21995. pr_err("%s: adm open failed\n", __func__);
  21996. mutex_unlock(&routing_lock);
  21997. return -EINVAL;
  21998. }
  21999. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  22000. __func__, i, session_type, be_id);
  22001. set_bit(copp_idx,
  22002. &session_copp_map[i][session_type][be_id]);
  22003. if (msm_is_resample_needed(
  22004. sample_rate,
  22005. bedai->sample_rate))
  22006. adm_copp_mfc_cfg(
  22007. bedai->port_id, copp_idx,
  22008. bedai->sample_rate);
  22009. msm_pcm_routing_build_matrix(i, session_type, path_type,
  22010. fdai->perf_mode, fdai->passthr_mode);
  22011. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  22012. (fdai->passthr_mode == LEGACY_PCM))
  22013. msm_pcm_routing_cfg_pp(bedai->port_id, copp_idx,
  22014. topology, channels);
  22015. }
  22016. }
  22017. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  22018. session_id = msm_pcm_routing_get_voc_sessionid(i);
  22019. if (session_id) {
  22020. pr_debug("%s voice session_id: 0x%x\n", __func__,
  22021. session_id);
  22022. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  22023. voc_path_type = RX_PATH;
  22024. else
  22025. voc_path_type = TX_PATH;
  22026. voc_set_route_flag(session_id, voc_path_type, 1);
  22027. memset(&voc_be_media_format, 0,
  22028. sizeof(struct media_format_info));
  22029. voc_be_media_format.port_id = bedai->port_id;
  22030. voc_be_media_format.num_channels = bedai->channel;
  22031. voc_be_media_format.sample_rate = bedai->sample_rate;
  22032. voc_be_media_format.bits_per_sample = bedai->format;
  22033. /* Defaulting this to 1 for voice call usecases */
  22034. voc_be_media_format.channel_mapping[0] = 1;
  22035. voc_set_device_config(session_id, voc_path_type,
  22036. &voc_be_media_format);
  22037. if (voc_get_route_flag(session_id, RX_PATH) &&
  22038. voc_get_route_flag(session_id, TX_PATH))
  22039. voc_enable_device(session_id);
  22040. }
  22041. }
  22042. /* Check if backend is an external ec ref port and set as needed */
  22043. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  22044. memset(&voc_be_media_format, 0,
  22045. sizeof(struct media_format_info));
  22046. /* Get format info for ec ref port from msm_bedais[] */
  22047. voc_be_media_format.port_id = bedai->port_id;
  22048. voc_be_media_format.num_channels = bedai->channel;
  22049. voc_be_media_format.bits_per_sample = bedai->format;
  22050. voc_be_media_format.sample_rate = bedai->sample_rate;
  22051. /* Defaulting this to 1 for voice call usecases */
  22052. voc_be_media_format.channel_mapping[0] = 1;
  22053. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  22054. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  22055. __func__, voc_be_media_format.port_id,
  22056. voc_be_media_format.num_channels,
  22057. voc_be_media_format.bits_per_sample,
  22058. voc_be_media_format.sample_rate);
  22059. }
  22060. done:
  22061. mutex_unlock(&routing_lock);
  22062. return 0;
  22063. }
  22064. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  22065. int fe_id)
  22066. {
  22067. int index, topo_id, be_idx;
  22068. unsigned long pp_config = 0;
  22069. bool mute_on;
  22070. int latency, session_type;
  22071. bool compr_passthr_mode = true;
  22072. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  22073. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX) {
  22074. pr_err("%s: Device pp params on invalid port %d\n",
  22075. __func__, port_id);
  22076. return -EINVAL;
  22077. }
  22078. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  22079. if (port_id == msm_bedais[be_idx].port_id)
  22080. break;
  22081. }
  22082. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  22083. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  22084. return -EINVAL;
  22085. }
  22086. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  22087. if (msm_bedais_pp_params[index].port_id == port_id)
  22088. break;
  22089. }
  22090. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  22091. pr_err("%s: Invalid backend pp params index %d\n",
  22092. __func__, index);
  22093. return -EINVAL;
  22094. }
  22095. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  22096. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  22097. pr_err("%s: Invalid passthrough topology 0x%x\n",
  22098. __func__, topo_id);
  22099. return -EINVAL;
  22100. }
  22101. session_type =
  22102. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  22103. SESSION_TYPE_RX : SESSION_TYPE_TX;
  22104. if ((fe_dai_map[fe_id][session_type].passthr_mode == LEGACY_PCM) ||
  22105. (fe_dai_map[fe_id][session_type].passthr_mode == LISTEN))
  22106. compr_passthr_mode = false;
  22107. pp_config = msm_bedais_pp_params[index].pp_params_config;
  22108. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  22109. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  22110. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  22111. mute_on = msm_bedais_pp_params[index].mute_on;
  22112. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  22113. adm_send_compressed_device_mute(port_id,
  22114. copp_idx,
  22115. mute_on);
  22116. }
  22117. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  22118. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  22119. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  22120. &pp_config);
  22121. latency = msm_bedais_pp_params[index].latency;
  22122. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  22123. adm_send_compressed_device_latency(port_id,
  22124. copp_idx,
  22125. latency);
  22126. }
  22127. return 0;
  22128. }
  22129. static uint32_t msm_routing_get_topology(size_t data_size, void *data)
  22130. {
  22131. uint32_t topology = NULL_COPP_TOPOLOGY;
  22132. void *cal_info = NULL;
  22133. uint32_t size = 0;
  22134. /* Retrieve cal_info size from cal data*/
  22135. size = data_size - sizeof(struct audio_cal_type_basic);
  22136. cal_info = kzalloc(size, GFP_KERNEL);
  22137. if (!cal_info)
  22138. goto done;
  22139. memcpy(cal_info,
  22140. ((uint8_t *)data + sizeof(struct audio_cal_type_basic)), size);
  22141. topology = ((struct audio_cal_info_adm_top *)cal_info)->topology;
  22142. kfree(cal_info);
  22143. cal_info = NULL;
  22144. done:
  22145. pr_debug("%s: Using topology %d\n", __func__, topology);
  22146. return topology;
  22147. }
  22148. static void msm_routing_load_topology(size_t data_size, void *data)
  22149. {
  22150. uint32_t topology_id;
  22151. int ret = -EINVAL;
  22152. topology_id = msm_routing_get_topology(data_size, data);
  22153. if (topology_id != NULL_COPP_TOPOLOGY)
  22154. ret = q6core_load_unload_topo_modules(topology_id,
  22155. CORE_LOAD_TOPOLOGY);
  22156. if (ret < 0)
  22157. pr_debug("%s %d load topology failed\n",
  22158. __func__, topology_id);
  22159. }
  22160. static void msm_routing_unload_topology(uint32_t topology_id)
  22161. {
  22162. int ret = -EINVAL;
  22163. if (topology_id != NULL_COPP_TOPOLOGY)
  22164. ret = q6core_load_unload_topo_modules(topology_id,
  22165. CORE_UNLOAD_TOPOLOGY);
  22166. if (ret < 0)
  22167. pr_debug("%s %d unload topology failed\n",
  22168. __func__, topology_id);
  22169. }
  22170. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  22171. struct snd_ctl_elem_value *ucontrol)
  22172. {
  22173. int pp_id = ucontrol->value.integer.value[0];
  22174. int port_id = 0;
  22175. int index, be_idx, i, topo_id, idx;
  22176. bool mute;
  22177. int latency, session_type;
  22178. bool compr_passthr_mode = true;
  22179. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  22180. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  22181. port_id = msm_bedais[be_idx].port_id;
  22182. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX)
  22183. break;
  22184. }
  22185. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  22186. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  22187. return -EINVAL;
  22188. }
  22189. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  22190. if (msm_bedais_pp_params[index].port_id == port_id)
  22191. break;
  22192. }
  22193. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  22194. pr_err("%s: Invalid pp params backend index %d\n",
  22195. __func__, index);
  22196. return -EINVAL;
  22197. }
  22198. session_type =
  22199. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  22200. SESSION_TYPE_RX : SESSION_TYPE_TX;
  22201. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  22202. MSM_FRONTEND_DAI_MM_SIZE) {
  22203. if ((fe_dai_map[i][session_type].passthr_mode == LEGACY_PCM) ||
  22204. (fe_dai_map[i][session_type].passthr_mode == LISTEN))
  22205. compr_passthr_mode = false;
  22206. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  22207. unsigned long copp =
  22208. session_copp_map[i]
  22209. [SESSION_TYPE_RX][be_idx];
  22210. if (!test_bit(idx, &copp))
  22211. continue;
  22212. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  22213. idx);
  22214. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  22215. continue;
  22216. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  22217. __func__, port_id, copp, msm_bedais[be_idx].active,
  22218. fe_dai_map[i][session_type].passthr_mode);
  22219. switch (pp_id) {
  22220. case ADM_PP_PARAM_MUTE_ID:
  22221. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  22222. mute = ucontrol->value.integer.value[1] ? true : false;
  22223. msm_bedais_pp_params[index].mute_on = mute;
  22224. set_bit(ADM_PP_PARAM_MUTE_BIT,
  22225. &msm_bedais_pp_params[index].pp_params_config);
  22226. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  22227. adm_send_compressed_device_mute(port_id,
  22228. idx, mute);
  22229. break;
  22230. case ADM_PP_PARAM_LATENCY_ID:
  22231. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  22232. msm_bedais_pp_params[index].latency =
  22233. ucontrol->value.integer.value[1];
  22234. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  22235. &msm_bedais_pp_params[index].pp_params_config);
  22236. latency = msm_bedais_pp_params[index].latency =
  22237. ucontrol->value.integer.value[1];
  22238. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  22239. adm_send_compressed_device_latency(port_id,
  22240. idx, latency);
  22241. break;
  22242. default:
  22243. pr_info("%s, device pp param %d not supported\n",
  22244. __func__, pp_id);
  22245. break;
  22246. }
  22247. }
  22248. }
  22249. return 0;
  22250. }
  22251. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  22252. struct snd_ctl_elem_value *ucontrol)
  22253. {
  22254. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  22255. return 0;
  22256. }
  22257. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  22258. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  22259. 0, 3, msm_routing_get_device_pp_params_mixer,
  22260. msm_routing_put_device_pp_params_mixer),
  22261. };
  22262. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  22263. struct snd_ctl_elem_value *ucontrol)
  22264. {
  22265. ucontrol->value.integer.value[0] =
  22266. core_get_license_status(ASM_MEDIA_FMT_APTX);
  22267. pr_debug("%s: status %ld\n", __func__,
  22268. ucontrol->value.integer.value[0]);
  22269. return 0;
  22270. }
  22271. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  22272. struct snd_ctl_elem_value *ucontrol)
  22273. {
  22274. int32_t status = 0;
  22275. status = core_set_license(ucontrol->value.integer.value[0],
  22276. APTX_CLASSIC_DEC_LICENSE_ID);
  22277. pr_debug("%s: status %d\n", __func__, status);
  22278. return status;
  22279. }
  22280. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  22281. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  22282. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  22283. msm_aptx_dec_license_control_put),
  22284. };
  22285. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  22286. struct snd_ctl_elem_info *uinfo)
  22287. {
  22288. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  22289. uinfo->count = sizeof(be_dai_name_table);
  22290. return 0;
  22291. }
  22292. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  22293. unsigned int __user *bytes,
  22294. unsigned int size)
  22295. {
  22296. int i;
  22297. int ret = 0;
  22298. if (size < sizeof(be_dai_name_table)) {
  22299. pr_err("%s: invalid size %d requested, returning\n",
  22300. __func__, size);
  22301. ret = -EINVAL;
  22302. goto done;
  22303. }
  22304. /*
  22305. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  22306. * needed when adding new backends
  22307. */
  22308. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  22309. be_dai_name_table[i].be_id = i;
  22310. strlcpy(be_dai_name_table[i].be_name,
  22311. msm_bedais[i].name,
  22312. LPASS_BE_NAME_MAX_LENGTH);
  22313. }
  22314. ret = copy_to_user(bytes, &be_dai_name_table,
  22315. sizeof(be_dai_name_table));
  22316. if (ret) {
  22317. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  22318. ret = -EFAULT;
  22319. }
  22320. done:
  22321. return ret;
  22322. }
  22323. static const struct snd_kcontrol_new
  22324. msm_routing_be_dai_name_table_mixer_controls[] = {
  22325. {
  22326. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  22327. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  22328. .info = msm_routing_be_dai_name_table_info,
  22329. .name = "Backend DAI Name Table",
  22330. .tlv.c = snd_soc_bytes_tlv_callback,
  22331. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  22332. .max = sizeof(be_dai_name_table),
  22333. .get = msm_routing_be_dai_name_table_tlv_get,
  22334. }
  22335. },
  22336. };
  22337. static int msm_routing_stereo_channel_reverse_control_get(
  22338. struct snd_kcontrol *kcontrol,
  22339. struct snd_ctl_elem_value *ucontrol)
  22340. {
  22341. ucontrol->value.integer.value[0] = swap_ch;
  22342. pr_debug("%s: Swap channel value: %ld\n", __func__,
  22343. ucontrol->value.integer.value[0]);
  22344. return 0;
  22345. }
  22346. static int msm_routing_stereo_channel_reverse_control_put(
  22347. struct snd_kcontrol *kcontrol,
  22348. struct snd_ctl_elem_value *ucontrol)
  22349. {
  22350. int i, idx, be_index, port_id;
  22351. int ret = 0;
  22352. unsigned long copp;
  22353. pr_debug("%s Swap channel value:%ld\n", __func__,
  22354. ucontrol->value.integer.value[0]);
  22355. swap_ch = ucontrol->value.integer.value[0];
  22356. mutex_lock(&routing_lock);
  22357. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  22358. port_id = msm_bedais[be_index].port_id;
  22359. if (!msm_bedais[be_index].active)
  22360. continue;
  22361. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  22362. MSM_FRONTEND_DAI_MM_SIZE) {
  22363. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  22364. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  22365. if (!test_bit(idx, &copp))
  22366. continue;
  22367. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  22368. __func__, port_id, idx);
  22369. ret = adm_swap_speaker_channels(
  22370. port_id, idx,
  22371. msm_bedais[be_index].sample_rate,
  22372. swap_ch);
  22373. if (ret) {
  22374. pr_err("%s:Swap_channel failed, err=%d\n",
  22375. __func__, ret);
  22376. goto done;
  22377. }
  22378. }
  22379. }
  22380. }
  22381. done:
  22382. mutex_unlock(&routing_lock);
  22383. return ret;
  22384. }
  22385. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  22386. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  22387. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  22388. msm_routing_stereo_channel_reverse_control_put),
  22389. };
  22390. static int msm_routing_instance_id_support_info(struct snd_kcontrol *kcontrol,
  22391. struct snd_ctl_elem_info *uinfo)
  22392. {
  22393. uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
  22394. uinfo->count = 1;
  22395. return 0;
  22396. }
  22397. static int msm_routing_instance_id_support_put(
  22398. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  22399. {
  22400. bool supported = ucontrol->value.integer.value[0] ? true : false;
  22401. q6common_update_instance_id_support(supported);
  22402. return 0;
  22403. }
  22404. static int msm_routing_instance_id_support_get(
  22405. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  22406. {
  22407. bool supported = false;
  22408. supported = q6common_is_instance_id_supported();
  22409. ucontrol->value.integer.value[0] = supported ? 1 : 0;
  22410. return 0;
  22411. }
  22412. static const struct snd_kcontrol_new
  22413. msm_routing_feature_support_mixer_controls[] = {
  22414. {
  22415. .access = SNDRV_CTL_ELEM_ACCESS_READ |
  22416. SNDRV_CTL_ELEM_ACCESS_WRITE,
  22417. .info = msm_routing_instance_id_support_info,
  22418. .name = "Instance ID Support",
  22419. .put = msm_routing_instance_id_support_put,
  22420. .get = msm_routing_instance_id_support_get,
  22421. },
  22422. };
  22423. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  22424. .hw_params = msm_pcm_routing_hw_params,
  22425. .close = msm_pcm_routing_close,
  22426. .prepare = msm_pcm_routing_prepare,
  22427. };
  22428. /* Not used but frame seems to require it */
  22429. static int msm_routing_probe(struct snd_soc_platform *platform)
  22430. {
  22431. snd_soc_dapm_new_controls(&platform->component.dapm, msm_qdsp6_widgets,
  22432. ARRAY_SIZE(msm_qdsp6_widgets));
  22433. snd_soc_dapm_add_routes(&platform->component.dapm, intercon,
  22434. ARRAY_SIZE(intercon));
  22435. snd_soc_dapm_new_widgets(platform->component.dapm.card);
  22436. snd_soc_add_platform_controls(platform, lsm_controls,
  22437. ARRAY_SIZE(lsm_controls));
  22438. snd_soc_add_platform_controls(platform, aanc_slim_0_rx_mux,
  22439. ARRAY_SIZE(aanc_slim_0_rx_mux));
  22440. snd_soc_add_platform_controls(platform, aanc_noise_level,
  22441. ARRAY_SIZE(aanc_noise_level));
  22442. snd_soc_add_platform_controls(platform, msm_voc_session_controls,
  22443. ARRAY_SIZE(msm_voc_session_controls));
  22444. snd_soc_add_platform_controls(platform, app_type_cfg_controls,
  22445. ARRAY_SIZE(app_type_cfg_controls));
  22446. snd_soc_add_platform_controls(platform, lsm_app_type_cfg_controls,
  22447. ARRAY_SIZE(lsm_app_type_cfg_controls));
  22448. snd_soc_add_platform_controls(platform, module_cfg_controls,
  22449. ARRAY_SIZE(module_cfg_controls));
  22450. snd_soc_add_platform_controls(platform,
  22451. stereo_to_custom_stereo_controls,
  22452. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  22453. snd_soc_add_platform_controls(platform, ec_ref_param_controls,
  22454. ARRAY_SIZE(ec_ref_param_controls));
  22455. snd_soc_add_platform_controls(platform, channel_mixer_controls,
  22456. ARRAY_SIZE(channel_mixer_controls));
  22457. msm_qti_pp_add_controls(platform);
  22458. msm_dts_srs_tm_add_controls(platform);
  22459. msm_dolby_dap_add_controls(platform);
  22460. snd_soc_add_platform_controls(platform,
  22461. use_ds1_or_ds2_controls,
  22462. ARRAY_SIZE(use_ds1_or_ds2_controls));
  22463. snd_soc_add_platform_controls(platform,
  22464. device_pp_params_mixer_controls,
  22465. ARRAY_SIZE(device_pp_params_mixer_controls));
  22466. snd_soc_add_platform_controls(platform,
  22467. msm_routing_be_dai_name_table_mixer_controls,
  22468. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  22469. snd_soc_add_platform_controls(platform, msm_source_tracking_controls,
  22470. ARRAY_SIZE(msm_source_tracking_controls));
  22471. snd_soc_add_platform_controls(platform, adm_channel_config_controls,
  22472. ARRAY_SIZE(adm_channel_config_controls));
  22473. snd_soc_add_platform_controls(platform, aptx_dec_license_controls,
  22474. ARRAY_SIZE(aptx_dec_license_controls));
  22475. snd_soc_add_platform_controls(platform, stereo_channel_reverse_control,
  22476. ARRAY_SIZE(stereo_channel_reverse_control));
  22477. snd_soc_add_platform_controls(
  22478. platform, msm_routing_feature_support_mixer_controls,
  22479. ARRAY_SIZE(msm_routing_feature_support_mixer_controls));
  22480. return 0;
  22481. }
  22482. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  22483. {
  22484. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  22485. }
  22486. void msm_routing_pcm_free(struct snd_pcm *pcm)
  22487. {
  22488. msm_pcm_routing_hwdep_free(pcm);
  22489. }
  22490. static struct snd_soc_platform_driver msm_soc_routing_platform = {
  22491. .ops = &msm_routing_pcm_ops,
  22492. .probe = msm_routing_probe,
  22493. .pcm_new = msm_routing_pcm_new,
  22494. .pcm_free = msm_routing_pcm_free,
  22495. };
  22496. static int msm_routing_pcm_probe(struct platform_device *pdev)
  22497. {
  22498. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  22499. return snd_soc_register_platform(&pdev->dev,
  22500. &msm_soc_routing_platform);
  22501. }
  22502. static int msm_routing_pcm_remove(struct platform_device *pdev)
  22503. {
  22504. snd_soc_unregister_platform(&pdev->dev);
  22505. return 0;
  22506. }
  22507. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  22508. {.compatible = "qcom,msm-pcm-routing"},
  22509. {}
  22510. };
  22511. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  22512. static struct platform_driver msm_routing_pcm_driver = {
  22513. .driver = {
  22514. .name = "msm-pcm-routing",
  22515. .owner = THIS_MODULE,
  22516. .of_match_table = msm_pcm_routing_dt_match,
  22517. },
  22518. .probe = msm_routing_pcm_probe,
  22519. .remove = msm_routing_pcm_remove,
  22520. };
  22521. int msm_routing_check_backend_enabled(int fedai_id)
  22522. {
  22523. int i;
  22524. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  22525. /* bad ID assigned in machine driver */
  22526. pr_err("%s: bad MM ID\n", __func__);
  22527. return 0;
  22528. }
  22529. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  22530. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  22531. return msm_bedais[i].active;
  22532. }
  22533. return 0;
  22534. }
  22535. static int get_cal_type_index(int32_t cal_type)
  22536. {
  22537. int ret = -EINVAL;
  22538. switch (cal_type) {
  22539. case ADM_TOPOLOGY_CAL_TYPE:
  22540. ret = ADM_TOPOLOGY_CAL_TYPE_IDX;
  22541. break;
  22542. case ADM_LSM_TOPOLOGY_CAL_TYPE:
  22543. ret = ADM_LSM_TOPOLOGY_CAL_TYPE_IDX;
  22544. break;
  22545. default:
  22546. pr_err("%s: Invalid cal type %d\n", __func__, cal_type);
  22547. }
  22548. return ret;
  22549. }
  22550. static int msm_routing_set_cal(int32_t cal_type,
  22551. size_t data_size, void *data)
  22552. {
  22553. int ret = 0;
  22554. int cal_index;
  22555. pr_debug("%s\n", __func__);
  22556. cal_index = get_cal_type_index(cal_type);
  22557. if (cal_index < 0) {
  22558. pr_err("%s: Could not get cal index %d\n",
  22559. __func__, cal_index);
  22560. ret = -EINVAL;
  22561. goto done;
  22562. }
  22563. ret = cal_utils_set_cal(data_size, data, cal_data[cal_index], 0, NULL);
  22564. if (ret < 0) {
  22565. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  22566. __func__, ret, cal_type);
  22567. ret = -EINVAL;
  22568. goto done;
  22569. }
  22570. /* Pre-load if it is ADM topology */
  22571. if ((cal_index == ADM_TOPOLOGY_CAL_TYPE_IDX) ||
  22572. (cal_index == ADM_LSM_TOPOLOGY_CAL_TYPE_IDX)) {
  22573. msm_routing_load_topology(data_size, data);
  22574. }
  22575. done:
  22576. return ret;
  22577. }
  22578. static void msm_routing_delete_cal_data(void)
  22579. {
  22580. pr_debug("%s\n", __func__);
  22581. cal_utils_destroy_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0]);
  22582. }
  22583. static int msm_routing_init_cal_data(void)
  22584. {
  22585. int ret = 0;
  22586. struct cal_type_info cal_type_info[] = {
  22587. {{ADM_TOPOLOGY_CAL_TYPE,
  22588. {NULL, NULL, NULL,
  22589. msm_routing_set_cal, NULL, NULL} },
  22590. {NULL, NULL, cal_utils_match_buf_num} },
  22591. {{ADM_LSM_TOPOLOGY_CAL_TYPE,
  22592. {NULL, NULL, NULL,
  22593. msm_routing_set_cal, NULL, NULL} },
  22594. {NULL, NULL, cal_utils_match_buf_num} },
  22595. };
  22596. pr_debug("%s\n", __func__);
  22597. ret = cal_utils_create_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0],
  22598. &cal_type_info[0]);
  22599. if (ret < 0) {
  22600. pr_err("%s: could not create cal type!\n",
  22601. __func__);
  22602. ret = -EINVAL;
  22603. goto err;
  22604. }
  22605. return ret;
  22606. err:
  22607. msm_routing_delete_cal_data();
  22608. return ret;
  22609. }
  22610. int __init msm_soc_routing_platform_init(void)
  22611. {
  22612. mutex_init(&routing_lock);
  22613. if (msm_routing_init_cal_data())
  22614. pr_err("%s: could not init cal data!\n", __func__);
  22615. afe_set_routing_callback(
  22616. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  22617. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  22618. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  22619. return platform_driver_register(&msm_routing_pcm_driver);
  22620. }
  22621. void msm_soc_routing_platform_exit(void)
  22622. {
  22623. msm_routing_delete_cal_data();
  22624. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  22625. mutex_destroy(&routing_lock);
  22626. platform_driver_unregister(&msm_routing_pcm_driver);
  22627. }
  22628. MODULE_DESCRIPTION("MSM routing platform driver");
  22629. MODULE_LICENSE("GPL v2");